Lines Matching refs:ctemp
201 int old, new, ctemp = -EINVAL; in rcar_thermal_update_temp() local
223 ctemp = new; in rcar_thermal_update_temp()
229 if (ctemp < 0) { in rcar_thermal_update_temp()
243 rcar_thermal_write(priv, INTCTRL, (((ctemp - 0) << 8) | in rcar_thermal_update_temp()
244 ((ctemp - 1) << 0))); in rcar_thermal_update_temp()
250 return ctemp; in rcar_thermal_update_temp()
256 int ctemp; in rcar_thermal_get_current_temp() local
258 ctemp = rcar_thermal_update_temp(priv); in rcar_thermal_get_current_temp()
259 if (ctemp < 0) in rcar_thermal_get_current_temp()
260 return ctemp; in rcar_thermal_get_current_temp()
265 *temp = MCELSIUS((ctemp * 5) - 65); in rcar_thermal_get_current_temp()
266 else if (ctemp < 24) in rcar_thermal_get_current_temp()
267 *temp = MCELSIUS(((ctemp * 55) - 720) / 10); in rcar_thermal_get_current_temp()
269 *temp = MCELSIUS((ctemp * 5) - 60); in rcar_thermal_get_current_temp()