/Linux-v5.15/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, \ 432 (chan->scan_type.realbits - 1), 1000000); in ads1015_set_scale() 504 *val2 = chan->scan_type.realbits - 1; in ads1015_read_raw() 591 int realbits = chan->scan_type.realbits; in ads1015_write_event() local 601 if (val >= 1 << (realbits - 1) || val < -1 << (realbits - 1)) { in ads1015_write_event() 675 low_thresh = max(-1 << (chan->scan_type.realbits - 1), in ads1015_enable_event_config() 982 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 | 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 | 458 .realbits = 12, 469 .realbits = 12, 480 .realbits = 12, 491 .realbits = 12, 502 .realbits = 12, 513 .realbits = 12,
|
D | ad7887.c | 165 *val &= GENMASK(chan->scan_type.realbits - 1, 0); in ad7887_read_raw() 177 *val2 = chan->scan_type.realbits; in ad7887_read_raw() 194 .realbits = 12, \
|
/Linux-v5.15/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,
|
/Linux-v5.15/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()
|
/Linux-v5.15/drivers/iio/common/ssp_sensors/ |
D | ssp_iio_sensor.h | 14 .realbits = 16,\ 28 .realbits = 64, \
|
/Linux-v5.15/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 | 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 | 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 | 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 | 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 | 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-v5.15/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-v5.15/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 */
|
/Linux-v5.15/drivers/iio/imu/inv_icm42600/ |
D | inv_icm42600_temp.h | 21 .realbits = 16, \
|