Home
last modified time | relevance | path

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

/drivers/thermal/
Drcar_gen3_thermal.c126 #define FIXPT_INT(_x) ((_x) << FIXPT_SHIFT) macro
146 tsc->tj_t = (FIXPT_INT((ptat[1] - ptat[2]) * 157) in rcar_gen3_thermal_calc_coefs()
147 / (ptat[0] - ptat[2])) + FIXPT_INT(TJ_3); in rcar_gen3_thermal_calc_coefs()
149 tsc->coef.a1 = FIXPT_DIV(FIXPT_INT(thcode[1] - thcode[2]), in rcar_gen3_thermal_calc_coefs()
150 tsc->tj_t - FIXPT_INT(TJ_3)); in rcar_gen3_thermal_calc_coefs()
151 tsc->coef.b1 = FIXPT_INT(thcode[2]) - tsc->coef.a1 * TJ_3; in rcar_gen3_thermal_calc_coefs()
153 tsc->coef.a2 = FIXPT_DIV(FIXPT_INT(thcode[1] - thcode[0]), in rcar_gen3_thermal_calc_coefs()
154 tsc->tj_t - FIXPT_INT(ths_tj_1)); in rcar_gen3_thermal_calc_coefs()
155 tsc->coef.b2 = FIXPT_INT(thcode[0]) - tsc->coef.a2 * ths_tj_1; in rcar_gen3_thermal_calc_coefs()
178 val = FIXPT_DIV(FIXPT_INT(reg) - tsc->coef.b1, in rcar_gen3_thermal_get_temp()
[all …]