Home
last modified time | relevance | path

Searched refs:calibscale (Results 1 – 7 of 7) sorted by relevance

/Linux-v4.19/drivers/iio/light/
Dlv0104cs.c41 u8 calibscale; member
247 *val = lv0104cs_calibscales[lv0104cs->calibscale].val; in lv0104cs_read_raw()
248 *val2 = lv0104cs_calibscales[lv0104cs->calibscale].val2; in lv0104cs_read_raw()
277 int calibscale = val * 1000000 + val2; in lv0104cs_set_calibscale() local
290 if (calibscale >= floor && calibscale < mid) { in lv0104cs_set_calibscale()
296 if (calibscale >= mid && calibscale <= ceil) { in lv0104cs_set_calibscale()
313 lv0104cs->calibscale = index; in lv0104cs_set_calibscale()
495 lv0104cs->calibscale = LV0104CS_CALIBSCALE_UNITY; in lv0104cs_probe()
Dcm32181.c62 int calibscale; member
90 cm32181->calibscale = CM32181_CALIBSCALE_DEFAULT; in cm32181_reg_init()
196 lux *= cm32181->calibscale; in cm32181_get_lux()
221 *val = cm32181->calibscale; in cm32181_read_raw()
241 cm32181->calibscale = val; in cm32181_write_raw()
Dcm3232.c59 int calibscale; member
67 .calibscale = CM3232_CALIBSCALE_DEFAULT,
227 lux *= als_info->calibscale; in cm3232_get_lux()
253 *val = als_info->calibscale; in cm3232_read_raw()
271 als_info->calibscale = val; in cm3232_write_raw()
Disl29018.c92 unsigned int calibscale; member
211 *lux = data_x_range * chip->calibscale + in isl29018_read_lux()
383 chip->calibscale = val; in isl29018_write_raw()
457 *val = chip->calibscale; in isl29018_read_raw()
739 chip->calibscale = 1; in isl29018_probe()
/Linux-v4.19/drivers/iio/adc/
Dmeson_saradc.c248 int calibscale; member
281 tmp = div_s64((s64)val * priv->calibscale, MILLION) + priv->calibbias; in meson_sar_adc_calib_val()
574 *val = priv->calibscale / MILLION; in meson_sar_adc_iio_info_read_raw()
575 *val2 = priv->calibscale % MILLION; in meson_sar_adc_iio_info_read_raw()
876 priv->calibscale = div_s64((nominal1 - nominal0) * (s64)MILLION, in meson_sar_adc_calib()
878 priv->calibbias = nominal0 - div_s64((s64)value0 * priv->calibscale, in meson_sar_adc_calib()
1079 priv->calibscale = MILLION; in meson_sar_adc_probe()
/Linux-v4.19/Documentation/misc-devices/
Dapds990x.txt72 Output results are multiplied with calibscale / calibscale_default
Dbh1770glc.txt79 Output results are multiplied with calibscale / calibscale_default