Home
last modified time | relevance | path

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

123456

/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,
136 switch (chan->scan_index) { in als_read_raw()
139 report_id = als_state->als[chan->scan_index].report_id; in als_read_raw()
140 min = als_state->als[chan->scan_index].logical_minimum; in als_read_raw()
144 report_id = als_state->als[chan->scan_index].report_id; in als_read_raw()
145 min = als_state->als[chan->scan_index].logical_minimum; in als_read_raw()
[all …]
H A Dhid-sensor-prox.c87 if (chan->scan_index >= prox_state->num_channels) in prox_read_raw()
89 address = prox_state->channel2usage[chan->scan_index]; in prox_read_raw()
90 report_id = prox_state->prox_attr[chan->scan_index].report_id; in prox_read_raw()
92 min = prox_state->prox_attr[chan->scan_index].logical_minimum; in prox_read_raw()
100 if (prox_state->channel2usage[chan->scan_index] == in prox_read_raw()
107 if (chan->scan_index >= prox_state->num_channels) in prox_read_raw()
110 *val = prox_state->scale_pre_decml[chan->scan_index]; in prox_read_raw()
111 *val2 = prox_state->scale_post_decml[chan->scan_index]; in prox_read_raw()
112 ret_type = prox_state->scale_precision[chan->scan_index]; in prox_read_raw()
237 channels[index].scan_index = index; in prox_parse_report()
H A 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()
200 channel->scan_index = 0; in cros_ec_light_prox_probe()
/linux/drivers/iio/adc/
H A Dxilinx-ams.c233 .scan_index = _scan_index, \
245 .scan_index = _scan_index, \
448 if (chan->scan_index < AMS_CTRL_SEQ_BASE) in ams_enable_channel_sequence()
449 scan_mask |= BIT_ULL(chan->scan_index); in ams_enable_channel_sequence()
725 if (chan->scan_index >= AMS_CTRL_SEQ_BASE) { in ams_read_raw()
730 } else if (chan->scan_index >= AMS_PS_SEQ_MAX) in ams_read_raw()
740 if (chan->scan_index < AMS_PS_SEQ_MAX) in ams_read_raw()
742 else if (chan->scan_index >= AMS_PS_SEQ_MAX && in ams_read_raw()
743 chan->scan_index < AMS_CTRL_SEQ_BASE) in ams_read_raw()
767 enum ams_ps_pl_seq scan_index; member
[all …]
H A Dingenic-adc.c390 .scan_index = -1,
401 .scan_index = -1,
413 .scan_index = -1,
422 .scan_index = -1,
431 .scan_index = -1,
442 .scan_index = -1,
451 .scan_index = 0,
462 .scan_index = 1,
473 .scan_index = 2,
484 .scan_index = 3,
[all …]
H A Dpac1934.c331 .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 Dti-adc0832.c49 .scan_index = chan, \
66 .scan_index = si, \
208 int scan_index; in adc0832_trigger_handler() local
213 iio_for_each_active_channel(indio_dev, scan_index) { in adc0832_trigger_handler()
215 &indio_dev->channels[scan_index]; in adc0832_trigger_handler()
H A Dti-adc084s021.c46 .scan_index = (num), \
164 int scan_index; in adc084s021_buffer_preenable() local
167 iio_for_each_active_channel(indio_dev, scan_index) { in adc084s021_buffer_preenable()
169 &indio_dev->channels[scan_index]; in adc084s021_buffer_preenable()
H A Dmax1118.c54 .scan_index = ch, \
171 int scan_index; in max1118_trigger_handler() local
176 iio_for_each_active_channel(indio_dev, scan_index) { in max1118_trigger_handler()
178 &indio_dev->channels[scan_index]; in max1118_trigger_handler()
H A Dti-ads1018.c105 .scan_index = _index, \
125 .scan_index = _index, \
143 .scan_index = _index, \
252 u8 pga_mode = ads1018->chan_data[chan->scan_index].pga_mode; in ads1018_single_shot()
272 cfg |= FIELD_PREP(ADS1018_CFG_MUX_MASK, chan->scan_index); in ads1018_single_shot()
297 u8 addr = chan->scan_index; in ads1018_read_raw_direct_mode()
397 ads1018->chan_data[chan->scan_index].pga_mode = i; in ads1018_write_raw_direct_mode()
408 ads1018->chan_data[chan->scan_index].data_rate_mode = i; in ads1018_write_raw_direct_mode()
H A Dti-ads124s08.c117 .scan_index = index, \
278 int scan_index, j = 0; in ads124s_trigger_handler() local
281 iio_for_each_active_channel(indio_dev, scan_index) { in ads124s_trigger_handler()
283 scan_index); in ads124s_trigger_handler()
H A Drtq6056.c127 .scan_index = 0,
146 .scan_index = 1,
164 .scan_index = 2,
181 .scan_index = 3,
210 .scan_index = 0,
228 .scan_index = 1,
246 .scan_index = 2,
263 .scan_index = 3,
H A Dsophgo-cv1800b-adc.c54 .scan_index = index, \
107 cv1800b_adc_start_measurement(saradc, chan->scan_index); in cv1800b_adc_read_raw()
112 sample = readl(saradc->regs + CV1800B_ADC_CH_RESULT_REG(chan->scan_index)); in cv1800b_adc_read_raw()
H A Dstm32-adc.c2084 u32 vinn, int scan_index, bool differential) in stm32_adc_chan_init_one() argument
2099 chan->scan_index = scan_index; in stm32_adc_chan_init_one()
2179 int scan_index = 0, ret, i, c; in stm32_adc_legacy_chan_init() local
2198 stm32_adc_chan_init_one(indio_dev, &channels[scan_index], in stm32_adc_legacy_chan_init()
2200 scan_index, true); in stm32_adc_legacy_chan_init()
2201 scan_index++; in stm32_adc_legacy_chan_init()
2226 stm32_adc_chan_init_one(indio_dev, &channels[scan_index], in stm32_adc_legacy_chan_init()
2227 chans[c], 0, scan_index, false); in stm32_adc_legacy_chan_init()
2228 scan_index++; in stm32_adc_legacy_chan_init()
2239 for (i = 0; i < scan_index; i++) { in stm32_adc_legacy_chan_init()
[all …]
H A Dad4695.c1053 cfg = &st->channels_cfg[chan->scan_index]; in ad4695_read_raw()
1109 AD4695_REG_GAIN_IN(chan->scan_index), in ad4695_read_raw()
1127 AD4695_REG_OFFSET_IN(chan->scan_index), in ad4695_read_raw()
1220 st->channels_cfg[chan->scan_index].oversampling_ratio = val; in ad4695_set_osr_val()
1222 AD4695_REG_CONFIG_IN(chan->scan_index), in ad4695_set_osr_val()
1274 osr = st->channels_cfg[chan->scan_index].oversampling_ratio; in __ad4695_write_raw()
1290 AD4695_REG_GAIN_IN(chan->scan_index), in __ad4695_write_raw()
1300 AD4695_REG_OFFSET_IN(chan->scan_index), in __ad4695_write_raw()
1388 osr = st->channels_cfg[chan->scan_index].oversampling_ratio; in ad4695_read_avail()
1473 unsigned int osr = st->channels_cfg[chan->scan_index].oversampling_ratio; in ad4695_get_current_scan_type()
[all …]
/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,
140 report_id = accel_state->accel[chan->scan_index].report_id; in accel_3d_read_raw()
141 min = accel_state->accel[chan->scan_index].logical_minimum; in accel_3d_read_raw()
142 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/position/
H A Dhid-sensor-custom-intel-hinge.c65 .scan_index = CHANNEL_SCAN_INDEX_HINGE_ANGLE,
78 .scan_index = CHANNEL_SCAN_INDEX_SCREEN_ANGLE,
91 .scan_index = CHANNEL_SCAN_INDEX_KEYBOARD_ANGLE,
121 report_id = st->hinge[chan->scan_index].report_id; in hinge_read_raw()
122 min = st->hinge[chan->scan_index].logical_minimum; in hinge_read_raw()
130 hinge_addresses[chan->scan_index], in hinge_read_raw()
/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,
101 report_id = gyro_state->gyro[chan->scan_index].report_id; in gyro_3d_read_raw()
102 min = gyro_state->gyro[chan->scan_index].logical_minimum; in gyro_3d_read_raw()
103 address = gyro_3d_addresses[chan->scan_index]; in gyro_3d_read_raw()
/linux/drivers/iio/chemical/
H A Datlas-sensor.c116 .scan_index = 0,
131 .scan_index = -1
143 .scan_index = _idx + 1, \
158 .scan_index = 0,
175 .scan_index = -1
185 .scan_index = 0,
202 .scan_index = 0,
217 .scan_index = -1
226 .scan_index = 0,
/linux/drivers/iio/orientation/
H A Dhid-sensor-incl-3d.c62 .scan_index = CHANNEL_SCAN_INDEX_X,
72 .scan_index = CHANNEL_SCAN_INDEX_Y,
82 .scan_index = CHANNEL_SCAN_INDEX_Z,
113 report_id = incl_state->incl[chan->scan_index].report_id; in incl_3d_read_raw()
114 min = incl_state->incl[chan->scan_index].logical_minimum; in incl_3d_read_raw()
115 address = incl_3d_addresses[chan->scan_index]; in incl_3d_read_raw()
/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,
/linux/drivers/iio/health/
H A Dafe440x.h88 .scan_index = _index, \
105 .scan_index = -1, \
/linux/drivers/iio/temperature/
H A Dmaxim_thermocouple.c45 .scan_index = 0,
64 .scan_index = 0,
80 .scan_index = 1,
/linux/drivers/iio/common/cros_ec_sensors/
H A 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()

123456