/kernel/linux/linux-5.10/drivers/iio/pressure/ |
D | cros_ec_baro.c | 159 channel->scan_type.realbits = CROS_EC_SENSOR_BITS; in cros_ec_baro_probe() 160 channel->scan_type.storagebits = CROS_EC_SENSOR_BITS; in cros_ec_baro_probe() 161 channel->scan_type.shift = 0; in cros_ec_baro_probe() 164 channel->scan_type.sign = 'u'; in cros_ec_baro_probe() 181 channel->scan_type.sign = 's'; in cros_ec_baro_probe() 182 channel->scan_type.realbits = 64; in cros_ec_baro_probe() 183 channel->scan_type.storagebits = 64; in cros_ec_baro_probe()
|
D | st_pressure_core.c | 135 .scan_type = { 149 .scan_type = { 169 .scan_type = { 183 .scan_type = { 201 .scan_type = { 216 .scan_type = {
|
/kernel/linux/linux-5.10/drivers/iio/light/ |
D | cros_ec_light_prox.c | 201 channel->scan_type.realbits = CROS_EC_SENSOR_BITS; in cros_ec_light_prox_probe() 202 channel->scan_type.storagebits = CROS_EC_SENSOR_BITS; in cros_ec_light_prox_probe() 203 channel->scan_type.shift = 0; in cros_ec_light_prox_probe() 206 channel->scan_type.sign = 'u'; in cros_ec_light_prox_probe() 234 channel->scan_type.sign = 's'; in cros_ec_light_prox_probe() 235 channel->scan_type.realbits = 64; in cros_ec_light_prox_probe() 236 channel->scan_type.storagebits = 64; in cros_ec_light_prox_probe()
|
/kernel/linux/linux-5.10/drivers/input/joystick/ |
D | adc-joystick.c | 39 bytes = joy->chans[0].channel->scan_type.storagebits >> 3; in adc_joystick_handle() 43 endianness = joy->chans[i].channel->scan_type.endianness; in adc_joystick_handle() 44 msb = joy->chans[i].channel->scan_type.realbits - 1; in adc_joystick_handle() 45 sign = tolower(joy->chans[i].channel->scan_type.sign) == 's'; in adc_joystick_handle() 69 val >>= joy->chans[i].channel->scan_type.shift; in adc_joystick_handle() 197 bits = joy->chans[i].channel->scan_type.storagebits; in adc_joystick_probe() 202 if (bits != joy->chans[0].channel->scan_type.storagebits) { in adc_joystick_probe()
|
/kernel/linux/linux-5.10/drivers/iio/common/st_sensors/ |
D | st_sensors_buffer.c | 34 DIV_ROUND_UP(channel->scan_type.realbits + in st_sensors_get_buffer_element() 35 channel->scan_type.shift, 8); in st_sensors_get_buffer_element() 37 channel->scan_type.storagebits >> 3; in st_sensors_get_buffer_element()
|
/kernel/linux/linux-5.10/drivers/iio/dac/ |
D | ad5380.c | 178 const unsigned int max_val = (1 << chan->scan_type.realbits); in ad5380_write_raw() 189 val << chan->scan_type.shift); in ad5380_write_raw() 191 val += (1 << chan->scan_type.realbits) / 2; in ad5380_write_raw() 197 val << chan->scan_type.shift); in ad5380_write_raw() 217 *val >>= chan->scan_type.shift; in ad5380_read_raw() 224 *val >>= chan->scan_type.shift; in ad5380_read_raw() 225 *val -= (1 << chan->scan_type.realbits) / 2; in ad5380_read_raw() 229 *val2 = chan->scan_type.realbits; in ad5380_read_raw() 264 .scan_type = { \
|
D | ad5360.c | 111 .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()
|
D | ad5764.c | 86 .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()
|
D | mcp4922.c | 42 .scan_type = { \ 73 *val2 = chan->scan_type.realbits; in mcp4922_read_raw() 94 if (val < 0 || val > GENMASK(chan->scan_type.realbits - 1, 0)) in mcp4922_write_raw() 96 val <<= chan->scan_type.shift; in mcp4922_write_raw()
|
D | ad5761.c | 214 *val = aux >> chan->scan_type.shift; in ad5761_read_raw() 220 *val2 = chan->scan_type.realbits; in ad5761_read_raw() 224 *val = -(1 << chan->scan_type.realbits); in ad5761_read_raw() 244 if (val2 || (val << chan->scan_type.shift) > 0xffff || val < 0) in ad5761_write_raw() 247 aux = val << chan->scan_type.shift; in ad5761_write_raw() 263 .scan_type = { \
|
D | ad5446.c | 125 shift = chan->scan_type.realbits + chan->scan_type.shift; in ad5446_write_dac_powerdown() 156 .scan_type = { \ 181 *val = st->cached_val >> chan->scan_type.shift; in ad5446_read_raw() 185 *val2 = chan->scan_type.realbits; in ad5446_read_raw() 202 if (val >= (1 << chan->scan_type.realbits) || val < 0) in ad5446_write_raw() 205 val <<= chan->scan_type.shift; in ad5446_write_raw()
|
D | ad5791.c | 262 *val >>= chan->scan_type.shift; in ad5791_read_raw() 266 *val2 = (1 << chan->scan_type.realbits) - 1; in ad5791_read_raw() 269 val64 = (((u64)st->vref_neg_mv) << chan->scan_type.realbits); in ad5791_read_raw() 301 .scan_type = { \ 327 val &= GENMASK(chan->scan_type.realbits - 1, 0); in ad5791_write_raw() 328 val <<= chan->scan_type.shift; in ad5791_write_raw()
|
D | ltc1660.c | 69 *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 = { \
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
D | ti-adc161s626.c | 40 .scan_type = { 57 .scan_type = { 107 *val = sign_extend32(*val >> data->shift, chan->scan_type.realbits - 1); in ti_adc_read_measurement() 157 *val2 = chan->scan_type.realbits; in ti_adc_read_raw() 161 *val = 1 << (chan->scan_type.realbits - 1); in ti_adc_read_raw()
|
D | cc10001_adc.c | 239 *val2 = chan->scan_type.realbits; in cc10001_adc_read_raw() 287 chan->scan_type.sign = 'u'; in cc10001_adc_channel_init() 288 chan->scan_type.realbits = 10; in cc10001_adc_channel_init() 289 chan->scan_type.storagebits = 16; in cc10001_adc_channel_init() 299 timestamp->scan_type.sign = 's'; in cc10001_adc_channel_init() 300 timestamp->scan_type.realbits = 64; in cc10001_adc_channel_init() 301 timestamp->scan_type.storagebits = 64; in cc10001_adc_channel_init()
|
D | ti-tlc4541.c | 62 .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()
|
D | ad7476.c | 143 *val = (ret >> st->chip_info->channel[0].scan_type.shift) & in ad7476_read_raw() 144 GENMASK(st->chip_info->channel[0].scan_type.realbits - 1, 0); in ad7476_read_raw() 155 *val2 = chan->scan_type.realbits; in ad7476_read_raw() 167 .scan_type = { \ 314 st->xfer.len = st->chip_info->channel[0].scan_type.storagebits / 8; in ad7476_probe()
|
D | ti-ads1015.c | 146 .scan_type = { \ 169 .scan_type = { \ 190 .scan_type = { \ 212 .scan_type = { \ 434 (chan->scan_type.realbits - 1), 1000000); in ads1015_set_scale() 470 int shift = chan->scan_type.shift; in ads1015_read_raw() 506 *val2 = chan->scan_type.realbits - 1; in ads1015_read_raw() 593 int realbits = chan->scan_type.realbits; in ads1015_write_event() 677 low_thresh = max(-1 << (chan->scan_type.realbits - 1), in ads1015_enable_event_config() 681 low_thresh << chan->scan_type.shift); in ads1015_enable_event_config() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wlcore/ |
D | scan.c | 134 int scan_type) in wlcore_scan_get_channels() argument 143 if (scan_type == SCAN_TYPE_SEARCH) { in wlcore_scan_get_channels() 251 int scan_type) in wlcore_set_scan_chan_params() argument 265 scan_type); in wlcore_set_scan_chan_params() 277 scan_type); in wlcore_set_scan_chan_params() 288 scan_type); in wlcore_set_scan_chan_params() 300 scan_type); in wlcore_set_scan_chan_params() 312 scan_type); in wlcore_set_scan_chan_params()
|
/kernel/linux/linux-5.10/drivers/iio/temperature/ |
D | maxim_thermocouple.c | 48 .scan_type = { 67 .scan_type = { 83 .scan_type = { 134 unsigned int shift = chan->scan_type.shift + (chan->address * 8); in maxim_thermocouple_read() 159 *val = sign_extend32(*val >> shift, chan->scan_type.realbits - 1); in maxim_thermocouple_read()
|
/kernel/linux/linux-5.10/drivers/iio/common/cros_ec_sensors/ |
D | cros_ec_lid_angle.c | 36 .scan_type.realbits = CROS_EC_SENSOR_BITS, 37 .scan_type.storagebits = CROS_EC_SENSOR_BITS, 38 .scan_type.sign = 'u',
|
D | cros_ec_sensors.c | 258 channel->scan_type.realbits = CROS_EC_SENSOR_BITS; in cros_ec_sensors_probe() 259 channel->scan_type.storagebits = CROS_EC_SENSOR_BITS; in cros_ec_sensors_probe() 264 channel->scan_type.sign = 's'; in cros_ec_sensors_probe() 287 channel->scan_type.sign = 's'; in cros_ec_sensors_probe() 288 channel->scan_type.realbits = 64; in cros_ec_sensors_probe() 289 channel->scan_type.storagebits = 64; in cros_ec_sensors_probe()
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | scan.c | 90 priv->scan_type = IWL_SCAN_NORMAL; in iwl_complete_scan() 117 if (priv->scan_type != IWL_SCAN_NORMAL && !aborted) { in iwl_process_scan_complete() 639 if (WARN_ON(priv->scan_type == IWL_SCAN_NORMAL && in iwlagn_request_scan() 670 switch (priv->scan_type) { in iwlagn_request_scan() 692 switch (priv->scan_type) { in iwlagn_request_scan() 841 switch (priv->scan_type) { in iwlagn_request_scan() 867 switch (priv->scan_type) { in iwlagn_request_scan() 921 enum iwl_scan_type scan_type, in iwl_scan_initiate() argument 947 scan_type == IWL_SCAN_NORMAL ? "" : in iwl_scan_initiate() 951 priv->scan_type = scan_type; in iwl_scan_initiate() [all …]
|
/kernel/linux/linux-5.10/drivers/iio/common/ssp_sensors/ |
D | ssp_iio_sensor.h | 12 .scan_type = {\ 26 .scan_type = { \
|
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wl18xx/ |
D | scan.c | 51 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()
|