Lines Matching refs:calib
87 struct tegra_tsensor_calibration_data calib; member
198 c1 = DIV_ROUND_CLOSEST(ts->calib.a * counter + ts->calib.b, 1000000); in tegra_tsensor_get_temp()
200 c2 = DIV_ROUND_CLOSEST(ts->calib.p, c1); in tegra_tsensor_get_temp()
201 c3 = c1 * ts->calib.m; in tegra_tsensor_get_temp()
202 c4 = ts->calib.n; in tegra_tsensor_get_temp()
213 c1 = DIV_ROUND_CLOSEST(ts->calib.p - temp * 1000, ts->calib.m); in tegra_tsensor_temp_to_counter()
214 c2 = -ts->calib.r - int_sqrt(ts->calib.r * ts->calib.r - c1); in tegra_tsensor_temp_to_counter()
216 return DIV_ROUND_CLOSEST(c2 * 1000000 - ts->calib.b, ts->calib.a); in tegra_tsensor_temp_to_counter()
481 ts->calib.a = DIV_ROUND_CLOSEST((t2_90C - t1_25C) * 1000000, in tegra_tsensor_nvmem_setup()
484 ts->calib.b = t1_25C * 1000000 - ts->calib.a * c1_25C; in tegra_tsensor_nvmem_setup()
487 ts->calib.m = -2775; in tegra_tsensor_nvmem_setup()
488 ts->calib.n = 1338811; in tegra_tsensor_nvmem_setup()
489 ts->calib.p = -7300000; in tegra_tsensor_nvmem_setup()
491 ts->calib.m = -3512; in tegra_tsensor_nvmem_setup()
492 ts->calib.n = 1528943; in tegra_tsensor_nvmem_setup()
493 ts->calib.p = -11100000; in tegra_tsensor_nvmem_setup()
497 ts->calib.r = DIV_ROUND_CLOSEST(ts->calib.n, ts->calib.m * 2); in tegra_tsensor_nvmem_setup()