/kernel/linux/linux-5.10/drivers/iio/adc/ |
D | ti-adc161s626.c | 42 .realbits = 14, 59 .realbits = 16, 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 | ti-ads1015.c | 148 .realbits = 12, \ 171 .realbits = 12, \ 192 .realbits = 16, \ 214 .realbits = 16, \ 434 (chan->scan_type.realbits - 1), 1000000); in ads1015_set_scale() 506 *val2 = chan->scan_type.realbits - 1; in ads1015_read_raw() 593 int realbits = chan->scan_type.realbits; in ads1015_write_event() local 603 if (val >= 1 << (realbits - 1) || val < -1 << (realbits - 1)) { in ads1015_write_event() 677 low_thresh = max(-1 << (chan->scan_type.realbits - 1), in ads1015_enable_event_config() 984 int realbits = indio_dev->channels[i].scan_type.realbits; in ads1015_probe() local [all …]
|
D | ad7780.c | 123 *val2 = chan->scan_type.realbits - 1; in ad7780_read_raw() 127 *val = -(1 << (chan->scan_type.realbits - 1)); in ad7780_read_raw() 159 full_scale = 1 << (chip_info->channel.scan_type.realbits - 1); in ad7780_write_raw() 221 .realbits = (_bits), \
|
D | ti-tlc4541.c | 64 .realbits = (bits), \ 143 *val &= GENMASK(chan->scan_type.realbits - 1, 0); in tlc4541_read_raw() 150 *val2 = chan->scan_type.realbits; in tlc4541_read_raw()
|
D | ad7298.c | 68 .realbits = 12, \ 86 .realbits = 32, 256 *val = ret & GENMASK(chan->scan_type.realbits - 1, 0); in ad7298_read_raw() 263 *val2 = chan->scan_type.realbits; in ad7298_read_raw()
|
D | ad7791.c | 84 .realbits = (_bits), \ 277 *val = -(1 << (chan->scan_type.realbits - 1)); in ad7791_read_raw() 297 *val2 = chan->scan_type.realbits; in ad7791_read_raw() 299 *val2 = chan->scan_type.realbits - 1; in ad7791_read_raw()
|
D | ingenic-adc.c | 411 .realbits = 12, 422 .realbits = 12, 433 .realbits = 12, 444 .realbits = 12, 455 .realbits = 12, 466 .realbits = 12,
|
D | ad7124.c | 171 .realbits = 24, 392 *val2 = chan->scan_type.realbits - 1 + idx; in ad7124_read_raw() 394 *val2 = chan->scan_type.realbits + idx; in ad7124_read_raw() 399 *val = -(1 << (chan->scan_type.realbits - 1)); in ad7124_read_raw() 434 full_scale = 1 << (chan->scan_type.realbits - 1); in ad7124_write_raw() 436 full_scale = 1 << chan->scan_type.realbits; in ad7124_write_raw()
|
/kernel/linux/linux-5.10/drivers/iio/pressure/ |
D | st_pressure_core.c | 137 .realbits = 24, 151 .realbits = 16, 171 .realbits = 16, 185 .realbits = 16, 203 .realbits = 24, 218 .realbits = 16,
|
/kernel/linux/linux-5.10/drivers/iio/temperature/ |
D | maxim_thermocouple.c | 50 .realbits = 13, 69 .realbits = 14, 85 .realbits = 12, 159 *val = sign_extend32(*val >> shift, chan->scan_type.realbits - 1); in maxim_thermocouple_read()
|
/kernel/linux/linux-5.10/drivers/iio/common/ssp_sensors/ |
D | ssp_iio_sensor.h | 14 .realbits = 16,\ 28 .realbits = 64, \
|
/kernel/linux/linux-5.10/drivers/iio/dac/ |
D | mcp4922.c | 44 .realbits = (bits), \ 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()
|
D | ad5764.c | 88 .realbits = (_bits), \ 187 const int max_val = (1 << chan->scan_type.realbits); in ad5764_write_raw() 258 *val2 = chan->scan_type.realbits; in ad5764_read_raw() 261 *val = -(1 << chan->scan_type.realbits) / 2; in ad5764_read_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() 113 .realbits = (bits), \
|
D | ad5380.c | 178 const unsigned int max_val = (1 << chan->scan_type.realbits); in ad5380_write_raw() 191 val += (1 << chan->scan_type.realbits) / 2; in ad5380_write_raw() 225 *val -= (1 << chan->scan_type.realbits) / 2; in ad5380_read_raw() 229 *val2 = chan->scan_type.realbits; in ad5380_read_raw() 266 .realbits = (_bits), \
|
D | ad5360.c | 113 .realbits = (bits), \ 320 int max_val = (1 << chan->scan_type.realbits); in ad5360_write_raw() 354 val >>= (chan->scan_type.realbits - 14); in ad5360_write_raw() 395 *val2 = chan->scan_type.realbits; in ad5360_read_raw() 418 ret <<= (chan->scan_type.realbits - 14); in ad5360_read_raw()
|
D | ad5791.c | 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() 303 .realbits = (bits), \ 327 val &= GENMASK(chan->scan_type.realbits - 1, 0); in ad5791_write_raw()
|
D | ad7303.c | 133 *val2 = chan->scan_type.realbits; in ad7303_read_raw() 150 if (val >= (1 << chan->scan_type.realbits) || val < 0) in ad7303_write_raw() 191 .realbits = 8, \
|
D | ad5624r_spi.c | 56 *val2 = chan->scan_type.realbits; in ad5624r_read_raw() 72 if (val >= (1 << chan->scan_type.realbits) || val < 0) in ad5624r_write_raw() 176 .realbits = (_bits), \
|
D | ad5449.c | 160 *val2 = chan->scan_type.realbits; in ad5449_read_raw() 178 if (val < 0 || val >= (1 << chan->scan_type.realbits)) in ad5449_write_raw() 209 .realbits = (bits), \
|
D | ad5504.c | 113 *val2 = chan->scan_type.realbits; in ad5504_read_raw() 129 if (val >= (1 << chan->scan_type.realbits) || val < 0) in ad5504_write_raw() 258 .realbits = 12, \
|
D | ad5446.c | 125 shift = chan->scan_type.realbits + chan->scan_type.shift; in ad5446_write_dac_powerdown() 158 .realbits = (bits), \ 185 *val2 = chan->scan_type.realbits; in ad5446_read_raw() 202 if (val >= (1 << chan->scan_type.realbits) || val < 0) in ad5446_write_raw()
|
D | ad5686.c | 136 GENMASK(chan->scan_type.realbits - 1, 0); in ad5686_read_raw() 140 *val2 = chan->scan_type.realbits; in ad5686_read_raw() 157 if (val > (1 << chan->scan_type.realbits) || val < 0) in ad5686_write_raw() 201 .realbits = (bits), \
|
/kernel/linux/linux-5.10/drivers/iio/chemical/ |
D | atlas-sensor.c | 123 .realbits = 32, 150 .realbits = 32, \ 165 .realbits = 32, 192 .realbits = 32, 209 .realbits = 32, 233 .realbits = 32,
|
/kernel/linux/linux-5.10/drivers/iio/dummy/ |
D | iio_simple_dummy.c | 132 .realbits = 13, /* 13 bits */ 171 .realbits = 12, /* 12 bits */ 189 .realbits = 11, 216 .realbits = 16, /* 16 bits */
|