| /linux/include/linux/iio/ |
| H A D | iio.h | 39 struct iio_chan_spec; 54 struct iio_chan_spec const *, char *buf); 56 struct iio_chan_spec const *, const char *buf, 80 int (*set)(struct iio_dev *, const struct iio_chan_spec *, unsigned int); 81 int (*get)(struct iio_dev *, const struct iio_chan_spec *); 85 uintptr_t priv, const struct iio_chan_spec *chan, char *buf); 87 uintptr_t priv, const struct iio_chan_spec *chan, char *buf); 89 uintptr_t priv, const struct iio_chan_spec *chan, const char *buf, 136 const struct iio_chan_spec *chan, char *buf); 141 const struct iio_chan_spec *chan); [all …]
|
| H A D | backend.h | 8 struct iio_chan_spec; 148 struct iio_chan_spec *chan); 150 const struct iio_chan_spec *chan, 153 const struct iio_chan_spec *chan, char *buf); 160 struct iio_chan_spec const *chan, int *val, int *val2, 223 const struct iio_chan_spec *chan, 226 const struct iio_chan_spec *chan, char *buf); 234 struct iio_chan_spec const *chan, int *val, int *val2, 237 struct iio_chan_spec *chan); 251 struct iio_chan_spec const *chan, in iio_backend_read_scale() [all …]
|
| H A D | adc-helpers.h | 15 struct iio_chan_spec; 23 const struct iio_chan_spec *template, 25 struct iio_chan_spec **cs);
|
| /linux/drivers/iio/adc/ |
| H A D | axp20x_adc.c | 199 static const struct iio_chan_spec axp192_adc_channels[] = { 236 static const struct iio_chan_spec axp20x_adc_channels[] = { 269 static const struct iio_chan_spec axp22x_adc_channels[] = { 292 static const struct iio_chan_spec axp717_adc_channels[] = { 311 static const struct iio_chan_spec axp813_adc_channels[] = { 333 struct iio_chan_spec const *chan, int *val) in axp192_adc_raw() 354 struct iio_chan_spec const *chan, int *val) in axp20x_adc_raw() 378 struct iio_chan_spec const *chan, int *val) in axp22x_adc_raw() 392 struct iio_chan_spec const *chan, int *val) in axp717_adc_raw() 437 struct iio_chan_spec const *chan, int *val) in axp813_adc_raw() [all …]
|
| H A D | ad4080.c | 173 const struct iio_chan_spec *channels; 225 const struct iio_chan_spec *chan) in ad4080_get_dec_rate() 239 const struct iio_chan_spec *chan, in ad4080_set_dec_rate() 256 struct iio_chan_spec const *chan, in ad4080_read_raw() 291 struct iio_chan_spec const *chan, in ad4080_write_raw() 328 const struct iio_chan_spec *chan) in ad4080_get_filter_type() 342 const struct iio_chan_spec *chan, in ad4080_set_filter_type() 375 struct iio_chan_spec const *chan, in ad4080_read_avail() 441 static const struct iio_chan_spec ad4080_channel = AD4080_CHANNEL_DEFINE(20, 32); 443 static const struct iio_chan_spec ad4081_channel = AD4080_CHANNEL_DEFINE(20, 32); [all …]
|
| H A D | ad7944.c | 110 const struct iio_chan_spec channels[2]; 111 const struct iio_chan_spec offload_channels[1]; 186 const struct iio_chan_spec *chan) in ad7944_3wire_cs_mode_init_msg() 218 const struct iio_chan_spec *chan) in ad7944_4wire_mode_init_msg() 242 const struct iio_chan_spec *chan, in ad7944_chain_mode_init_msg() 285 const struct iio_chan_spec *chan) in ad7944_3wire_cs_mode_init_offload_msg() 346 const struct iio_chan_spec *chan, in ad7944_single_conversion() 376 struct iio_chan_spec const *chan, in ad7944_read_avail() 393 const struct iio_chan_spec *chan, in ad7944_read_raw() 452 const struct iio_chan_spec *chan, in ad7944_write_raw() [all …]
|
| H A D | max77541-adc.c | 30 struct iio_chan_spec const *chan, in max77541_adc_offset() 43 struct iio_chan_spec const *chan, in max77541_adc_scale() 87 struct iio_chan_spec const *chan, in max77541_adc_raw() 123 static const struct iio_chan_spec max77541_adc_channels[] = { 135 struct iio_chan_spec const *chan, in max77541_adc_read_raw()
|
| H A D | rtq6056.c | 83 const struct iio_chan_spec *channels; 85 int (*read_scale)(struct iio_chan_spec const *ch, int *val, int *val2); 116 static const struct iio_chan_spec rtq6056_channels[RTQ6056_MAX_CHANNEL + 1] = { 200 static const struct iio_chan_spec rtq6059_channels[RTQ6056_MAX_CHANNEL + 1] = { 276 struct iio_chan_spec const *ch, in rtq6056_adc_read_channel() 310 static int rtq6056_adc_read_scale(struct iio_chan_spec const *ch, int *val, in rtq6056_adc_read_scale() 333 static int rtq6059_adc_read_scale(struct iio_chan_spec const *ch, int *val, in rtq6059_adc_read_scale() 365 struct iio_chan_spec const *ch, int val) in rtq6056_adc_set_samp_freq() 453 struct iio_chan_spec const *ch, int *val) in rtq6056_adc_get_sample_freq() 472 struct iio_chan_spec const *chan, int *val, in rtq6056_adc_read_raw() [all …]
|
| /linux/drivers/iio/potentiometer/ |
| H A D | ds1803.c | 37 const struct iio_chan_spec *channels; 40 struct iio_chan_spec const *chan, int *val); 59 static const struct iio_chan_spec ds1803_channels[] = { 64 static const struct iio_chan_spec ds3502_channels[] = { 69 struct iio_chan_spec const *chan, in ds1803_read() 85 struct iio_chan_spec const *chan, in ds3502_read() 135 struct iio_chan_spec const *chan, in ds1803_read_raw() 159 struct iio_chan_spec const *chan, in ds1803_write_raw() 182 struct iio_chan_spec const *chan, in ds1803_read_avail()
|
| /linux/drivers/iio/magnetometer/ |
| H A D | st_magn_core.c | 59 const struct iio_chan_spec *chan) in st_magn_get_mount_matrix() 71 static const struct iio_chan_spec st_magn_16bit_channels[] = { 90 static const struct iio_chan_spec st_magn_2_16bit_channels[] = { 109 static const struct iio_chan_spec st_magn_3_16bit_channels[] = { 128 static const struct iio_chan_spec st_magn_4_16bit_channels[] = { 151 .ch = (struct iio_chan_spec *)st_magn_16bit_channels, 230 .ch = (struct iio_chan_spec *)st_magn_16bit_channels, 310 .ch = (struct iio_chan_spec *)st_magn_2_16bit_channels, 383 .ch = (struct iio_chan_spec *)st_magn_3_16bit_channels, 432 .ch = (struct iio_chan_spec *)st_magn_4_16bit_channels, [all …]
|
| /linux/drivers/iio/dac/ |
| H A D | rohm-bd79703.c | 50 const struct iio_chan_spec *channels; 56 struct iio_chan_spec const *chan, int *val, in bd79703_read_raw() 71 struct iio_chan_spec const *chan, int val, in bd79703_write_raw() 99 static const struct iio_chan_spec bd79700_channels[] = { 104 static const struct iio_chan_spec bd79701_channels[] = { 116 static const struct iio_chan_spec bd79702_channels[] = { 123 static const struct iio_chan_spec bd79703_channels[] = {
|
| H A D | ad5446.c | 31 const struct iio_chan_spec *chan, in ad5446_set_powerdown_mode() 42 const struct iio_chan_spec *chan) in ad5446_get_powerdown_mode() 58 const struct iio_chan_spec *chan, in ad5446_read_dac_powerdown() 68 const struct iio_chan_spec *chan, in ad5446_write_dac_powerdown() 112 struct iio_chan_spec const *chan, in ad5446_read_raw() 132 const struct iio_chan_spec *chan, in ad5446_write_dac_raw() 151 struct iio_chan_spec const *chan, int val, in ad5446_write_raw()
|
| H A D | ad5686.c | 29 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() 120 struct iio_chan_spec const *chan, in ad5686_read_raw() 147 struct iio_chan_spec const *chan, in ad5686_write_raw() 209 static const struct iio_chan_spec name[] = { \ 214 static const struct iio_chan_spec name[] = { \ 220 static const struct iio_chan_spec name[] = { \ 228 static const struct iio_chan_spec name[] = { \ [all …]
|
| H A D | ad5624r_spi.c | 46 struct iio_chan_spec const *chan, in ad5624r_read_raw() 63 struct iio_chan_spec const *chan, in ad5624r_write_raw() 91 const struct iio_chan_spec *chan) in ad5624r_get_powerdown_mode() 99 const struct iio_chan_spec *chan, unsigned int mode) in ad5624r_set_powerdown_mode() 116 uintptr_t private, const struct iio_chan_spec *chan, char *buf) in ad5624r_read_dac_powerdown() 125 uintptr_t private, const struct iio_chan_spec *chan, const char *buf, in ad5624r_write_dac_powerdown() 184 const struct iio_chan_spec _name##_channels[] = { \
|
| H A D | max5821.c | 54 const struct iio_chan_spec *chan) in max5821_get_powerdown_mode() 62 const struct iio_chan_spec *chan, in max5821_set_powerdown_mode() 81 const struct iio_chan_spec *chan, in max5821_read_dac_powerdown() 90 const struct iio_chan_spec *chan) in max5821_sync_powerdown_mode() 111 const struct iio_chan_spec *chan, in max5821_write_dac_powerdown() 153 static const struct iio_chan_spec max5821_channels[] = { 237 struct iio_chan_spec const *chan, in max5821_read_raw() 255 struct iio_chan_spec const *chan, in max5821_write_raw()
|
| H A D | ti-dac082s085.c | 80 const struct iio_chan_spec *chan) in ti_dac_get_powerdown_mode() 88 const struct iio_chan_spec *chan, in ti_dac_set_powerdown_mode() 119 const struct iio_chan_spec *chan, in ti_dac_read_powerdown() 129 const struct iio_chan_spec *chan, in ti_dac_write_powerdown() 179 static const struct iio_chan_spec ti_dac_channels[] = { 187 struct iio_chan_spec const *chan, in ti_dac_read_raw() 217 struct iio_chan_spec const *chan, in ti_dac_write_raw() 249 struct iio_chan_spec const *chan, long mask) in ti_dac_write_raw_get_fmt()
|
| H A D | ad5504.c | 94 struct iio_chan_spec const *chan, in ad5504_read_raw() 120 struct iio_chan_spec const *chan, in ad5504_write_raw() 144 const struct iio_chan_spec *chan) in ad5504_get_powerdown_mode() 152 const struct iio_chan_spec *chan, unsigned int mode) in ad5504_set_powerdown_mode() 169 uintptr_t private, const struct iio_chan_spec *chan, char *buf) in ad5504_read_dac_powerdown() 178 uintptr_t private, const struct iio_chan_spec *chan, const char *buf, in ad5504_write_dac_powerdown() 264 static const struct iio_chan_spec ad5504_channels[] = {
|
| H A D | max5522.c | 29 const struct iio_chan_spec *channels; 55 static const struct iio_chan_spec max5522_channels[] = { 72 static inline int max5522_info_to_reg(struct iio_chan_spec const *chan) in max5522_info_to_reg() 78 struct iio_chan_spec const *chan, in max5522_read_raw() 103 struct iio_chan_spec const *chan, in max5522_write_raw()
|
| H A D | ad7303.c | 64 uintptr_t private, const struct iio_chan_spec *chan, char *buf) in ad7303_read_dac_powerdown() 73 uintptr_t private, const struct iio_chan_spec *chan, const char *buf, in ad7303_write_dac_powerdown() 100 struct iio_chan_spec const *chan) in ad7303_get_vref() 114 struct iio_chan_spec const *chan, int *val, int *val2, long info) in ad7303_read_raw() 141 struct iio_chan_spec const *chan, int val, int val2, long mask) in ad7303_write_raw() 196 static const struct iio_chan_spec ad7303_channels[] = {
|
| /linux/drivers/iio/accel/ |
| H A D | st_accel_core.c | 42 const struct iio_chan_spec *chan) in st_accel_get_mount_matrix() 54 static const struct iio_chan_spec st_accel_8bit_channels[] = { 73 static const struct iio_chan_spec st_accel_12bit_channels[] = { 92 static const struct iio_chan_spec st_accel_16bit_channels[] = { 125 .ch = (struct iio_chan_spec *)st_accel_12bit_channels, 207 .ch = (struct iio_chan_spec *)st_accel_12bit_channels, 286 .ch = (struct iio_chan_spec *)st_accel_16bit_channels, 376 .ch = (struct iio_chan_spec *)st_accel_12bit_channels, 449 .ch = (struct iio_chan_spec *)st_accel_8bit_channels, 521 .ch = (struct iio_chan_spec *)st_accel_12bit_channels, [all …]
|
| /linux/drivers/iio/pressure/ |
| H A D | st_pressure_core.c | 124 static const struct iio_chan_spec st_press_1_channels[] = { 158 static const struct iio_chan_spec st_press_lps001wp_channels[] = { 190 static const struct iio_chan_spec st_press_lps22hb_channels[] = { 236 .ch = (struct iio_chan_spec *)st_press_1_channels, 309 .ch = (struct iio_chan_spec *)st_press_lps001wp_channels, 361 .ch = (struct iio_chan_spec *)st_press_1_channels, 430 .ch = (struct iio_chan_spec *)st_press_lps22hb_channels, 497 .ch = (struct iio_chan_spec *)st_press_lps22hb_channels, 566 .ch = (struct iio_chan_spec *)st_press_lps22hb_channels, 628 struct iio_chan_spec const *ch, in st_press_write_raw() [all …]
|
| /linux/drivers/iio/multiplexer/ |
| H A D | iio-mux.c | 34 struct iio_chan_spec *chan; 43 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 const *pchan = mux->parent->channel; in mux_configure_chan_ext_info() 297 struct iio_chan_spec *chan = &mux->chan[idx]; in mux_configure_channel() 298 struct iio_chan_spec const *pchan = mux->parent->channel; in mux_configure_channel() [all …]
|
| /linux/drivers/iio/gyro/ |
| H A D | st_gyro_core.c | 37 const struct iio_chan_spec *chan) in st_gyro_get_mount_matrix() 49 static const struct iio_chan_spec st_gyro_16bit_channels[] = { 76 .ch = (struct iio_chan_spec *)st_gyro_16bit_channels, 154 .ch = (struct iio_chan_spec *)st_gyro_16bit_channels, 228 .ch = (struct iio_chan_spec *)st_gyro_16bit_channels, 302 .ch = (struct iio_chan_spec *)st_gyro_16bit_channels, 378 struct iio_chan_spec const *ch, int *val, in st_gyro_read_raw() 407 struct iio_chan_spec const *chan, int val, int val2, long mask) in st_gyro_write_raw()
|
| /linux/drivers/iio/amplifiers/ |
| H A D | hmc425a.c | 47 const struct iio_chan_spec *channels; 169 struct iio_chan_spec const *chan, int *val, in hmc425a_read_raw() 192 struct iio_chan_spec const *chan, int val, in hmc425a_write_raw() 217 struct iio_chan_spec const *chan, in hmc425a_write_raw_get_fmt() 236 const struct iio_chan_spec *chan, in ltc6373_read_powerdown() 246 const struct iio_chan_spec *chan, in ltc6373_write_powerdown() 295 static const struct iio_chan_spec hmc425a_channels[] = { 299 static const struct iio_chan_spec ltc6373_channels[] = {
|
| /linux/drivers/iio/temperature/ |
| H A D | tmp117.c | 49 struct iio_chan_spec const *channels; 54 struct iio_chan_spec const *channel, int *val, in tmp117_read_raw() 93 static int tmp117_write_raw(struct iio_dev *indio_dev, struct iio_chan_spec in tmp117_write_raw() 113 static const struct iio_chan_spec tmp117_channels[] = { 122 static const struct iio_chan_spec tmp116_channels[] = {
|