/linux-6.1.9/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 | 196 .realbits = (_realbits), \ 222 .realbits = (_realbits), \ 484 (chan->scan_type.realbits - 1), 1000000); in ads1015_set_scale() 567 chan->scan_type.realbits - 1); in ads1015_read_raw() 580 *val2 = chan->scan_type.realbits - 1; in ads1015_read_raw() 668 int realbits = chan->scan_type.realbits; in ads1015_write_event() local 678 if (val >= 1 << (realbits - 1) || val < -1 << (realbits - 1)) { in ads1015_write_event() 752 low_thresh = max(-1 << (chan->scan_type.realbits - 1), in ads1015_enable_event_config() 1015 int realbits = indio_dev->channels[i].scan_type.realbits; in ads1015_probe() local 1017 data->thresh_data[i].low_thresh = -1 << (realbits - 1); in ads1015_probe() [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 | 67 .realbits = 12, \ 85 .realbits = 32, 249 *val = ret & GENMASK(chan->scan_type.realbits - 1, 0); in ad7298_read_raw() 256 *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 | 460 .realbits = 12, 471 .realbits = 12, 482 .realbits = 12, 493 .realbits = 12, 504 .realbits = 12, 515 .realbits = 12,
|
D | ad7266.c | 163 chan->scan_type.realbits - 1); in ad7266_read_raw() 174 *val2 = chan->scan_type.realbits; in ad7266_read_raw() 198 .realbits = 12, \ 246 .realbits = 12, \
|
/linux-6.1.9/drivers/iio/temperature/ |
D | maxim_thermocouple.c | 49 .realbits = 13, 68 .realbits = 14, 84 .realbits = 12, 158 *val = sign_extend32(*val >> shift, chan->scan_type.realbits - 1); in maxim_thermocouple_read()
|
/linux-6.1.9/drivers/iio/common/ssp_sensors/ |
D | ssp_iio_sensor.h | 14 .realbits = 16,\ 28 .realbits = 64, \
|
/linux-6.1.9/drivers/iio/pressure/ |
D | st_pressure_core.c | 131 .realbits = 24, 145 .realbits = 16, 165 .realbits = 16, 179 .realbits = 16, 197 .realbits = 24, 212 .realbits = 16,
|
D | mpl3115.c | 119 chan->scan_type.realbits - 1); in mpl3115_read_raw() 207 .realbits = 20, 220 .realbits = 12,
|
/linux-6.1.9/drivers/iio/dac/ |
D | mcp4922.c | 46 .realbits = (bits), \ 75 *val2 = chan->scan_type.realbits; in mcp4922_read_raw() 96 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 | 176 const unsigned int max_val = (1 << chan->scan_type.realbits); in ad5380_write_raw() 189 val += (1 << chan->scan_type.realbits) / 2; in ad5380_write_raw() 223 *val -= (1 << chan->scan_type.realbits) / 2; in ad5380_read_raw() 227 *val2 = chan->scan_type.realbits; in ad5380_read_raw() 264 .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 | ad7303.c | 131 *val2 = chan->scan_type.realbits; in ad7303_read_raw() 148 if (val >= (1 << chan->scan_type.realbits) || val < 0) in ad7303_write_raw() 189 .realbits = 8, \
|
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 | 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()
|
/linux-6.1.9/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,
|
/linux-6.1.9/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 */
|