Searched refs:calibscale (Results 1 – 7 of 7) sorted by relevance
41 u8 calibscale; member247 *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() local290 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()
62 int calibscale; member90 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()
59 int calibscale; member67 .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()
92 unsigned int calibscale; member211 *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()
248 int calibscale; member281 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()
72 Output results are multiplied with calibscale / calibscale_default
79 Output results are multiplied with calibscale / calibscale_default