Lines Matching full:cal

402 	struct soctherm_shared_cal *cal;  in tegra124_shared_cal()  local
404 cal = &sc->shared_cal; in tegra124_shared_cal()
406 cal->base_cp = TEGRA124_FUSE_COMMON_CP_TS_BASE(val); in tegra124_shared_cal()
407 cal->base_ft = TEGRA124_FUSE_COMMON_FT_TS_BASE(val); in tegra124_shared_cal()
418 cal->actual_temp_cp = 2 * TEGRA124_NOMINAL_CALIB_CP + calib_cp; in tegra124_shared_cal()
419 cal->actual_temp_ft = 2 * TEGRA124_NOMINAL_CALIB_FT + calib_ft; in tegra124_shared_cal()
423 __func__, cal->base_cp, cal->base_ft, in tegra124_shared_cal()
424 cal->actual_temp_cp, cal->actual_temp_ft); in tegra124_shared_cal()
433 struct soctherm_shared_cal *cal; in tegra210_shared_cal() local
435 cal = &sc->shared_cal; in tegra210_shared_cal()
438 cal->base_cp = TEGRA210_FUSE_COMMON_CP_TS_BASE(val); in tegra210_shared_cal()
439 cal->base_ft = TEGRA210_FUSE_COMMON_FT_TS_BASE(val); in tegra210_shared_cal()
448 cal->actual_temp_cp = 2 * TEGRA210_NOMINAL_CALIB_CP + calib_cp; in tegra210_shared_cal()
449 cal->actual_temp_ft = 2 * TEGRA210_NOMINAL_CALIB_FT + calib_ft; in tegra210_shared_cal()
453 __func__, cal->base_cp, cal->base_ft, in tegra210_shared_cal()
454 cal->actual_temp_cp, cal->actual_temp_ft); in tegra210_shared_cal()
466 struct soctherm_shared_cal *cal; in tsensor_calibration() local
470 cal = &sc->shared_cal; in tsensor_calibration()
476 actual_tsensor_cp = cal->base_cp * 64 + calib_cp; in tsensor_calibration()
481 actual_tsensor_ft = cal->base_ft * 32 + calib_ft; in tsensor_calibration()
484 delta_temp = cal->actual_temp_ft - cal->actual_temp_cp; in tsensor_calibration()
491 tmp = (int64_t)actual_tsensor_ft * cal->actual_temp_cp - in tsensor_calibration()
492 (int64_t)actual_tsensor_cp * cal->actual_temp_ft; in tsensor_calibration()