Home
last modified time | relevance | path

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

12345

/drivers/iio/
Dindustrialio-buffer.c223 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/
Dade7758_core.c640 .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/
Dad5360.c110 .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()
Dad5380.c177 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 = { \
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()
Dmcp4922.c52 .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()
Dad5791.c265 *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()
Dad5446.c118 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()
Dad5624r_spi.c57 *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 = { \
Dad5449.c159 *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 = { \
Dad5686.c217 *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/
Dcc10001_adc.c243 *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()
Dad7476.c118 *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()
Dad7887.c168 *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 = {
Dad799x.c294 *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 = { \
Dad_sigma_delta.c309 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()
Dad7298.c67 .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/
Dscan.c142 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/
Dscan.c103 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/
Dad7280a.c524 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/
Dscan.c65 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/
Dssp_iio_sensor.h11 .scan_type = {\
25 .scan_type = { \
/drivers/iio/orientation/
Dhid-sensor-rotation.c52 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/
Dst_pressure_core.c118 .scan_type = {
133 .scan_type = {
154 .scan_type = {
170 .scan_type = {
/drivers/iio/imu/
Dadis.c384 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()

12345