Lines Matching refs:calib
88 struct tegra_tsensor_calibration_data calib; member
199 c1 = DIV_ROUND_CLOSEST(ts->calib.a * counter + ts->calib.b, 1000000); in tegra_tsensor_get_temp()
201 c2 = DIV_ROUND_CLOSEST(ts->calib.p, c1); in tegra_tsensor_get_temp()
202 c3 = c1 * ts->calib.m; in tegra_tsensor_get_temp()
203 c4 = ts->calib.n; in tegra_tsensor_get_temp()
214 c1 = DIV_ROUND_CLOSEST(ts->calib.p - temp * 1000, ts->calib.m); in tegra_tsensor_temp_to_counter()
215 c2 = -ts->calib.r - int_sqrt(ts->calib.r * ts->calib.r - c1); in tegra_tsensor_temp_to_counter()
217 return DIV_ROUND_CLOSEST(c2 * 1000000 - ts->calib.b, ts->calib.a); in tegra_tsensor_temp_to_counter()
483 ts->calib.a = DIV_ROUND_CLOSEST((t2_90C - t1_25C) * 1000000, in tegra_tsensor_nvmem_setup()
486 ts->calib.b = t1_25C * 1000000 - ts->calib.a * c1_25C; in tegra_tsensor_nvmem_setup()
489 ts->calib.m = -2775; in tegra_tsensor_nvmem_setup()
490 ts->calib.n = 1338811; in tegra_tsensor_nvmem_setup()
491 ts->calib.p = -7300000; in tegra_tsensor_nvmem_setup()
493 ts->calib.m = -3512; in tegra_tsensor_nvmem_setup()
494 ts->calib.n = 1528943; in tegra_tsensor_nvmem_setup()
495 ts->calib.p = -11100000; in tegra_tsensor_nvmem_setup()
499 ts->calib.r = DIV_ROUND_CLOSEST(ts->calib.n, ts->calib.m * 2); in tegra_tsensor_nvmem_setup()