Home
last modified time | relevance | path

Searched refs:scan_type (Results 1 – 25 of 210) sorted by relevance

123456789

/linux/drivers/iio/pressure/
H A Dcros_ec_baro.c156 channel->scan_type.realbits = CROS_EC_SENSOR_BITS; in cros_ec_baro_probe()
157 channel->scan_type.storagebits = CROS_EC_SENSOR_BITS; in cros_ec_baro_probe()
158 channel->scan_type.shift = 0; in cros_ec_baro_probe()
161 channel->scan_type.sign = 'u'; in cros_ec_baro_probe()
178 channel->scan_type.sign = 's'; in cros_ec_baro_probe()
179 channel->scan_type.realbits = 64; in cros_ec_baro_probe()
180 channel->scan_type.storagebits = 64; in cros_ec_baro_probe()
H A Dmpl3115.c100 *val = be32_to_cpu(tmp) >> chan->scan_type.shift; in mpl3115_read_raw()
118 *val = sign_extend32(be16_to_cpu(tmp) >> chan->scan_type.shift, in mpl3115_read_raw()
119 chan->scan_type.realbits - 1); in mpl3115_read_raw()
205 .scan_type = {
218 .scan_type = {
H A Dst_pressure_core.c129 .scan_type = {
143 .scan_type = {
163 .scan_type = {
177 .scan_type = {
195 .scan_type = {
210 .scan_type = {
/linux/drivers/iio/light/
H A Dcros_ec_light_prox.c198 channel->scan_type.realbits = CROS_EC_SENSOR_BITS; in cros_ec_light_prox_probe()
199 channel->scan_type.storagebits = CROS_EC_SENSOR_BITS; in cros_ec_light_prox_probe()
200 channel->scan_type.shift = 0; in cros_ec_light_prox_probe()
203 channel->scan_type.sign = 'u'; in cros_ec_light_prox_probe()
231 channel->scan_type.sign = 's'; in cros_ec_light_prox_probe()
232 channel->scan_type.realbits = 64; in cros_ec_light_prox_probe()
233 channel->scan_type.storagebits = 64; in cros_ec_light_prox_probe()
/linux/drivers/input/joystick/
H A Dadc-joystick.c62 bytes = joy->chans[0].channel->scan_type.storagebits >> 3; in adc_joystick_handle()
66 endianness = joy->chans[i].channel->scan_type.endianness; in adc_joystick_handle()
67 msb = joy->chans[i].channel->scan_type.realbits - 1; in adc_joystick_handle()
68 sign = tolower(joy->chans[i].channel->scan_type.sign) == 's'; in adc_joystick_handle()
92 val >>= joy->chans[i].channel->scan_type.shift; in adc_joystick_handle()
212 bits = chans[i].channel->scan_type.storagebits; in adc_joystick_count_channels()
217 if (bits != chans[0].channel->scan_type.storagebits) { in adc_joystick_count_channels()
/linux/drivers/iio/dac/
H A Dad5360.c111 .scan_type = { \
320 int max_val = (1 << chan->scan_type.realbits); in ad5360_write_raw()
329 chan->address, val, chan->scan_type.shift); in ad5360_write_raw()
336 chan->address, val, chan->scan_type.shift); in ad5360_write_raw()
343 chan->address, val, chan->scan_type.shift); in ad5360_write_raw()
354 val >>= (chan->scan_type.realbits - 14); in ad5360_write_raw()
386 *val = ret >> chan->scan_type.shift; in ad5360_read_raw()
395 *val2 = chan->scan_type.realbits; in ad5360_read_raw()
418 ret <<= (chan->scan_type.realbits - 14); in ad5360_read_raw()
H A Dmcp4922.c43 .scan_type = { \
74 *val2 = chan->scan_type.realbits; in mcp4922_read_raw()
95 if (val < 0 || val > GENMASK(chan->scan_type.realbits - 1, 0)) in mcp4922_write_raw()
97 val <<= chan->scan_type.shift; in mcp4922_write_raw()
H A Dad5764.c86 .scan_type = { \
187 const int max_val = (1 << chan->scan_type.realbits); in ad5764_write_raw()
194 val <<= chan->scan_type.shift; in ad5764_write_raw()
235 *val >>= chan->scan_type.shift; in ad5764_read_raw()
258 *val2 = chan->scan_type.realbits; in ad5764_read_raw()
261 *val = -(1 << chan->scan_type.realbits) / 2; in ad5764_read_raw()
H A Dmcp4821.c60 .scan_type = { \
127 *val2 = chan->scan_type.realbits; in mcp4821_read_raw()
146 if (val < 0 || val >= BIT(chan->scan_type.realbits)) in mcp4821_write_raw()
152 write_val = MCP4821_ACTIVE_MODE | val << chan->scan_type.shift; in mcp4821_write_raw()
H A Dltc1660.c69 *val2 = chan->scan_type.realbits; in ltc1660_read_raw()
90 if (val < 0 || val > GENMASK(chan->scan_type.realbits - 1, 0)) in ltc1660_write_raw()
94 (val << chan->scan_type.shift)); in ltc1660_write_raw()
111 .scan_type = { \
H A Dad5449.c158 *val2 = chan->scan_type.realbits; in ad5449_read_raw()
176 if (val < 0 || val >= (1 << chan->scan_type.realbits)) in ad5449_write_raw()
181 val << chan->scan_type.shift); in ad5449_write_raw()
205 .scan_type = { \
/linux/drivers/iio/
H A Dindustrialio-buffer.c405 const struct iio_scan_type *scan_type; in iio_show_fixed_type() local
408 scan_type = iio_get_current_scan_type(indio_dev, this_attr->c); in iio_show_fixed_type()
409 if (IS_ERR(scan_type)) in iio_show_fixed_type()
410 return PTR_ERR(scan_type); in iio_show_fixed_type()
412 type = scan_type->endianness; in iio_show_fixed_type()
421 if (scan_type->repeat > 1) in iio_show_fixed_type()
424 scan_type->sign, in iio_show_fixed_type()
425 scan_type->realbits, in iio_show_fixed_type()
426 scan_type->storagebits, in iio_show_fixed_type()
427 scan_type->repeat, in iio_show_fixed_type()
[all …]
/linux/drivers/iio/adc/
H A Dcc10001_adc.c236 *val2 = chan->scan_type.realbits; in cc10001_adc_read_raw()
284 chan->scan_type.sign = 'u'; in cc10001_adc_channel_init()
285 chan->scan_type.realbits = 10; in cc10001_adc_channel_init()
286 chan->scan_type.storagebits = 16; in cc10001_adc_channel_init()
296 timestamp->scan_type.sign = 's'; in cc10001_adc_channel_init()
297 timestamp->scan_type.realbits = 64; in cc10001_adc_channel_init()
298 timestamp->scan_type.storagebits = 64; in cc10001_adc_channel_init()
H A Dti-adc161s626.c40 .scan_type = {
57 .scan_type = {
107 *val = sign_extend32(*val >> data->shift, chan->scan_type.realbits - 1); in ti_adc_read_measurement()
153 *val2 = chan->scan_type.realbits; in ti_adc_read_raw()
157 *val = 1 << (chan->scan_type.realbits - 1); in ti_adc_read_raw()
H A Dad_sigma_delta.c313 DIV_ROUND_UP(chan->scan_type.realbits + chan->scan_type.shift, 8), in ad_sigma_delta_single_conversion()
332 sample = raw_sample >> chan->scan_type.shift; in ad_sigma_delta_single_conversion()
333 sample &= (1 << chan->scan_type.realbits) - 1; in ad_sigma_delta_single_conversion()
382 samples_buf_size = ALIGN(slot * indio_dev->channels[0].scan_type.storagebits, 8); in ad_sd_buffer_postenable()
446 reg_size = indio_dev->channels[0].scan_type.realbits + in ad_sd_trigger_handler()
447 indio_dev->channels[0].scan_type.shift; in ad_sd_trigger_handler()
506 sample_size = indio_dev->channels[0].scan_type.storagebits / 8; in ad_sd_trigger_handler()
H A Dti-tlc4541.c62 .scan_type = { \
142 *val = *val >> chan->scan_type.shift; in tlc4541_read_raw()
143 *val &= GENMASK(chan->scan_type.realbits - 1, 0); in tlc4541_read_raw()
150 *val2 = chan->scan_type.realbits; in tlc4541_read_raw()
H A Dad7476.c149 *val = (ret >> st->chip_info->channel[0].scan_type.shift) & in ad7476_read_raw()
150 GENMASK(st->chip_info->channel[0].scan_type.realbits - 1, 0); in ad7476_read_raw()
161 *val2 = chan->scan_type.realbits; in ad7476_read_raw()
173 .scan_type = { \
395 st->xfer.len = st->chip_info->channel[0].scan_type.storagebits / 8; in ad7476_probe()
/linux/drivers/iio/common/st_sensors/
H A Dst_sensors_buffer.c31 DIV_ROUND_UP(channel->scan_type.realbits + in st_sensors_get_buffer_element()
32 channel->scan_type.shift, 8); in st_sensors_get_buffer_element()
34 channel->scan_type.storagebits >> 3; in st_sensors_get_buffer_element()
/linux/drivers/net/wireless/ti/wlcore/
H A Dscan.c132 int scan_type) in wlcore_scan_get_channels() argument
141 if (scan_type == SCAN_TYPE_SEARCH) { in wlcore_scan_get_channels()
249 int scan_type) in wlcore_set_scan_chan_params() argument
263 scan_type); in wlcore_set_scan_chan_params()
275 scan_type); in wlcore_set_scan_chan_params()
286 scan_type); in wlcore_set_scan_chan_params()
298 scan_type); in wlcore_set_scan_chan_params()
310 scan_type); in wlcore_set_scan_chan_params()
/linux/drivers/iio/temperature/
H A Dmaxim_thermocouple.c47 .scan_type = {
66 .scan_type = {
82 .scan_type = {
133 unsigned int shift = chan->scan_type.shift + (chan->address * 8); in maxim_thermocouple_read()
158 *val = sign_extend32(*val >> shift, chan->scan_type.realbits - 1); in maxim_thermocouple_read()
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dscan.c86 priv->scan_type = IWL_SCAN_NORMAL; in iwl_complete_scan()
113 if (priv->scan_type != IWL_SCAN_NORMAL && !aborted) { in iwl_process_scan_complete()
635 if (WARN_ON(priv->scan_type == IWL_SCAN_NORMAL && in iwlagn_request_scan()
672 switch (priv->scan_type) { in iwlagn_request_scan()
694 switch (priv->scan_type) { in iwlagn_request_scan()
843 switch (priv->scan_type) { in iwlagn_request_scan()
869 switch (priv->scan_type) { in iwlagn_request_scan()
923 enum iwl_scan_type scan_type, in iwl_scan_initiate() argument
949 scan_type == IWL_SCAN_NORMAL ? "" : in iwl_scan_initiate()
953 priv->scan_type = scan_type; in iwl_scan_initiate()
[all …]
/linux/drivers/iio/common/cros_ec_sensors/
H A Dcros_ec_sensors.c257 channel->scan_type.realbits = CROS_EC_SENSOR_BITS; in cros_ec_sensors_probe()
258 channel->scan_type.storagebits = CROS_EC_SENSOR_BITS; in cros_ec_sensors_probe()
263 channel->scan_type.sign = 's'; in cros_ec_sensors_probe()
286 channel->scan_type.sign = 's'; in cros_ec_sensors_probe()
287 channel->scan_type.realbits = 64; in cros_ec_sensors_probe()
288 channel->scan_type.storagebits = 64; in cros_ec_sensors_probe()
H A Dcros_ec_lid_angle.c37 .scan_type.realbits = CROS_EC_SENSOR_BITS,
38 .scan_type.storagebits = CROS_EC_SENSOR_BITS,
39 .scan_type.sign = 'u',
/linux/drivers/net/wireless/ti/wl18xx/
H A Dscan.c51 cmd->scan_type = SCAN_TYPE_SEARCH; in wl18xx_scan_send()
185 cmd->scan_type = SCAN_TYPE_PERIODIC; in wl18xx_scan_sched_scan_config()
297 u8 scan_type) in __wl18xx_scan_stop() argument
311 stop->scan_type = scan_type; in __wl18xx_scan_stop()
/linux/drivers/iio/common/ssp_sensors/
H A Dssp_iio_sensor.h12 .scan_type = {\
26 .scan_type = { \

123456789