Home
last modified time | relevance | path

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

123456789

/linux/drivers/iio/light/
H A Dhid-sensor-als.c71 .scan_index = CHANNEL_SCAN_INDEX_INTENSITY,
81 .scan_index = CHANNEL_SCAN_INDEX_ILLUM,
91 .scan_index = CHANNEL_SCAN_INDEX_COLOR_TEMP,
103 .scan_index = CHANNEL_SCAN_INDEX_CHROMATICITY_X,
115 .scan_index = CHANNEL_SCAN_INDEX_CHROMATICITY_Y,
148 switch (chan->scan_index) { in als_read_raw()
151 report_id = als_state->als[chan->scan_index].report_id; in als_read_raw()
152 min = als_state->als[chan->scan_index].logical_minimum; in als_read_raw()
156 report_id = als_state->als[chan->scan_index].report_id; in als_read_raw()
157 min = als_state->als[chan->scan_index] in als_read_raw()
[all...]
H A Dcros_ec_light_prox.c47 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()
230 channel->scan_index = 1; in cros_ec_light_prox_probe()
/linux/Documentation/driver-api/iio/
H A Dbuffers.rst37 * :file:`index`, the scan_index of the channel.
79 int scan_index
99 .scan_index = 0,
108 /* similar for Y (with channel2 = IIO_MOD_Y, scan_index = 1)
109 * and Z (with channel2 = IIO_MOD_Z, scan_index = 2) axis
113 Here **scan_index** defines the order in which the enabled channels are placed
114 inside the buffer. Channels with a lower **scan_index** will be placed before
116 **scan_index**.
118 Setting **scan_index** to -1 can be used to indicate that the specific channel
/linux/drivers/iio/adc/
H A Dingenic-adc.c396 .scan_index = -1,
407 .scan_index = -1,
419 .scan_index = -1,
428 .scan_index = -1,
437 .scan_index = -1,
448 .scan_index = -1,
457 .scan_index = 0,
468 .scan_index = 1,
479 .scan_index = 2,
490 .scan_index
[all...]
H A Dpac1934.c330 .scan_index = (_si), \
348 .scan_index = (_si), \
366 .scan_index = (_si), \
384 .scan_index = (_si), \
402 .scan_index = (_si), \
420 .scan_index = (_si), \
979 info->labels[chan->scan_index], in pac1934_read_label()
980 chan->scan_index + 1); in pac1934_read_label()
986 info->labels[chan->scan_index], in pac1934_read_label()
987 chan->scan_index in pac1934_read_label()
[all...]
H A Dti-adc0832.c50 .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 Dmax1118.c55 .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 Dti-adc084s021.c47 .scan_index = (num), \
165 int scan_index; in adc084s021_buffer_preenable() local
168 iio_for_each_active_channel(indio_dev, scan_index) { in adc084s021_buffer_preenable()
170 &indio_dev->channels[scan_index]; in adc084s021_buffer_preenable()
H A Dad7606.c293 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 Dti-ads124s08.c118 .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 Drtq6056.c128 .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 Dsophgo-cv1800b-adc.c55 .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()
H A Dti-adc12138.c70 .scan_index = chan, \
90 .scan_index = si, \
342 int scan_index; in adc12138_trigger_handler() local
347 iio_for_each_active_channel(indio_dev, scan_index) { in adc12138_trigger_handler()
349 &indio_dev->channels[scan_index]; in adc12138_trigger_handler()
/linux/drivers/iio/accel/
H A 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()
/linux/drivers/iio/dummy/
H A 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 */
/linux/drivers/iio/gyro/
H A 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()
H A 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()
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 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()
/linux/drivers/iio/common/ssp_sensors/
H A Dssp_iio_sensor.h11 .scan_index = _index,\
25 .scan_index = _si, \
/linux/drivers/iio/common/scmi_sensors/
H A Dscmi_iio.c326 *val = lower_32_bits(readings[ch->scan_index].value); in scmi_iio_read_channel_data()
327 *val2 = upper_32_bits(readings[ch->scan_index].value); in scmi_iio_read_channel_data()
342 scale = sensor->sensor_info->axis[ch->scan_index].scale; in scmi_iio_read_raw()
424 int scan_index) in scmi_iio_set_timestamp_channel() argument
428 iio_chan->scan_index = scan_index; in scmi_iio_set_timestamp_channel()
436 enum iio_modifier mod, int scan_index) in scmi_iio_set_data_channel() argument
446 iio_chan->scan_index = scan_index; in scmi_iio_set_data_channel()
/linux/drivers/iio/imu/
H A Dadis16400.c482 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
[all...]
/linux/drivers/iio/pressure/
H A 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,
H A Dcros_ec_baro.c44 int idx = chan->scan_index; in cros_ec_baro_read()
159 channel->scan_index = 0; in cros_ec_baro_probe()
177 channel->scan_index = 1; in cros_ec_baro_probe()
/linux/drivers/iio/common/cros_ec_sensors/
H A Dcros_ec_sensors.c45 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()
285 channel->scan_index = CROS_EC_SENSOR_MAX_AXIS; in cros_ec_sensors_probe()
/linux/drivers/iio/health/
H A Dafe440x.h88 .scan_index = _index, \
105 .scan_index = -1, \

123456789