Home
last modified time | relevance | path

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

/openbmc/linux/drivers/thermal/
H A Drcar_gen3_thermal.c88 int thcode[3]; member
152 tsc->coef.a1 = FIXPT_DIV(FIXPT_INT(tsc->thcode[1] - tsc->thcode[2]), in rcar_gen3_thermal_calc_coefs()
154 tsc->coef.b1 = FIXPT_INT(tsc->thcode[2]) - tsc->coef.a1 * TJ_3; in rcar_gen3_thermal_calc_coefs()
156 tsc->coef.a2 = FIXPT_DIV(FIXPT_INT(tsc->thcode[1] - tsc->thcode[0]), in rcar_gen3_thermal_calc_coefs()
180 if (reg <= tsc->thcode[1]) in rcar_gen3_thermal_get_temp()
273 tsc->thcode[0] = rcar_gen3_thermal_read(tsc, REG_GEN3_THCODE1) & in rcar_gen3_thermal_read_fuses_gen3()
275 tsc->thcode[1] = rcar_gen3_thermal_read(tsc, REG_GEN3_THCODE2) & in rcar_gen3_thermal_read_fuses_gen3()
277 tsc->thcode[2] = rcar_gen3_thermal_read(tsc, REG_GEN3_THCODE3) & in rcar_gen3_thermal_read_fuses_gen3()
335 tsc->thcode[0] = thcodes[i][0]; in rcar_gen3_thermal_read_fuses()
336 tsc->thcode[1] = thcodes[i][1]; in rcar_gen3_thermal_read_fuses()
[all …]