Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/thermal/
Drcar_gen3_thermal.c118 #define FIXPT_INT(_x) ((_x) << FIXPT_SHIFT) macro
140 tj_2 = (FIXPT_INT((ptat[1] - ptat[2]) * 157) in rcar_gen3_thermal_calc_coefs()
141 / (ptat[0] - ptat[2])) - FIXPT_INT(41); in rcar_gen3_thermal_calc_coefs()
143 coef->a1 = FIXPT_DIV(FIXPT_INT(thcode[1] - thcode[2]), in rcar_gen3_thermal_calc_coefs()
144 tj_2 - FIXPT_INT(TJ_3)); in rcar_gen3_thermal_calc_coefs()
145 coef->b1 = FIXPT_INT(thcode[2]) - coef->a1 * TJ_3; in rcar_gen3_thermal_calc_coefs()
147 coef->a2 = FIXPT_DIV(FIXPT_INT(thcode[1] - thcode[0]), in rcar_gen3_thermal_calc_coefs()
148 tj_2 - FIXPT_INT(TJ_1)); in rcar_gen3_thermal_calc_coefs()
149 coef->b2 = FIXPT_INT(thcode[0]) - coef->a2 * TJ_1; in rcar_gen3_thermal_calc_coefs()
171 val1 = FIXPT_DIV(FIXPT_INT(reg) - tsc->coef.b1, tsc->coef.a1); in rcar_gen3_thermal_get_temp()
[all …]