| /linux/drivers/iio/light/ |
| H A D | hid-sensor-prox.c | 89 if (chan->scan_index >= prox_state->num_channels) in prox_read_raw() 91 address = prox_state->channel2usage[chan->scan_index]; in prox_read_raw() 92 report_id = prox_state->prox_attr[chan->scan_index].report_id; in prox_read_raw() 94 min = prox_state->prox_attr[chan->scan_index].logical_minimum; in prox_read_raw() 102 if (prox_state->channel2usage[chan->scan_index] == in prox_read_raw() 109 if (chan->scan_index >= prox_state->num_channels) in prox_read_raw() 112 *val = prox_state->scale_pre_decml[chan->scan_index]; in prox_read_raw() 113 *val2 = prox_state->scale_post_decml[chan->scan_index]; in prox_read_raw() 114 ret_type = prox_state->scale_precision[chan->scan_index]; in prox_read_raw() 242 channels[index].scan_index in prox_parse_report() [all...] |
| H A D | cros_ec_light_prox.c | 47 int idx = chan->scan_index; in cros_ec_light_prox_read() 131 int idx = chan->scan_index; in cros_ec_light_prox_write() 201 channel->scan_index = 0; in cros_ec_light_prox_probe()
|
| /linux/Documentation/driver-api/iio/ |
| H A D | buffers.rst | 37 * :file:`index`, the scan_index of the channel. 80 int scan_index 100 .scan_index = 0, 109 /* similar for Y (with channel2 = IIO_MOD_Y, scan_index = 1) 110 * and Z (with channel2 = IIO_MOD_Z, scan_index = 2) axis 114 Here **scan_index** defines the order in which the enabled channels are placed 115 inside the buffer. Channels with a lower **scan_index** will be placed before 117 **scan_index**. 119 Setting **scan_index** to -1 can be used to indicate that the specific channel
|
| /linux/drivers/iio/adc/ |
| H A D | ingenic-adc.c | 391 .scan_index = -1, 402 .scan_index = -1, 414 .scan_index = -1, 423 .scan_index = -1, 432 .scan_index = -1, 443 .scan_index = -1, 452 .scan_index = 0, 463 .scan_index = 1, 474 .scan_index = 2, 485 .scan_index [all...] |
| H A D | pac1934.c | 331 .scan_index = (_si), \ 349 .scan_index = (_si), \ 367 .scan_index = (_si), \ 385 .scan_index = (_si), \ 403 .scan_index = (_si), \ 421 .scan_index = (_si), \ 980 info->labels[chan->scan_index], in pac1934_read_label() 981 chan->scan_index + 1); in pac1934_read_label() 987 info->labels[chan->scan_index], in pac1934_read_label() 988 chan->scan_index + 1); in pac1934_read_label() [all …]
|
| H A D | ti-adc0832.c | 50 .scan_index = chan, \ 67 .scan_index = si, \ 209 int scan_index; in adc0832_trigger_handler() local 214 iio_for_each_active_channel(indio_dev, scan_index) { in adc0832_trigger_handler() 216 &indio_dev->channels[scan_index]; in adc0832_trigger_handler()
|
| H A D | max1118.c | 55 .scan_index = ch, \ 172 int scan_index; in max1118_trigger_handler() local 177 iio_for_each_active_channel(indio_dev, scan_index) { in max1118_trigger_handler() 179 &indio_dev->channels[scan_index]; in max1118_trigger_handler()
|
| H A D | ad7606.c | 293 struct ad7606_chan_info *ci = &st->chan_info[chan->scan_index]; in ad7606_16bit_chan_scale_setup() 378 struct ad7606_chan_info *ci = &st->chan_info[chan->scan_index]; in ad7606c_18bit_chan_scale_setup() 389 ret = ad7606_get_chan_config(indio_dev, chan->scan_index, &bipolar, in ad7606c_18bit_chan_scale_setup() 436 struct ad7606_chan_info *ci = &st->chan_info[chan->scan_index]; in ad7606c_16bit_chan_scale_setup() 447 ret = ad7606_get_chan_config(indio_dev, chan->scan_index, &bipolar, in ad7606c_16bit_chan_scale_setup() 495 struct ad7606_chan_info *ci = &st->chan_info[chan->scan_index]; in ad7607_chan_scale_setup() 507 struct ad7606_chan_info *ci = &st->chan_info[chan->scan_index]; in ad7608_chan_scale_setup() 519 struct ad7606_chan_info *ci = &st->chan_info[chan->scan_index]; in ad7609_chan_scale_setup() 769 ret = ad7606_scan_direct(indio_dev, chan->scan_index, val); in ad7606_read_raw() 776 ch = chan->scan_index; in ad7606_read_raw() [all...] |
| H A D | ti-ads1018.c | 106 .scan_index = _index, \ 126 .scan_index = _index, \ 144 .scan_index = _index, \ 253 u8 pga_mode = ads1018->chan_data[chan->scan_index].pga_mode; in ads1018_single_shot() 273 cfg |= FIELD_PREP(ADS1018_CFG_MUX_MASK, chan->scan_index); in ads1018_single_shot() 298 u8 addr = chan->scan_index; in ads1018_read_raw_direct_mode() 398 ads1018->chan_data[chan->scan_index].pga_mode = i; in ads1018_write_raw_direct_mode() 409 ads1018->chan_data[chan->scan_index].data_rate_mode = i; in ads1018_write_raw_direct_mode()
|
| H A D | stm32-adc.c | 2085 u32 vinn, int scan_index, bool differential) in stm32_adc_chan_init_one() argument 2100 chan->scan_index = scan_index; in stm32_adc_chan_init_one() 2180 int scan_index = 0, ret, i, c; in stm32_adc_legacy_chan_init() local 2199 stm32_adc_chan_init_one(indio_dev, &channels[scan_index], in stm32_adc_legacy_chan_init() 2201 scan_index, true); in stm32_adc_legacy_chan_init() 2202 scan_index++; in stm32_adc_legacy_chan_init() 2227 stm32_adc_chan_init_one(indio_dev, &channels[scan_index], in stm32_adc_legacy_chan_init() 2228 chans[c], 0, scan_index, false); in stm32_adc_legacy_chan_init() 2229 scan_index in stm32_adc_legacy_chan_init() 2329 int val, scan_index = 0, ret; stm32_adc_generic_chan_init() local 2400 int scan_index = 0, num_channels = 0, ret, i; stm32_adc_chan_fw_init() local [all...] |
| H A D | rtq6056.c | 128 .scan_index = 0, 147 .scan_index = 1, 165 .scan_index = 2, 182 .scan_index = 3, 211 .scan_index = 0, 229 .scan_index = 1, 247 .scan_index = 2, 264 .scan_index = 3,
|
| H A D | ti-ads124s08.c | 118 .scan_index = index, \ 279 int scan_index, j = 0; in ads124s_trigger_handler() local 282 iio_for_each_active_channel(indio_dev, scan_index) { in ads124s_trigger_handler() 284 scan_index); in ads124s_trigger_handler()
|
| H A D | sophgo-cv1800b-adc.c | 55 .scan_index = index, \ 108 cv1800b_adc_start_measurement(saradc, chan->scan_index); in cv1800b_adc_read_raw() 113 sample = readl(saradc->regs + CV1800B_ADC_CH_RESULT_REG(chan->scan_index)); in cv1800b_adc_read_raw()
|
| /linux/drivers/iio/accel/ |
| H A D | hid-sensor-accel-3d.c | 62 .scan_index = CHANNEL_SCAN_INDEX_X, 72 .scan_index = CHANNEL_SCAN_INDEX_Y, 82 .scan_index = CHANNEL_SCAN_INDEX_Z, 98 .scan_index = CHANNEL_SCAN_INDEX_X, 108 .scan_index = CHANNEL_SCAN_INDEX_Y, 118 .scan_index = CHANNEL_SCAN_INDEX_Z, 142 report_id = accel_state->accel[chan->scan_index].report_id; in accel_3d_read_raw() 143 min = accel_state->accel[chan->scan_index].logical_minimum; in accel_3d_read_raw() 144 address = accel_3d_addresses[chan->scan_index]; in accel_3d_read_raw()
|
| /linux/drivers/iio/dummy/ |
| H A D | iio_simple_dummy.c | 129 .scan_index = DUMMY_INDEX_VOLTAGE_0, 168 .scan_index = DUMMY_INDEX_DIFFVOLTAGE_1M2, 186 .scan_index = DUMMY_INDEX_DIFFVOLTAGE_3M4, 213 .scan_index = DUMMY_INDEX_ACCELX, 230 .scan_index = -1, /* No buffer support */ 240 .scan_index = -1, /* No buffer support */ 251 .scan_index = -1, /* No buffer support */ 262 .scan_index = -1, /* No buffer support */
|
| /linux/drivers/iio/position/ |
| H A D | hid-sensor-custom-intel-hinge.c | 66 .scan_index = CHANNEL_SCAN_INDEX_HINGE_ANGLE, 79 .scan_index = CHANNEL_SCAN_INDEX_SCREEN_ANGLE, 92 .scan_index = CHANNEL_SCAN_INDEX_KEYBOARD_ANGLE, 122 report_id = st->hinge[chan->scan_index].report_id; in hinge_read_raw() 123 min = st->hinge[chan->scan_index].logical_minimum; in hinge_read_raw() 131 hinge_addresses[chan->scan_index], in hinge_read_raw()
|
| /linux/drivers/iio/gyro/ |
| H A D | hid-sensor-gyro-3d.c | 61 .scan_index = CHANNEL_SCAN_INDEX_X, 71 .scan_index = CHANNEL_SCAN_INDEX_Y, 81 .scan_index = CHANNEL_SCAN_INDEX_Z, 103 report_id = gyro_state->gyro[chan->scan_index].report_id; in gyro_3d_read_raw() 104 min = gyro_state->gyro[chan->scan_index].logical_minimum; in gyro_3d_read_raw() 105 address = gyro_3d_addresses[chan->scan_index]; in gyro_3d_read_raw()
|
| H A D | adis16260.c | 232 addr = adis16260_addresses[chan->scan_index][0]; in adis16260_read_raw() 240 addr = adis16260_addresses[chan->scan_index][1]; in adis16260_read_raw() 281 addr = adis16260_addresses[chan->scan_index][0]; in adis16260_write_raw() 287 addr = adis16260_addresses[chan->scan_index][1]; in adis16260_write_raw()
|
| /linux/drivers/iio/orientation/ |
| H A D | hid-sensor-incl-3d.c | 63 .scan_index = CHANNEL_SCAN_INDEX_X, 73 .scan_index = CHANNEL_SCAN_INDEX_Y, 83 .scan_index = CHANNEL_SCAN_INDEX_Z, 116 report_id = incl_state->incl[chan->scan_index].report_id; in incl_3d_read_raw() 117 min = incl_state->incl[chan->scan_index].logical_minimum; in incl_3d_read_raw() 118 address = incl_3d_addresses[chan->scan_index]; in incl_3d_read_raw()
|
| /linux/drivers/iio/common/scmi_sensors/ |
| H A D | scmi_iio.c | 325 *val = lower_32_bits(readings[ch->scan_index].value); in scmi_iio_read_channel_data() 326 *val2 = upper_32_bits(readings[ch->scan_index].value); in scmi_iio_read_channel_data() 341 scale = sensor->sensor_info->axis[ch->scan_index].scale; in scmi_iio_read_raw() 424 enum iio_modifier mod, int scan_index) in scmi_iio_set_timestamp_channel() 434 iio_chan->scan_index = scan_index; in scmi_iio_set_data_channel() 423 scmi_iio_set_timestamp_channel(struct iio_chan_spec * iio_chan,int scan_index) scmi_iio_set_timestamp_channel() argument 435 scmi_iio_set_data_channel(struct iio_chan_spec * iio_chan,enum iio_chan_type type,enum iio_modifier mod,int scan_index) scmi_iio_set_data_channel() argument
|
| /linux/drivers/iio/imu/ |
| H A D | adis16400.c | 482 adis16400_addresses[chan->scan_index], in adis16400_write_raw() 562 adis16400_addresses[chan->scan_index], &val16); in adis16400_read_raw() 654 .scan_index = (si), \ 680 .scan_index = ADIS16400_SCAN_GYRO_ ## mod, \ 700 .scan_index = ADIS16400_SCAN_ACC_ ## mod, \ 719 .scan_index = ADIS16400_SCAN_MAGN_ ## mod, \ 745 .scan_index = ADIS16350_SCAN_TEMP_ ## mod, \ 764 .scan_index = ADIS16350_SCAN_TEMP_X, \ 782 .scan_index = ADIS16300_SCAN_INCLI_ ## mod, \ 835 .scan_index = ADIS16400_SCAN_BARO, [all …]
|
| /linux/drivers/iio/pressure/ |
| H A D | st_pressure_core.c | 128 .scan_index = 0, 142 .scan_index = 1, 162 .scan_index = 0, 176 .scan_index = 1, 194 .scan_index = 0, 209 .scan_index = 1,
|
| H A D | cros_ec_baro.c | 44 int idx = chan->scan_index; in cros_ec_baro_read() 159 channel->scan_index = 0; in cros_ec_baro_probe()
|
| /linux/drivers/iio/common/ssp_sensors/ |
| H A D | ssp_iio_sensor.h | 11 .scan_index = _index,\
|
| /linux/drivers/iio/common/cros_ec_sensors/ |
| H A D | cros_ec_sensors.c | 45 int idx = chan->scan_index; in cros_ec_sensors_read() 157 int idx = chan->scan_index; in cros_ec_sensors_write() 259 channel->scan_index = i; in cros_ec_sensors_probe()
|