Home
last modified time | relevance | path

Searched refs:scan_index (Results 1 – 25 of 158) sorted by relevance

1234567

/drivers/iio/adc/
Dingenic-adc.c394 .scan_index = -1,
405 .scan_index = -1,
417 .scan_index = -1,
426 .scan_index = -1,
435 .scan_index = -1,
446 .scan_index = -1,
455 .scan_index = 0,
466 .scan_index = 1,
477 .scan_index = 2,
488 .scan_index = 3,
[all …]
Dti-adc0832.c50 .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()
Dmax1118.c55 .scan_index = ch, \
172 int scan_index; in max1118_trigger_handler() local
177 for_each_set_bit(scan_index, indio_dev->active_scan_mask, in max1118_trigger_handler()
180 &indio_dev->channels[scan_index]; in max1118_trigger_handler()
Dti-ads124s08.c119 .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()
Dti-adc084s021.c47 .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()
Dti-adc12138.c69 .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()
Dstm32-adc.c1665 u32 vinn, int scan_index, bool differential) in stm32_adc_chan_init_one() argument
1680 chan->scan_index = scan_index; in stm32_adc_chan_init_one()
1709 int scan_index = 0, num_channels = 0, num_diff = 0, ret, i; in stm32_adc_chan_of_init() local
1770 stm32_adc_chan_init_one(indio_dev, &channels[scan_index], val, in stm32_adc_chan_of_init()
1771 0, scan_index, false); in stm32_adc_chan_of_init()
1772 scan_index++; in stm32_adc_chan_of_init()
1782 stm32_adc_chan_init_one(indio_dev, &channels[scan_index], in stm32_adc_chan_of_init()
1783 diff[i].vinp, diff[i].vinn, scan_index, in stm32_adc_chan_of_init()
1785 scan_index++; in stm32_adc_chan_of_init()
1788 for (i = 0; i < scan_index; i++) { in stm32_adc_chan_of_init()
[all …]
/drivers/iio/accel/
Dhid-sensor-accel-3d.c61 .scan_index = CHANNEL_SCAN_INDEX_X,
71 .scan_index = CHANNEL_SCAN_INDEX_Y,
81 .scan_index = CHANNEL_SCAN_INDEX_Z,
97 .scan_index = CHANNEL_SCAN_INDEX_X,
107 .scan_index = CHANNEL_SCAN_INDEX_Y,
117 .scan_index = CHANNEL_SCAN_INDEX_Z,
152 report_id = accel_state->accel[chan->scan_index].report_id; in accel_3d_read_raw()
153 min = accel_state->accel[chan->scan_index].logical_minimum; in accel_3d_read_raw()
154 address = accel_3d_addresses[chan->scan_index]; in accel_3d_read_raw()
/drivers/iio/dummy/
Diio_simple_dummy.c129 .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 */
/drivers/iio/gyro/
Dhid-sensor-gyro-3d.c60 .scan_index = CHANNEL_SCAN_INDEX_X,
70 .scan_index = CHANNEL_SCAN_INDEX_Y,
80 .scan_index = CHANNEL_SCAN_INDEX_Z,
113 report_id = gyro_state->gyro[chan->scan_index].report_id; in gyro_3d_read_raw()
114 min = gyro_state->gyro[chan->scan_index].logical_minimum; in gyro_3d_read_raw()
115 address = gyro_3d_addresses[chan->scan_index]; in gyro_3d_read_raw()
Dadis16260.c232 addr = adis16260_addresses[chan->scan_index][0]; in adis16260_read_raw()
240 addr = adis16260_addresses[chan->scan_index][1]; in adis16260_read_raw()
282 addr = adis16260_addresses[chan->scan_index][0]; in adis16260_write_raw()
288 addr = adis16260_addresses[chan->scan_index][1]; in adis16260_write_raw()
/drivers/iio/position/
Dhid-sensor-custom-intel-hinge.c66 .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()
/drivers/iio/chemical/
Datlas-sensor.c120 .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,
/drivers/iio/orientation/
Dhid-sensor-incl-3d.c63 .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()
/drivers/iio/pressure/
Dst_pressure_core.c128 .scan_index = 0,
142 .scan_index = 1,
162 .scan_index = 0,
176 .scan_index = 1,
194 .scan_index = 0,
209 .scan_index = 1,
Dcros_ec_baro.c43 int idx = chan->scan_index; in cros_ec_baro_read()
160 channel->scan_index = 0; in cros_ec_baro_probe()
178 channel->scan_index = 1; in cros_ec_baro_probe()
/drivers/iio/imu/
Dadis16400.c505 adis16400_addresses[chan->scan_index], val); in adis16400_write_raw()
588 adis16400_addresses[chan->scan_index], &val16); in adis16400_read_raw()
669 .scan_index = (si), \
695 .scan_index = ADIS16400_SCAN_GYRO_ ## mod, \
715 .scan_index = ADIS16400_SCAN_ACC_ ## mod, \
734 .scan_index = ADIS16400_SCAN_MAGN_ ## mod, \
760 .scan_index = ADIS16350_SCAN_TEMP_ ## mod, \
779 .scan_index = ADIS16350_SCAN_TEMP_X, \
797 .scan_index = ADIS16300_SCAN_INCLI_ ## mod, \
850 .scan_index = ADIS16400_SCAN_BARO,
[all …]
Dadis16480.c475 unsigned int reg = adis16480_calibbias_regs[chan->scan_index]; in adis16480_set_calibbias()
497 unsigned int reg = adis16480_calibbias_regs[chan->scan_index]; in adis16480_get_calibbias()
529 unsigned int reg = adis16480_calibscale_regs[chan->scan_index]; in adis16480_set_calibscale()
541 unsigned int reg = adis16480_calibscale_regs[chan->scan_index]; in adis16480_get_calibscale()
588 reg = ad16480_filter_data[chan->scan_index][0]; in adis16480_get_filter_freq()
589 offset = ad16480_filter_data[chan->scan_index][1]; in adis16480_get_filter_freq()
614 reg = ad16480_filter_data[chan->scan_index][0]; in adis16480_set_filter_freq()
615 offset = ad16480_filter_data[chan->scan_index][1]; in adis16480_set_filter_freq()
741 .scan_index = (_si), \
780 .scan_index = ADIS16480_SCAN_BARO, \
[all …]
/drivers/iio/light/
Dcros_ec_light_prox.c46 int idx = chan->scan_index; in cros_ec_light_prox_read()
130 int idx = chan->scan_index; in cros_ec_light_prox_write()
202 channel->scan_index = 0; in cros_ec_light_prox_probe()
231 channel->scan_index = 1; in cros_ec_light_prox_probe()
/drivers/iio/common/ssp_sensors/
Dssp_iio_sensor.h11 .scan_index = _index,\
25 .scan_index = _si, \
/drivers/iio/common/scmi_sensors/
Dscmi_iio.c292 scale = sensor->sensor_info->axis[ch->scan_index].scale; in scmi_iio_read_raw()
367 int scan_index) in scmi_iio_set_timestamp_channel() argument
371 iio_chan->scan_index = scan_index; in scmi_iio_set_timestamp_channel()
379 enum iio_modifier mod, int scan_index) in scmi_iio_set_data_channel() argument
388 iio_chan->scan_index = scan_index; in scmi_iio_set_data_channel()
/drivers/iio/common/cros_ec_sensors/
Dcros_ec_sensors.c44 int idx = chan->scan_index; in cros_ec_sensors_read()
156 int idx = chan->scan_index; in cros_ec_sensors_write()
258 channel->scan_index = i; in cros_ec_sensors_probe()
284 channel->scan_index = CROS_EC_SENSOR_MAX_AXIS; in cros_ec_sensors_probe()
/drivers/iio/temperature/
Dmaxim_thermocouple.c47 .scan_index = 0,
66 .scan_index = 0,
82 .scan_index = 1,
/drivers/iio/magnetometer/
Dmag3110.c294 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,
/drivers/iio/health/
Dafe440x.h88 .scan_index = _index, \
105 .scan_index = -1, \

1234567