Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/thermal/
Drcar_gen3_thermal.c85 int thcode[3]; member
148 tsc->coef.a1 = FIXPT_DIV(FIXPT_INT(tsc->thcode[1] - tsc->thcode[2]), in rcar_gen3_thermal_calc_coefs()
150 tsc->coef.b1 = FIXPT_INT(tsc->thcode[2]) - tsc->coef.a1 * TJ_3; in rcar_gen3_thermal_calc_coefs()
152 tsc->coef.a2 = FIXPT_DIV(FIXPT_INT(tsc->thcode[1] - tsc->thcode[0]), in rcar_gen3_thermal_calc_coefs()
154 tsc->coef.b2 = FIXPT_INT(tsc->thcode[0]) - tsc->coef.a2 * ths_tj_1; in rcar_gen3_thermal_calc_coefs()
176 if (reg <= tsc->thcode[1]) in rcar_gen3_thermal_get_temp()
279 tsc->thcode[0] = thcodes[i][0]; in rcar_gen3_thermal_read_fuses()
280 tsc->thcode[1] = thcodes[i][1]; in rcar_gen3_thermal_read_fuses()
281 tsc->thcode[2] = thcodes[i][2]; in rcar_gen3_thermal_read_fuses()
302 tsc->thcode[0] = rcar_gen3_thermal_read(tsc, REG_GEN3_THCODE1) & in rcar_gen3_thermal_read_fuses()
[all …]