Home
last modified time | relevance | path

Searched refs:realbits (Results 1 – 25 of 28) sorted by relevance

12

/drivers/staging/iio/
Diio_simple_dummy.c91 .realbits = 13, /* 13 bits */
125 .realbits = 12, /* 12 bits */
142 .realbits = 11,
167 .realbits = 16, /* 12 bits */
Diio.h159 u8 realbits; member
177 { .sign = si, .realbits = rb, .storagebits = sb, .shift = sh }
/drivers/staging/iio/adc/
Dad7780.c110 ((1 << (channel.scan_type.realbits)) - 1); in ad7780_read_raw()
111 *val -= (1 << (channel.scan_type.realbits - 1)); in ad7780_read_raw()
119 >> (channel.scan_type.realbits - 1); in ad7780_read_raw()
Dad7793.c305 >> (st->chip_info->channel[0].scan_type.realbits - in ad7793_setup()
399 indio_dev->channels[0].scan_type.realbits/8); in ad7793_trigger_handler()
639 chan->scan_type.realbits / 8, &smpl); in ad7793_read_raw()
646 ((1 << (chan->scan_type.realbits)) - 1); in ad7793_read_raw()
649 *val -= (1 << (chan->scan_type.realbits - 1)); in ad7793_read_raw()
665 >> (chan->scan_type.realbits - in ad7793_read_raw()
672 >> (chan->scan_type.realbits - in ad7793_read_raw()
Dad7476_core.c57 RES_MASK(st->chip_info->channel[0].scan_type.realbits); in ad7476_read_raw()
61 >> st->chip_info->channel[0].scan_type.realbits; in ad7476_read_raw()
Dad7887_core.c56 RES_MASK(st->chip_info->channel[0].scan_type.realbits); in ad7887_read_raw()
60 >> st->chip_info->channel[0].scan_type.realbits; in ad7887_read_raw()
Dad7192.c442 >> (indio_dev->channels[0].scan_type.realbits - in ad7192_setup()
533 indio_dev->channels[0].scan_type.realbits/8); in ad7192_trigger_handler()
858 chan->scan_type.realbits / 8, &smpl); in ad7192_read_raw()
865 ((1 << (chan->scan_type.realbits)) - 1); in ad7192_read_raw()
870 *val -= (1 << (chan->scan_type.realbits - 1)); in ad7192_read_raw()
Dad7280a.c516 st->channels[cnt].scan_type.realbits = 12; in ad7280_channel_init()
530 st->channels[cnt].scan_type.realbits = 32; in ad7280_channel_init()
538 st->channels[cnt].scan_type.realbits = 64; in ad7280_channel_init()
Dad799x_core.c162 RES_MASK(chan->scan_type.realbits); in ad799x_read_raw()
165 scale_uv = (st->int_vref_mv * 1000) >> chan->scan_type.realbits; in ad799x_read_raw()
/drivers/staging/iio/dac/
Dad5360.c318 int max_val = (1 << chan->scan_type.realbits); in ad5360_write_raw()
352 val >>= (chan->scan_type.realbits - 14); in ad5360_write_raw()
392 scale_uv >>= (chan->scan_type.realbits); in ad5360_read_raw()
417 ret <<= (chan->scan_type.realbits - 14); in ad5360_read_raw()
Dad5380.c291 const unsigned int max_val = (1 << chan->scan_type.realbits); in ad5380_write_raw()
304 val += (1 << chan->scan_type.realbits) / 2; in ad5380_write_raw()
339 val -= (1 << chan->scan_type.realbits) / 2; in ad5380_read_raw()
342 scale_uv = ((2 * st->vref) >> chan->scan_type.realbits) * 100; in ad5380_read_raw()
Dad5764.c187 const int max_val = (1 << chan->scan_type.realbits); in ad5764_write_raw()
258 scale_uv = (vref * 4 * 100) >> chan->scan_type.realbits; in ad5764_read_raw()
263 *val = -(1 << chan->scan_type.realbits) / 2; in ad5764_read_raw()
Dad5791.c243 *val2 = (((u64)st->vref_mv) * 1000000ULL) >> chan->scan_type.realbits; in ad5791_read_raw()
246 val64 = (((u64)st->vref_neg_mv) << chan->scan_type.realbits); in ad5791_read_raw()
267 val &= AD5791_RES_MASK(chan->scan_type.realbits); in ad5791_write_raw()
Dad5624r_spi.c106 scale_uv = (st->vref_mv * 1000) >> chan->scan_type.realbits; in ad5624r_read_raw()
126 if (val >= (1 << chan->scan_type.realbits) || val < 0) in ad5624r_write_raw()
Dad5446.c258 scale_uv = (st->vref_mv * 1000) >> chan->scan_type.realbits; in ad5446_read_raw()
278 if (val >= (1 << chan->scan_type.realbits) || val < 0) in ad5446_write_raw()
Dad5504.c93 scale_uv = (st->vref_mv * 1000) >> chan->scan_type.realbits; in ad5504_read_raw()
113 if (val >= (1 << chan->scan_type.realbits) || val < 0) in ad5504_write_raw()
Dad5686.c310 >> (chan->scan_type.realbits); in ad5686_read_raw()
330 if (val > (1 << chan->scan_type.realbits) || val < 0) in ad5686_write_raw()
Dad5064.c246 scale_uv = (scale_uv * 100) >> chan->scan_type.realbits; in ad5064_read_raw()
264 if (val > (1 << chan->scan_type.realbits) || val < 0) in ad5064_write_raw()
/drivers/staging/iio/accel/
Dadis16203_core.c324 val16 = val16 & ((1 << chan->scan_type.realbits) - 1); in adis16203_read_raw()
327 (16 - chan->scan_type.realbits)) >> in adis16203_read_raw()
328 (16 - chan->scan_type.realbits); in adis16203_read_raw()
Dadis16201_core.c317 val16 = val16 & ((1 << chan->scan_type.realbits) - 1); in adis16201_read_raw()
320 (16 - chan->scan_type.realbits)) >> in adis16201_read_raw()
321 (16 - chan->scan_type.realbits); in adis16201_read_raw()
Dadis16209_core.c350 val16 = val16 & ((1 << chan->scan_type.realbits) - 1); in adis16209_read_raw()
353 (16 - chan->scan_type.realbits)) >> in adis16209_read_raw()
354 (16 - chan->scan_type.realbits); in adis16209_read_raw()
Dadis16240_core.c384 val16 = val16 & ((1 << chan->scan_type.realbits) - 1); in adis16240_read_raw()
387 (16 - chan->scan_type.realbits)) >> in adis16240_read_raw()
388 (16 - chan->scan_type.realbits); in adis16240_read_raw()
Dadis16204_core.c361 val16 = val16 & ((1 << chan->scan_type.realbits) - 1); in adis16204_read_raw()
364 (16 - chan->scan_type.realbits)) >> in adis16204_read_raw()
365 (16 - chan->scan_type.realbits); in adis16204_read_raw()
/drivers/staging/iio/gyro/
Dadis16260_core.c459 val16 = val16 & ((1 << chan->scan_type.realbits) - 1); in adis16260_read_raw()
462 (16 - chan->scan_type.realbits)) >> in adis16260_read_raw()
463 (16 - chan->scan_type.realbits); in adis16260_read_raw()
/drivers/staging/iio/imu/
Dadis16400_core.c557 val16 &= (1 << chan->scan_type.realbits) - 1; in adis16400_read_raw()
559 shift = 16 - chan->scan_type.realbits; in adis16400_read_raw()

12