Home
last modified time | relevance | path

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

1234567

/kernel/linux/linux-5.10/drivers/iio/adc/
Dti-adc161s626.c42 .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()
Dti-ads1015.c148 .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 …]
Dad7780.c123 *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), \
Dti-tlc4541.c64 .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()
Dad7298.c68 .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()
Dad7791.c84 .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()
Dingenic-adc.c411 .realbits = 12,
422 .realbits = 12,
433 .realbits = 12,
444 .realbits = 12,
455 .realbits = 12,
466 .realbits = 12,
Dad7124.c171 .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/
Dst_pressure_core.c137 .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/
Dmaxim_thermocouple.c50 .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/
Dssp_iio_sensor.h14 .realbits = 16,\
28 .realbits = 64, \
/kernel/linux/linux-5.10/drivers/iio/dac/
Dmcp4922.c44 .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()
Dad5764.c88 .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()
Dltc1660.c69 *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), \
Dad5380.c178 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), \
Dad5360.c113 .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()
Dad5791.c266 *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()
Dad7303.c133 *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, \
Dad5624r_spi.c56 *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), \
Dad5449.c160 *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), \
Dad5504.c113 *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, \
Dad5446.c125 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()
Dad5686.c136 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/
Datlas-sensor.c123 .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/
Diio_simple_dummy.c132 .realbits = 13, /* 13 bits */
171 .realbits = 12, /* 12 bits */
189 .realbits = 11,
216 .realbits = 16, /* 16 bits */

1234567