Home
last modified time | relevance | path

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

/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.c59 int calibscale; member
87 cm32181->calibscale = CM32181_CALIBSCALE_DEFAULT; in cm32181_reg_init()
193 lux *= cm32181->calibscale; in cm32181_get_lux()
218 *val = cm32181->calibscale; in cm32181_read_raw()
238 cm32181->calibscale = val; in cm32181_write_raw()
Dcm3232.c56 int calibscale; member
64 .calibscale = CM3232_CALIBSCALE_DEFAULT,
224 lux *= als_info->calibscale; in cm3232_get_lux()
250 *val = als_info->calibscale; in cm3232_read_raw()
268 als_info->calibscale = val; in cm3232_write_raw()
Disl29018.c84 unsigned int calibscale; member
204 *lux = data_x_range * chip->calibscale + in isl29018_read_lux()
376 chip->calibscale = val; in isl29018_write_raw()
450 *val = chip->calibscale; in isl29018_read_raw()
742 chip->calibscale = 1; in isl29018_probe()
/drivers/iio/adc/
Dmeson_saradc.c280 int calibscale; member
317 tmp = div_s64((s64)val * priv->calibscale, MILLION) + priv->calibbias; in meson_sar_adc_calib_val()
635 *val = priv->calibscale / MILLION; in meson_sar_adc_iio_info_read_raw()
636 *val2 = priv->calibscale % MILLION; in meson_sar_adc_iio_info_read_raw()
1059 priv->calibscale = div_s64((nominal1 - nominal0) * (s64)MILLION, in meson_sar_adc_calib()
1061 priv->calibbias = nominal0 - div_s64((s64)value0 * priv->calibscale, in meson_sar_adc_calib()
1281 priv->calibscale = MILLION; in meson_sar_adc_probe()