/kernel/linux/linux-5.10/Documentation/driver-api/iio/ |
D | buffers.rst | 77 int scan_index 97 .scan_index = 0, 106 /* similar for Y (with channel2 = IIO_MOD_Y, scan_index = 1) 107 * and Z (with channel2 = IIO_MOD_Z, scan_index = 2) axis 111 Here **scan_index** defines the order in which the enabled channels are placed 112 inside the buffer. Channels with a lower **scan_index** will be placed before 114 **scan_index**. 116 Setting **scan_index** to -1 can be used to indicate that the specific channel
|
/kernel/linux/linux-5.10/drivers/iio/accel/ |
D | hid-sensor-accel-3d.c | 59 .scan_index = CHANNEL_SCAN_INDEX_X, 69 .scan_index = CHANNEL_SCAN_INDEX_Y, 79 .scan_index = CHANNEL_SCAN_INDEX_Z, 95 .scan_index = CHANNEL_SCAN_INDEX_X, 105 .scan_index = CHANNEL_SCAN_INDEX_Y, 115 .scan_index = CHANNEL_SCAN_INDEX_Z, 149 report_id = accel_state->accel[chan->scan_index].report_id; in accel_3d_read_raw() 150 min = accel_state->accel[chan->scan_index].logical_minimum; in accel_3d_read_raw() 151 address = accel_3d_addresses[chan->scan_index]; in accel_3d_read_raw()
|
/kernel/linux/linux-5.10/drivers/iio/dummy/ |
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 */
|
/kernel/linux/linux-5.10/drivers/iio/gyro/ |
D | hid-sensor-gyro-3d.c | 54 .scan_index = CHANNEL_SCAN_INDEX_X, 64 .scan_index = CHANNEL_SCAN_INDEX_Y, 74 .scan_index = CHANNEL_SCAN_INDEX_Z, 106 report_id = gyro_state->gyro[chan->scan_index].report_id; in gyro_3d_read_raw() 107 min = gyro_state->gyro[chan->scan_index].logical_minimum; in gyro_3d_read_raw() 108 address = gyro_3d_addresses[chan->scan_index]; in gyro_3d_read_raw()
|
D | adis16260.c | 237 addr = adis16260_addresses[chan->scan_index][0]; in adis16260_read_raw() 245 addr = adis16260_addresses[chan->scan_index][1]; in adis16260_read_raw() 287 addr = adis16260_addresses[chan->scan_index][0]; in adis16260_write_raw() 293 addr = adis16260_addresses[chan->scan_index][1]; in adis16260_write_raw()
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
D | ingenic-adc.c | 388 .scan_index = -1, 399 .scan_index = -1, 408 .scan_index = 0, 419 .scan_index = 1, 430 .scan_index = 2, 441 .scan_index = 3, 452 .scan_index = 4, 463 .scan_index = 5, 477 .scan_index = -1, 488 .scan_index = -1, [all …]
|
D | ti-adc0832.c | 50 .scan_index = chan, \ 67 .scan_index = si, \ 209 int scan_index; in adc0832_trigger_handler() local 214 for_each_set_bit(scan_index, indio_dev->active_scan_mask, in adc0832_trigger_handler() 217 &indio_dev->channels[scan_index]; in adc0832_trigger_handler()
|
D | ti-ads124s08.c | 119 .scan_index = index, \ 280 int scan_index, j = 0; in ads124s_trigger_handler() local 283 for_each_set_bit(scan_index, indio_dev->active_scan_mask, in ads124s_trigger_handler() 286 scan_index); in ads124s_trigger_handler() 294 priv->buffer[j] = ads124s_read(indio_dev, scan_index); in ads124s_trigger_handler()
|
D | ti-adc084s021.c | 47 .scan_index = (num), \ 166 int scan_index; in adc084s021_buffer_preenable() local 169 for_each_set_bit(scan_index, indio_dev->active_scan_mask, in adc084s021_buffer_preenable() 172 &indio_dev->channels[scan_index]; in adc084s021_buffer_preenable()
|
D | max1118.c | 55 .scan_index = ch, \ 174 int scan_index; in max1118_trigger_handler() local 179 for_each_set_bit(scan_index, indio_dev->active_scan_mask, in max1118_trigger_handler() 182 &indio_dev->channels[scan_index]; in max1118_trigger_handler()
|
D | ti-adc12138.c | 69 .scan_index = chan, \ 89 .scan_index = si, \ 340 int scan_index; in adc12138_trigger_handler() local 345 for_each_set_bit(scan_index, indio_dev->active_scan_mask, in adc12138_trigger_handler() 348 &indio_dev->channels[scan_index]; in adc12138_trigger_handler()
|
/kernel/linux/linux-5.10/drivers/iio/chemical/ |
D | atlas-sensor.c | 120 .scan_index = 0, 135 .scan_index = -1 147 .scan_index = _idx + 1, \ 162 .scan_index = 0, 179 .scan_index = -1 189 .scan_index = 0, 206 .scan_index = 0, 221 .scan_index = -1 230 .scan_index = 0,
|
D | ccs811.c | 93 .scan_index = -1, 98 .scan_index = -1, 105 .scan_index = 0, 118 .scan_index = 1,
|
/kernel/linux/linux-5.10/drivers/iio/orientation/ |
D | hid-sensor-incl-3d.c | 55 .scan_index = CHANNEL_SCAN_INDEX_X, 65 .scan_index = CHANNEL_SCAN_INDEX_Y, 75 .scan_index = CHANNEL_SCAN_INDEX_Z, 107 report_id = incl_state->incl[chan->scan_index].report_id; in incl_3d_read_raw() 108 min = incl_state->incl[chan->scan_index].logical_minimum; in incl_3d_read_raw() 109 address = incl_3d_addresses[chan->scan_index]; in incl_3d_read_raw()
|
/kernel/linux/linux-5.10/drivers/iio/pressure/ |
D | st_pressure_core.c | 134 .scan_index = 0, 148 .scan_index = 1, 168 .scan_index = 0, 182 .scan_index = 1, 200 .scan_index = 0, 215 .scan_index = 1,
|
D | cros_ec_baro.c | 43 int idx = chan->scan_index; in cros_ec_baro_read() 162 channel->scan_index = 0; in cros_ec_baro_probe() 180 channel->scan_index = 1; in cros_ec_baro_probe()
|
/kernel/linux/linux-5.10/drivers/iio/common/ssp_sensors/ |
D | ssp_iio_sensor.h | 11 .scan_index = _index,\ 25 .scan_index = _si, \
|
/kernel/linux/linux-5.10/drivers/iio/light/ |
D | cros_ec_light_prox.c | 46 int idx = chan->scan_index; in cros_ec_light_prox_read() 130 int idx = chan->scan_index; in cros_ec_light_prox_write() 204 channel->scan_index = 0; in cros_ec_light_prox_probe() 233 channel->scan_index = 1; in cros_ec_light_prox_probe()
|
/kernel/linux/linux-5.10/drivers/iio/imu/ |
D | adis16400.c | 513 adis16400_addresses[chan->scan_index], val); in adis16400_write_raw() 597 adis16400_addresses[chan->scan_index], &val16); in adis16400_read_raw() 690 .scan_index = (si), \ 716 .scan_index = ADIS16400_SCAN_GYRO_ ## mod, \ 736 .scan_index = ADIS16400_SCAN_ACC_ ## mod, \ 755 .scan_index = ADIS16400_SCAN_MAGN_ ## mod, \ 781 .scan_index = ADIS16350_SCAN_TEMP_ ## mod, \ 800 .scan_index = ADIS16350_SCAN_TEMP_X, \ 818 .scan_index = ADIS16300_SCAN_INCLI_ ## mod, \ 871 .scan_index = ADIS16400_SCAN_BARO, [all …]
|
D | adis16480.c | 422 unsigned int reg = adis16480_calibbias_regs[chan->scan_index]; in adis16480_set_calibbias() 444 unsigned int reg = adis16480_calibbias_regs[chan->scan_index]; in adis16480_get_calibbias() 476 unsigned int reg = adis16480_calibscale_regs[chan->scan_index]; in adis16480_set_calibscale() 488 unsigned int reg = adis16480_calibscale_regs[chan->scan_index]; in adis16480_get_calibscale() 535 reg = ad16480_filter_data[chan->scan_index][0]; in adis16480_get_filter_freq() 536 offset = ad16480_filter_data[chan->scan_index][1]; in adis16480_get_filter_freq() 562 reg = ad16480_filter_data[chan->scan_index][0]; in adis16480_set_filter_freq() 563 offset = ad16480_filter_data[chan->scan_index][1]; in adis16480_set_filter_freq() 689 .scan_index = (_si), \ 728 .scan_index = ADIS16480_SCAN_BARO, \ [all …]
|
/kernel/linux/linux-5.10/drivers/iio/common/cros_ec_sensors/ |
D | cros_ec_sensors.c | 44 int idx = chan->scan_index; in cros_ec_sensors_read() 156 int idx = chan->scan_index; in cros_ec_sensors_write() 260 channel->scan_index = i; in cros_ec_sensors_probe() 286 channel->scan_index = CROS_EC_SENSOR_MAX_AXIS; in cros_ec_sensors_probe()
|
/kernel/linux/linux-5.10/drivers/iio/health/ |
D | afe440x.h | 88 .scan_index = _index, \ 105 .scan_index = -1, \
|
/kernel/linux/linux-5.10/drivers/iio/temperature/ |
D | maxim_thermocouple.c | 47 .scan_index = 0, 66 .scan_index = 0, 82 .scan_index = 1,
|
/kernel/linux/linux-5.10/drivers/iio/magnetometer/ |
D | mag3110.c | 294 be16_to_cpu(buffer[chan->scan_index]), 15); in mag3110_read_raw() 338 MAG3110_OFF_X + 2 * chan->scan_index); in mag3110_read_raw() 381 MAG3110_OFF_X + 2 * chan->scan_index, val << 1); in mag3110_write_raw() 426 .scan_index = idx, \ 443 .scan_index = 3,
|
/kernel/linux/linux-5.10/drivers/staging/iio/accel/ |
D | adis16240.c | 287 addr = adis16240_addresses[chan->scan_index][0]; in adis16240_read_raw() 294 addr = adis16240_addresses[chan->scan_index][1]; in adis16240_read_raw() 315 addr = adis16240_addresses[chan->scan_index][0]; in adis16240_write_raw()
|