/drivers/staging/iio/ |
D | iio_simple_dummy.c | 91 .realbits = 13, /* 13 bits */ 125 .realbits = 12, /* 12 bits */ 142 .realbits = 11, 167 .realbits = 16, /* 12 bits */
|
D | iio.h | 159 u8 realbits; member 177 { .sign = si, .realbits = rb, .storagebits = sb, .shift = sh }
|
/drivers/staging/iio/adc/ |
D | ad7780.c | 110 ((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()
|
D | ad7793.c | 305 >> (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()
|
D | ad7476_core.c | 57 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()
|
D | ad7887_core.c | 56 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()
|
D | ad7192.c | 442 >> (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()
|
D | ad7280a.c | 516 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()
|
D | ad799x_core.c | 162 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/ |
D | ad5360.c | 318 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()
|
D | ad5380.c | 291 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()
|
D | ad5764.c | 187 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()
|
D | ad5791.c | 243 *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()
|
D | ad5624r_spi.c | 106 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()
|
D | ad5446.c | 258 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()
|
D | ad5504.c | 93 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()
|
D | ad5686.c | 310 >> (chan->scan_type.realbits); in ad5686_read_raw() 330 if (val > (1 << chan->scan_type.realbits) || val < 0) in ad5686_write_raw()
|
D | ad5064.c | 246 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/ |
D | adis16203_core.c | 324 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()
|
D | adis16201_core.c | 317 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()
|
D | adis16209_core.c | 350 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()
|
D | adis16240_core.c | 384 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()
|
D | adis16204_core.c | 361 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/ |
D | adis16260_core.c | 459 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/ |
D | adis16400_core.c | 557 val16 &= (1 << chan->scan_type.realbits) - 1; in adis16400_read_raw() 559 shift = 16 - chan->scan_type.realbits; in adis16400_read_raw()
|