Home
last modified time | relevance | path

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

12345678910

/drivers/iio/adc/
A Dxilinx-ams.c233 .scan_index = _scan_index, \
245 .scan_index = _scan_index, \
749 scan_index -= AMS_PS_SEQ_MAX; in ams_get_alarm_offset()
760 switch (scan_index) { in ams_get_alarm_offset()
795 int scan_index = 0, i; in ams_event_to_channel() local
799 scan_index = AMS_PS_SEQ_MAX; in ams_event_to_channel()
804 scan_index += AMS_SEQ_TEMP; in ams_event_to_channel()
837 scan_index += AMS_SEQ_VCCAMS; in ams_event_to_channel()
847 if (dev->channels[i].scan_index == scan_index) in ams_event_to_channel()
859 scan_index -= AMS_PS_SEQ_MAX; in ams_get_alarm_mask()
[all …]
A Dingenic-adc.c396 .scan_index = -1,
407 .scan_index = -1,
419 .scan_index = -1,
428 .scan_index = -1,
437 .scan_index = -1,
457 .scan_index = 0,
468 .scan_index = 1,
479 .scan_index = 2,
490 .scan_index = 3,
501 .scan_index = 4,
[all …]
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), \
980 chan->scan_index + 1); in pac1934_read_label()
987 chan->scan_index + 1); in pac1934_read_label()
994 chan->scan_index + 1); in pac1934_read_label()
1001 chan->scan_index + 1); in pac1934_read_label()
[all …]
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()
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()
436 struct ad7606_chan_info *ci = &st->chan_info[chan->scan_index]; in ad7606c_16bit_chan_scale_setup()
495 struct ad7606_chan_info *ci = &st->chan_info[chan->scan_index]; in ad7607_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()
791 ret = ad7606_get_calib_offset(st, chan->scan_index, val); in ad7606_read_raw()
928 ch = chan->scan_index; in ad7606_write_raw()
968 ret = ad7606_set_calib_offset(st, chan->scan_index, val); in ad7606_write_raw()
1147 ch = chan->scan_index; in ad7606_read_avail()
[all …]
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()
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()
A Dstm32-adc.c2106 chan->scan_index = scan_index; in stm32_adc_chan_init_one()
2207 scan_index, true); in stm32_adc_legacy_chan_init()
2208 scan_index++; in stm32_adc_legacy_chan_init()
2235 scan_index++; in stm32_adc_legacy_chan_init()
2261 return scan_index; in stm32_adc_legacy_chan_init()
2335 int val, scan_index = 0, ret; in stm32_adc_generic_chan_init() local
2395 scan_index++; in stm32_adc_generic_chan_init()
2398 return scan_index; in stm32_adc_generic_chan_init()
2449 scan_index = ret; in stm32_adc_chan_fw_init()
2456 timestamp->scan_index = scan_index; in stm32_adc_chan_fw_init()
[all …]
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,
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()
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()
/drivers/iio/light/
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].logical_minimum; in als_read_raw()
[all …]
A Dhid-sensor-prox.c99 if (chan->scan_index >= prox_state->num_channels) in prox_read_raw()
101 address = prox_state->channel2usage[chan->scan_index]; in prox_read_raw()
102 report_id = prox_state->prox_attr[chan->scan_index].report_id; in prox_read_raw()
104 min = prox_state->prox_attr[chan->scan_index].logical_minimum; in prox_read_raw()
112 if (prox_state->channel2usage[chan->scan_index] == in prox_read_raw()
119 if (chan->scan_index >= prox_state->num_channels) in prox_read_raw()
122 *val = prox_state->scale_pre_decml[chan->scan_index]; in prox_read_raw()
123 *val2 = prox_state->scale_post_decml[chan->scan_index]; in prox_read_raw()
124 ret_type = prox_state->scale_precision[chan->scan_index]; in prox_read_raw()
252 channels[index].scan_index = index; in prox_parse_report()
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()
/drivers/iio/accel/
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()
/drivers/iio/dummy/
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 */
/drivers/iio/gyro/
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()
/drivers/iio/position/
A 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/
A Datlas-sensor.c119 .scan_index = 0,
134 .scan_index = -1
146 .scan_index = _idx + 1, \
161 .scan_index = 0,
178 .scan_index = -1
188 .scan_index = 0,
205 .scan_index = 0,
220 .scan_index = -1
229 .scan_index = 0,
/drivers/iio/orientation/
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()
/drivers/iio/imu/
A Dadis16400.c482 adis16400_addresses[chan->scan_index], in adis16400_write_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,
1127 if (ch->scan_index >= 0 && in adis16400_setup_chan_mask()
[all …]
/drivers/iio/common/scmi_sensors/
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()
/drivers/iio/pressure/
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,
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()
/drivers/iio/common/ssp_sensors/
A Dssp_iio_sensor.h11 .scan_index = _index,\
25 .scan_index = _si, \

Completed in 1676 milliseconds

12345678910