Home
last modified time | relevance | path

Searched refs:iio_chan_spec (Results 1 – 25 of 317) sorted by relevance

12345678910>>...13

/Linux-v4.19/include/linux/iio/
Diio.h36 struct iio_chan_spec;
51 struct iio_chan_spec const *, char *buf);
53 struct iio_chan_spec const *, const char *buf,
77 int (*set)(struct iio_dev *, const struct iio_chan_spec *, unsigned int);
78 int (*get)(struct iio_dev *, const struct iio_chan_spec *);
82 uintptr_t priv, const struct iio_chan_spec *chan, char *buf);
84 uintptr_t priv, const struct iio_chan_spec *chan, char *buf);
86 uintptr_t priv, const struct iio_chan_spec *chan, const char *buf,
132 const struct iio_chan_spec *chan, char *buf);
138 const struct iio_chan_spec *chan);
[all …]
/Linux-v4.19/drivers/iio/counter/
D104-quad-8.c96 struct iio_chan_spec const *chan, int *val, int *val2, long mask) in quad8_read_raw()
141 struct iio_chan_spec const *chan, int val, int val2, long mask) in quad8_write_raw()
228 const struct iio_chan_spec *chan, char *buf) in quad8_read_preset()
236 const struct iio_chan_spec *chan, const char *buf, size_t len) in quad8_write_preset()
265 uintptr_t private, const struct iio_chan_spec *chan, char *buf) in quad8_read_set_to_preset_on_index()
274 uintptr_t private, const struct iio_chan_spec *chan, const char *buf, in quad8_write_set_to_preset_on_index()
307 const struct iio_chan_spec *chan) in quad8_get_noise_error()
327 const struct iio_chan_spec *chan) in quad8_get_count_direction()
349 const struct iio_chan_spec *chan, unsigned int count_mode) in quad8_set_count_mode()
368 const struct iio_chan_spec *chan) in quad8_get_count_mode()
[all …]
Dstm32-lptimer-cnt.c105 struct iio_chan_spec const *chan, in stm32_lptim_write_raw()
134 struct iio_chan_spec const *chan, in stm32_lptim_read_raw()
189 const struct iio_chan_spec *chan) in stm32_lptim_get_quadrature_mode()
197 const struct iio_chan_spec *chan, in stm32_lptim_set_quadrature_mode()
222 const struct iio_chan_spec *chan) in stm32_lptim_cnt_get_polarity()
230 const struct iio_chan_spec *chan, in stm32_lptim_cnt_set_polarity()
252 const struct iio_chan_spec *chan, in stm32_lptim_cnt_get_preset()
262 const struct iio_chan_spec *chan, in stm32_lptim_cnt_set_preset()
297 static const struct iio_chan_spec stm32_lptim_enc_channels = {
320 static const struct iio_chan_spec stm32_lptim_cnt_channels = {
/Linux-v4.19/drivers/iio/adc/
Dxilinx-xadc-events.c16 static const struct iio_chan_spec *xadc_event_to_channel( in xadc_event_to_channel()
33 const struct iio_chan_spec *chan; in xadc_handle_event()
71 static unsigned int xadc_get_threshold_offset(const struct iio_chan_spec *chan, in xadc_get_threshold_offset()
91 static unsigned int xadc_get_alarm_mask(const struct iio_chan_spec *chan) in xadc_get_alarm_mask()
115 const struct iio_chan_spec *chan, enum iio_event_type type, in xadc_read_event_config()
124 const struct iio_chan_spec *chan, enum iio_event_type type, in xadc_write_event_config()
163 const struct iio_chan_spec *chan, enum iio_event_type type, in xadc_read_event_value()
187 const struct iio_chan_spec *chan, enum iio_event_type type, in xadc_write_event_value()
Daxp20x_adc.c163 static const struct iio_chan_spec axp20x_adc_channels[] = {
194 static const struct iio_chan_spec axp22x_adc_channels[] = {
211 static const struct iio_chan_spec axp813_adc_channels[] = {
231 struct iio_chan_spec const *chan, int *val) in axp20x_adc_raw()
254 struct iio_chan_spec const *chan, int *val) in axp22x_adc_raw()
277 struct iio_chan_spec const *chan, int *val) in axp813_adc_raw()
360 static int axp20x_adc_scale(struct iio_chan_spec const *chan, int *val, in axp20x_adc_scale()
379 static int axp22x_adc_scale(struct iio_chan_spec const *chan, int *val, in axp22x_adc_scale()
405 static int axp813_adc_scale(struct iio_chan_spec const *chan, int *val, in axp813_adc_scale()
454 struct iio_chan_spec const *chan, int *val) in axp20x_adc_offset()
[all …]
Dti-adc128s052.c22 const struct iio_chan_spec *channels;
61 struct iio_chan_spec const *channel, int *val, in adc128_read_raw()
102 static const struct iio_chan_spec adc128s052_channels[] = {
113 static const struct iio_chan_spec adc122s021_channels[] = {
118 static const struct iio_chan_spec adc124s021_channels[] = {
Dmcp3422.c138 struct iio_chan_spec const *channel, int *value) in mcp3422_read_channel()
160 struct iio_chan_spec const *channel, int *val1, in mcp3422_read_raw()
194 struct iio_chan_spec const *channel, int val1, in mcp3422_write_raw()
258 struct iio_chan_spec const *chan, long mask) in mcp3422_write_raw_get_fmt()
309 static const struct iio_chan_spec mcp3421_channels[] = {
313 static const struct iio_chan_spec mcp3422_channels[] = {
318 static const struct iio_chan_spec mcp3424_channels[] = {
/Linux-v4.19/drivers/iio/dummy/
Diio_simple_dummy.h58 const struct iio_chan_spec *chan,
63 const struct iio_chan_spec *chan,
69 const struct iio_chan_spec *chan,
76 const struct iio_chan_spec *chan,
/Linux-v4.19/drivers/iio/accel/
Dst_accel_core.c46 static const struct iio_chan_spec st_accel_8bit_channels[] = {
62 static const struct iio_chan_spec st_accel_12bit_channels[] = {
78 static const struct iio_chan_spec st_accel_16bit_channels[] = {
107 .ch = (struct iio_chan_spec *)st_accel_12bit_channels,
189 .ch = (struct iio_chan_spec *)st_accel_12bit_channels,
268 .ch = (struct iio_chan_spec *)st_accel_16bit_channels,
358 .ch = (struct iio_chan_spec *)st_accel_12bit_channels,
430 .ch = (struct iio_chan_spec *)st_accel_8bit_channels,
502 .ch = (struct iio_chan_spec *)st_accel_12bit_channels,
572 .ch = (struct iio_chan_spec *)st_accel_12bit_channels,
[all …]
/Linux-v4.19/drivers/iio/dac/
Dad5624r_spi.c47 struct iio_chan_spec const *chan, in ad5624r_read_raw()
64 struct iio_chan_spec const *chan, in ad5624r_write_raw()
92 const struct iio_chan_spec *chan) in ad5624r_get_powerdown_mode()
100 const struct iio_chan_spec *chan, unsigned int mode) in ad5624r_set_powerdown_mode()
117 uintptr_t private, const struct iio_chan_spec *chan, char *buf) in ad5624r_read_dac_powerdown()
126 uintptr_t private, const struct iio_chan_spec *chan, const char *buf, in ad5624r_write_dac_powerdown()
185 const struct iio_chan_spec _name##_channels[] = { \
Dti-dac082s085.c82 const struct iio_chan_spec *chan) in ti_dac_get_powerdown_mode()
90 const struct iio_chan_spec *chan, in ti_dac_set_powerdown_mode()
121 const struct iio_chan_spec *chan, in ti_dac_read_powerdown()
131 const struct iio_chan_spec *chan, in ti_dac_write_powerdown()
181 static const struct iio_chan_spec ti_dac_channels[] = {
189 struct iio_chan_spec const *chan, in ti_dac_read_raw()
219 struct iio_chan_spec const *chan, in ti_dac_write_raw()
251 struct iio_chan_spec const *chan, long mask) in ti_dac_write_raw_get_fmt()
Dstm32-dac.c99 struct iio_chan_spec const *chan, in stm32_dac_read_raw()
117 struct iio_chan_spec const *chan, in stm32_dac_write_raw()
153 const struct iio_chan_spec *chan) in stm32_dac_get_powerdown_mode()
159 const struct iio_chan_spec *chan, in stm32_dac_set_powerdown_mode()
167 const struct iio_chan_spec *chan, in stm32_dac_read_powerdown()
180 const struct iio_chan_spec *chan, in stm32_dac_write_powerdown()
234 static const struct iio_chan_spec stm32_dac_channels[] = {
Dmax5821.c58 const struct iio_chan_spec *chan) in max5821_get_powerdown_mode()
66 const struct iio_chan_spec *chan, in max5821_set_powerdown_mode()
85 const struct iio_chan_spec *chan, in max5821_read_dac_powerdown()
94 const struct iio_chan_spec *chan) in max5821_sync_powerdown_mode()
115 const struct iio_chan_spec *chan, in max5821_write_dac_powerdown()
157 static const struct iio_chan_spec max5821_channels[] = {
241 struct iio_chan_spec const *chan, in max5821_read_raw()
259 struct iio_chan_spec const *chan, in max5821_write_raw()
Dad5380.c43 struct iio_chan_spec channel_template;
83 uintptr_t private, const struct iio_chan_spec *chan, char *buf) in ad5380_read_dac_powerdown()
91 uintptr_t private, const struct iio_chan_spec *chan, const char *buf, in ad5380_write_dac_powerdown()
122 const struct iio_chan_spec *chan) in ad5380_get_powerdown_mode()
138 const struct iio_chan_spec *chan, unsigned int mode) in ad5380_set_powerdown_mode()
157 static unsigned int ad5380_info_to_reg(struct iio_chan_spec const *chan, in ad5380_info_to_reg()
175 struct iio_chan_spec const *chan, int val, int val2, long info) in ad5380_write_raw()
204 struct iio_chan_spec const *chan, int *val, int *val2, long info) in ad5380_read_raw()
348 struct iio_chan_spec *channels; in ad5380_alloc_channels()
352 sizeof(struct iio_chan_spec), GFP_KERNEL); in ad5380_alloc_channels()
Dad5686.c29 const struct iio_chan_spec *chan) in ad5686_get_powerdown_mode()
37 const struct iio_chan_spec *chan, in ad5686_set_powerdown_mode()
56 uintptr_t private, const struct iio_chan_spec *chan, char *buf) in ad5686_read_dac_powerdown()
66 const struct iio_chan_spec *chan, in ad5686_write_dac_powerdown()
112 struct iio_chan_spec const *chan, in ad5686_read_raw()
138 struct iio_chan_spec const *chan, in ad5686_write_raw()
200 static struct iio_chan_spec name[] = { \
205 static struct iio_chan_spec name[] = { \
213 static struct iio_chan_spec name[] = { \
Dad5504.c96 struct iio_chan_spec const *chan, in ad5504_read_raw()
122 struct iio_chan_spec const *chan, in ad5504_write_raw()
146 const struct iio_chan_spec *chan) in ad5504_get_powerdown_mode()
154 const struct iio_chan_spec *chan, unsigned int mode) in ad5504_set_powerdown_mode()
171 uintptr_t private, const struct iio_chan_spec *chan, char *buf) in ad5504_read_dac_powerdown()
180 uintptr_t private, const struct iio_chan_spec *chan, const char *buf, in ad5504_write_dac_powerdown()
266 static const struct iio_chan_spec ad5504_channels[] = {
Dti-dac5571.c127 const struct iio_chan_spec *chan) in dac5571_get_powerdown_mode()
135 const struct iio_chan_spec *chan, in dac5571_set_powerdown_mode()
168 const struct iio_chan_spec *chan, in dac5571_read_powerdown()
178 const struct iio_chan_spec *chan, in dac5571_write_powerdown()
234 static const struct iio_chan_spec dac5571_channels[] = {
242 struct iio_chan_spec const *chan, in dac5571_read_raw()
268 struct iio_chan_spec const *chan, in dac5571_write_raw()
298 struct iio_chan_spec const *chan, in dac5571_write_raw_get_fmt()
Dad7303.c63 uintptr_t private, const struct iio_chan_spec *chan, char *buf) in ad7303_read_dac_powerdown()
72 uintptr_t private, const struct iio_chan_spec *chan, const char *buf, in ad7303_write_dac_powerdown()
99 struct iio_chan_spec const *chan) in ad7303_get_vref()
113 struct iio_chan_spec const *chan, int *val, int *val2, long info) in ad7303_read_raw()
138 struct iio_chan_spec const *chan, int val, int val2, long mask) in ad7303_write_raw()
193 static const struct iio_chan_spec ad7303_channels[] = {
/Linux-v4.19/drivers/iio/magnetometer/
Dst_magn_core.c59 static const struct iio_chan_spec st_magn_16bit_channels[] = {
75 static const struct iio_chan_spec st_magn_2_16bit_channels[] = {
91 static const struct iio_chan_spec st_magn_3_16bit_channels[] = {
114 .ch = (struct iio_chan_spec *)st_magn_16bit_channels,
193 .ch = (struct iio_chan_spec *)st_magn_16bit_channels,
271 .ch = (struct iio_chan_spec *)st_magn_2_16bit_channels,
339 .ch = (struct iio_chan_spec *)st_magn_3_16bit_channels,
384 struct iio_chan_spec const *ch, int *val, in st_magn_read_raw()
417 struct iio_chan_spec const *chan, int val, int val2, long mask) in st_magn_write_raw()
/Linux-v4.19/drivers/iio/pressure/
Dst_pressure_core.c133 static const struct iio_chan_spec st_press_1_channels[] = {
167 static const struct iio_chan_spec st_press_lps001wp_channels[] = {
199 static const struct iio_chan_spec st_press_lps22hb_channels[] = {
245 .ch = (struct iio_chan_spec *)st_press_1_channels,
318 .ch = (struct iio_chan_spec *)st_press_lps001wp_channels,
370 .ch = (struct iio_chan_spec *)st_press_1_channels,
439 .ch = (struct iio_chan_spec *)st_press_lps22hb_channels,
498 struct iio_chan_spec const *ch, in st_press_write_raw()
519 struct iio_chan_spec const *ch, int *val, in st_press_read_raw()
/Linux-v4.19/drivers/iio/multiplexer/
Diio-mux.c36 struct iio_chan_spec *chan;
44 struct iio_chan_spec const *chan = &mux->chan[idx]; in iio_mux_select()
89 struct iio_chan_spec const *chan, in mux_read_raw()
119 struct iio_chan_spec const *chan, in mux_read_avail()
147 struct iio_chan_spec const *chan, in mux_write_raw()
179 struct iio_chan_spec const *chan, char *buf) in mux_read_ext_info()
199 struct iio_chan_spec const *chan, in mux_write_ext_info()
245 struct iio_chan_spec *chan = &mux->chan[idx]; in mux_configure_channel()
246 struct iio_chan_spec const *pchan = mux->parent->channel; in mux_configure_channel()
393 mux->chan = (struct iio_chan_spec *)(mux->child + children); in mux_probe()
/Linux-v4.19/drivers/iio/humidity/
Dhid-sensor-humidity.c39 static const struct iio_chan_spec humidity_channels[] = {
52 static void humidity_adjust_channel_bit_mask(struct iio_chan_spec *channels, in humidity_adjust_channel_bit_mask()
63 struct iio_chan_spec const *chan, in humidity_read_raw()
108 struct iio_chan_spec const *chan, in humidity_write_raw()
168 struct iio_chan_spec *channels, in humidity_parse_report()
211 struct iio_chan_spec *humid_chans; in hid_humidity_probe()
/Linux-v4.19/drivers/iio/temperature/
Dhid-sensor-temperature.c39 static const struct iio_chan_spec temperature_channels[] = {
52 static void temperature_adjust_channel_bit_mask(struct iio_chan_spec *channels, in temperature_adjust_channel_bit_mask()
63 struct iio_chan_spec const *chan, in temperature_read_raw()
108 struct iio_chan_spec const *chan, in temperature_write_raw()
165 struct iio_chan_spec *channels, in temperature_parse_report()
208 struct iio_chan_spec *temp_chans; in hid_temperature_probe()
/Linux-v4.19/drivers/iio/afe/
Diio-rescale.c30 struct iio_chan_spec chan;
37 struct iio_chan_spec const *chan, in rescale_read_raw()
77 struct iio_chan_spec const *chan, in rescale_read_avail()
100 struct iio_chan_spec const *chan, in rescale_read_ext_info()
112 struct iio_chan_spec const *chan, in rescale_write_ext_info()
125 struct iio_chan_spec *chan = &rescale->chan; in rescale_configure_channel()
126 struct iio_chan_spec const *schan = rescale->source->channel; in rescale_configure_channel()
/Linux-v4.19/drivers/iio/trigger/
Dstm32-timer-trigger.c401 struct iio_chan_spec const *chan, in stm32_counter_read_raw()
436 struct iio_chan_spec const *chan, in stm32_counter_write_raw()
505 const struct iio_chan_spec *chan, in stm32_set_trigger_mode()
516 const struct iio_chan_spec *chan) in stm32_get_trigger_mode()
554 const struct iio_chan_spec *chan, in stm32_set_enable_mode()
593 const struct iio_chan_spec *chan) in stm32_get_enable_mode()
618 const struct iio_chan_spec *chan, in stm32_set_quadrature_mode()
629 const struct iio_chan_spec *chan) in stm32_get_quadrature_mode()
656 const struct iio_chan_spec *chan, in stm32_set_count_direction()
674 const struct iio_chan_spec *chan) in stm32_get_count_direction()
[all …]

12345678910>>...13