Home
last modified time | relevance | path

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

123456789

/Linux-v6.6/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.c196 .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 …]
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.c67 .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()
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.c460 .realbits = 12,
471 .realbits = 12,
482 .realbits = 12,
493 .realbits = 12,
504 .realbits = 12,
515 .realbits = 12,
Dti-adc12138.c73 .realbits = 13, \
93 .realbits = 13, \
244 channel->scan_type.realbits - 1); in adc12138_read_raw()
262 *shift = channel->scan_type.realbits - 1; in adc12138_read_raw()
/Linux-v6.6/drivers/iio/temperature/
Dmaxim_thermocouple.c49 .realbits = 13,
68 .realbits = 14,
84 .realbits = 12,
158 *val = sign_extend32(*val >> shift, chan->scan_type.realbits - 1); in maxim_thermocouple_read()
/Linux-v6.6/drivers/iio/common/ssp_sensors/
Dssp_iio_sensor.h14 .realbits = 16,\
28 .realbits = 64, \
/Linux-v6.6/drivers/iio/pressure/
Dst_pressure_core.c131 .realbits = 24,
145 .realbits = 16,
165 .realbits = 16,
179 .realbits = 16,
197 .realbits = 24,
212 .realbits = 16,
Dmpl3115.c119 chan->scan_type.realbits - 1); in mpl3115_read_raw()
207 .realbits = 20,
220 .realbits = 12,
/Linux-v6.6/drivers/iio/dac/
Dmcp4922.c46 .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()
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), \
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()
Dad5380.c176 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), \
Dad7303.c131 *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, \
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()
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()
/Linux-v6.6/drivers/iio/chemical/
Datlas-sensor.c123 .realbits = 32,
150 .realbits = 32, \
165 .realbits = 32,
192 .realbits = 32,
209 .realbits = 32,
233 .realbits = 32,
/Linux-v6.6/drivers/iio/dummy/
Diio_simple_dummy.c132 .realbits = 13, /* 13 bits */
171 .realbits = 12, /* 12 bits */
189 .realbits = 11,
216 .realbits = 16, /* 16 bits */

123456789