Home
last modified time | relevance | path

Searched refs:ad5592r_state (Results 1 – 4 of 4) sorted by relevance

/linux-4.19.296/drivers/iio/dac/
Dad5592r-base.h19 struct ad5592r_state;
44 int (*write_dac)(struct ad5592r_state *st, unsigned chan, u16 value);
45 int (*read_adc)(struct ad5592r_state *st, unsigned chan, u16 *value);
46 int (*reg_write)(struct ad5592r_state *st, u8 reg, u16 value);
47 int (*reg_read)(struct ad5592r_state *st, u8 reg, u16 *value);
48 int (*gpio_read)(struct ad5592r_state *st, u8 *value);
51 struct ad5592r_state { struct
Dad5592r-base.c28 struct ad5592r_state *st = gpiochip_get_data(chip); in ad5592r_gpio_get()
49 struct ad5592r_state *st = gpiochip_get_data(chip); in ad5592r_gpio_set()
65 struct ad5592r_state *st = gpiochip_get_data(chip); in ad5592r_gpio_direction_input()
88 struct ad5592r_state *st = gpiochip_get_data(chip); in ad5592r_gpio_direction_output()
119 struct ad5592r_state *st = gpiochip_get_data(chip); in ad5592r_gpio_request()
130 static int ad5592r_gpio_init(struct ad5592r_state *st) in ad5592r_gpio_init()
152 static void ad5592r_gpio_cleanup(struct ad5592r_state *st) in ad5592r_gpio_cleanup()
158 static int ad5592r_reset(struct ad5592r_state *st) in ad5592r_reset()
182 static int ad5592r_get_vref(struct ad5592r_state *st) in ad5592r_get_vref()
197 static int ad5592r_set_channel_modes(struct ad5592r_state *st) in ad5592r_set_channel_modes()
[all …]
Dad5592r.c21 static int ad5592r_spi_wnop_r16(struct ad5592r_state *st, __be16 *buf) in ad5592r_spi_wnop_r16()
35 static int ad5592r_write_dac(struct ad5592r_state *st, unsigned chan, u16 value) in ad5592r_write_dac()
44 static int ad5592r_read_adc(struct ad5592r_state *st, unsigned chan, u16 *value) in ad5592r_read_adc()
72 static int ad5592r_reg_write(struct ad5592r_state *st, u8 reg, u16 value) in ad5592r_reg_write()
81 static int ad5592r_reg_read(struct ad5592r_state *st, u8 reg, u16 *value) in ad5592r_reg_read()
102 static int ad5593r_gpio_read(struct ad5592r_state *st, u8 *value) in ad5593r_gpio_read()
Dad5593r.c45 static int ad5593r_write_dac(struct ad5592r_state *st, unsigned chan, u16 value) in ad5593r_write_dac()
53 static int ad5593r_read_adc(struct ad5592r_state *st, unsigned chan, u16 *value) in ad5593r_read_adc()
66 static int ad5593r_reg_write(struct ad5592r_state *st, u8 reg, u16 value) in ad5593r_reg_write()
74 static int ad5593r_reg_read(struct ad5592r_state *st, u8 reg, u16 *value) in ad5593r_reg_read()
81 static int ad5593r_gpio_read(struct ad5592r_state *st, u8 *value) in ad5593r_gpio_read()