/drivers/iio/ |
D | industrialio-buffer.c | 223 u8 type = this_attr->c->scan_type.endianness; in iio_show_fixed_type() 232 if (this_attr->c->scan_type.repeat > 1) in iio_show_fixed_type() 235 this_attr->c->scan_type.sign, in iio_show_fixed_type() 236 this_attr->c->scan_type.realbits, in iio_show_fixed_type() 237 this_attr->c->scan_type.storagebits, in iio_show_fixed_type() 238 this_attr->c->scan_type.repeat, in iio_show_fixed_type() 239 this_attr->c->scan_type.shift); in iio_show_fixed_type() 243 this_attr->c->scan_type.sign, in iio_show_fixed_type() 244 this_attr->c->scan_type.realbits, in iio_show_fixed_type() 245 this_attr->c->scan_type.storagebits, in iio_show_fixed_type() [all …]
|
/drivers/staging/iio/meter/ |
D | ade7758_core.c | 640 .scan_type = { 651 .scan_type = { 663 .scan_type = { 675 .scan_type = { 687 .scan_type = { 698 .scan_type = { 709 .scan_type = { 721 .scan_type = { 733 .scan_type = { 745 .scan_type = { [all …]
|
/drivers/iio/dac/ |
D | ad5360.c | 110 .scan_type = { \ 318 int max_val = (1 << chan->scan_type.realbits); in ad5360_write_raw() 327 chan->address, val, chan->scan_type.shift); in ad5360_write_raw() 334 chan->address, val, chan->scan_type.shift); in ad5360_write_raw() 341 chan->address, val, chan->scan_type.shift); in ad5360_write_raw() 352 val >>= (chan->scan_type.realbits - 14); in ad5360_write_raw() 384 *val = ret >> chan->scan_type.shift; in ad5360_read_raw() 393 *val2 = chan->scan_type.realbits; in ad5360_read_raw() 416 ret <<= (chan->scan_type.realbits - 14); in ad5360_read_raw()
|
D | ad5380.c | 177 const unsigned int max_val = (1 << chan->scan_type.realbits); in ad5380_write_raw() 188 val << chan->scan_type.shift); in ad5380_write_raw() 190 val += (1 << chan->scan_type.realbits) / 2; in ad5380_write_raw() 196 val << chan->scan_type.shift); in ad5380_write_raw() 216 *val >>= chan->scan_type.shift; in ad5380_read_raw() 223 *val >>= chan->scan_type.shift; in ad5380_read_raw() 224 *val -= (1 << chan->scan_type.realbits) / 2; in ad5380_read_raw() 228 *val2 = chan->scan_type.realbits; in ad5380_read_raw() 264 .scan_type = { \
|
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 | 52 .scan_type = { \ 83 *val2 = chan->scan_type.realbits; in mcp4922_read_raw() 104 if (val < 0 || val > GENMASK(chan->scan_type.realbits - 1, 0)) in mcp4922_write_raw() 106 val <<= chan->scan_type.shift; in mcp4922_write_raw()
|
D | ad5791.c | 265 *val >>= chan->scan_type.shift; in ad5791_read_raw() 269 *val2 = (1 << chan->scan_type.realbits) - 1; in ad5791_read_raw() 272 val64 = (((u64)st->vref_neg_mv) << chan->scan_type.realbits); in ad5791_read_raw() 304 .scan_type = { \ 330 val &= GENMASK(chan->scan_type.realbits - 1, 0); in ad5791_write_raw() 331 val <<= chan->scan_type.shift; in ad5791_write_raw()
|
D | ad5446.c | 118 shift = chan->scan_type.realbits + chan->scan_type.shift; in ad5446_write_dac_powerdown() 149 .scan_type = { \ 178 *val2 = chan->scan_type.realbits; in ad5446_read_raw() 195 if (val >= (1 << chan->scan_type.realbits) || val < 0) in ad5446_write_raw() 198 val <<= chan->scan_type.shift; in ad5446_write_raw()
|
D | ad5624r_spi.c | 57 *val2 = chan->scan_type.realbits; in ad5624r_read_raw() 73 if (val >= (1 << chan->scan_type.realbits) || val < 0) in ad5624r_write_raw() 79 chan->scan_type.shift); in ad5624r_write_raw() 176 .scan_type = { \
|
D | ad5449.c | 159 *val2 = chan->scan_type.realbits; in ad5449_read_raw() 177 if (val < 0 || val >= (1 << chan->scan_type.realbits)) in ad5449_write_raw() 182 val << chan->scan_type.shift); in ad5449_write_raw() 207 .scan_type = { \
|
D | ad5686.c | 217 *val2 = chan->scan_type.realbits; in ad5686_read_raw() 234 if (val > (1 << chan->scan_type.realbits) || val < 0) in ad5686_write_raw() 242 chan->scan_type.shift); in ad5686_write_raw() 278 .scan_type = { \
|
/drivers/iio/adc/ |
D | cc10001_adc.c | 243 *val2 = chan->scan_type.realbits; in cc10001_adc_read_raw() 292 chan->scan_type.sign = 'u'; in cc10001_adc_channel_init() 293 chan->scan_type.realbits = 10; in cc10001_adc_channel_init() 294 chan->scan_type.storagebits = 16; in cc10001_adc_channel_init() 304 timestamp->scan_type.sign = 's'; in cc10001_adc_channel_init() 305 timestamp->scan_type.realbits = 64; in cc10001_adc_channel_init() 306 timestamp->scan_type.storagebits = 64; in cc10001_adc_channel_init()
|
D | ad7476.c | 118 *val = (ret >> st->chip_info->channel[0].scan_type.shift) & in ad7476_read_raw() 119 GENMASK(st->chip_info->channel[0].scan_type.realbits - 1, 0); in ad7476_read_raw() 130 *val2 = chan->scan_type.realbits; in ad7476_read_raw() 142 .scan_type = { \ 239 st->xfer.len = st->chip_info->channel[0].scan_type.storagebits / 8; in ad7476_probe()
|
D | ad7887.c | 168 *val = ret >> chan->scan_type.shift; in ad7887_read_raw() 169 *val &= GENMASK(chan->scan_type.realbits - 1, 0); in ad7887_read_raw() 181 *val2 = chan->scan_type.realbits; in ad7887_read_raw() 202 .scan_type = { 218 .scan_type = {
|
D | ad799x.c | 294 *val = (ret >> chan->scan_type.shift) & in ad799x_read_raw() 295 GENMASK(chan->scan_type.realbits - 1, 0); in ad799x_read_raw() 302 *val2 = chan->scan_type.realbits; in ad799x_read_raw() 451 if (val < 0 || val > GENMASK(chan->scan_type.realbits - 1, 0)) in ad799x_write_event_value() 457 val << chan->scan_type.shift); in ad799x_write_event_value() 479 *val = (ret >> chan->scan_type.shift) & in ad799x_read_event_value() 480 GENMASK(chan->scan_type.realbits - 1 , 0); in ad799x_read_event_value() 581 .scan_type = { \
|
D | ad_sigma_delta.c | 309 DIV_ROUND_UP(chan->scan_type.realbits + chan->scan_type.shift, 8), in ad_sigma_delta_single_conversion() 327 sample = raw_sample >> chan->scan_type.shift; in ad_sigma_delta_single_conversion() 328 sample &= (1 << chan->scan_type.realbits) - 1; in ad_sigma_delta_single_conversion() 406 reg_size = indio_dev->channels[0].scan_type.realbits + in ad_sd_trigger_handler() 407 indio_dev->channels[0].scan_type.shift; in ad_sd_trigger_handler()
|
D | ad7298.c | 67 .scan_type = { \ 85 .scan_type = { 257 *val = ret & GENMASK(chan->scan_type.realbits - 1, 0); in ad7298_read_raw() 264 *val2 = chan->scan_type.realbits; in ad7298_read_raw()
|
/drivers/net/wireless/ti/wlcore/ |
D | scan.c | 142 int scan_type) in wlcore_scan_get_channels() argument 151 if (scan_type == SCAN_TYPE_SEARCH) { in wlcore_scan_get_channels() 259 int scan_type) in wlcore_set_scan_chan_params() argument 273 scan_type); in wlcore_set_scan_chan_params() 285 scan_type); in wlcore_set_scan_chan_params() 296 scan_type); in wlcore_set_scan_chan_params() 308 scan_type); in wlcore_set_scan_chan_params() 320 scan_type); in wlcore_set_scan_chan_params()
|
/drivers/net/wireless/iwlwifi/dvm/ |
D | scan.c | 103 priv->scan_type = IWL_SCAN_NORMAL; in iwl_complete_scan() 130 if (priv->scan_type != IWL_SCAN_NORMAL && !aborted) { in iwl_process_scan_complete() 654 if (WARN_ON(priv->scan_type == IWL_SCAN_NORMAL && in iwlagn_request_scan() 685 switch (priv->scan_type) { in iwlagn_request_scan() 707 switch (priv->scan_type) { in iwlagn_request_scan() 856 switch (priv->scan_type) { in iwlagn_request_scan() 882 switch (priv->scan_type) { in iwlagn_request_scan() 936 enum iwl_scan_type scan_type, in iwl_scan_initiate() argument 962 scan_type == IWL_SCAN_NORMAL ? "" : in iwl_scan_initiate() 966 priv->scan_type = scan_type; in iwl_scan_initiate() [all …]
|
/drivers/staging/iio/adc/ |
D | ad7280a.c | 524 st->channels[cnt].scan_type.sign = 'u'; in ad7280_channel_init() 525 st->channels[cnt].scan_type.realbits = 12; in ad7280_channel_init() 526 st->channels[cnt].scan_type.storagebits = 32; in ad7280_channel_init() 527 st->channels[cnt].scan_type.shift = 0; in ad7280_channel_init() 539 st->channels[cnt].scan_type.sign = 'u'; in ad7280_channel_init() 540 st->channels[cnt].scan_type.realbits = 32; in ad7280_channel_init() 541 st->channels[cnt].scan_type.storagebits = 32; in ad7280_channel_init() 542 st->channels[cnt].scan_type.shift = 0; in ad7280_channel_init() 547 st->channels[cnt].scan_type.sign = 's'; in ad7280_channel_init() 548 st->channels[cnt].scan_type.realbits = 64; in ad7280_channel_init() [all …]
|
/drivers/net/wireless/ti/wl18xx/ |
D | scan.c | 65 cmd->scan_type = SCAN_TYPE_SEARCH; in wl18xx_scan_send() 199 cmd->scan_type = SCAN_TYPE_PERIODIC; in wl18xx_scan_sched_scan_config() 311 u8 scan_type) in __wl18xx_scan_stop() argument 325 stop->scan_type = scan_type; in __wl18xx_scan_stop()
|
/drivers/iio/common/ssp_sensors/ |
D | ssp_iio_sensor.h | 11 .scan_type = {\ 25 .scan_type = { \
|
/drivers/iio/orientation/ |
D | hid-sensor-rotation.c | 52 chan->scan_type.sign = 's'; in dev_rot_adjust_channel_bit_mask() 54 chan->scan_type.realbits = size * 8; in dev_rot_adjust_channel_bit_mask() 56 chan->scan_type.storagebits = sizeof(u32) * 8; in dev_rot_adjust_channel_bit_mask() 57 chan->scan_type.repeat = 4; in dev_rot_adjust_channel_bit_mask()
|
/drivers/iio/pressure/ |
D | st_pressure_core.c | 118 .scan_type = { 133 .scan_type = { 154 .scan_type = { 170 .scan_type = {
|
/drivers/iio/imu/ |
D | adis.c | 384 chan->scan_type.storagebits / 8); in adis_single_conversion() 394 if (chan->scan_type.sign == 's') in adis_single_conversion() 395 *val = sign_extend32(uval, chan->scan_type.realbits - 1); in adis_single_conversion() 397 *val = uval & ((1 << chan->scan_type.realbits) - 1); in adis_single_conversion()
|