Home
last modified time | relevance | path

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

/linux/drivers/thermal/renesas/ !
H A Drzg3e_thermal.c177 int temp_mc; in rzg3e_thermal_code_to_temp() local
183 temp_mc = div64_s64(numerator, denominator) + info->temp_d_mc; in rzg3e_thermal_code_to_temp()
185 return clamp(temp_mc, info->temp_d_mc, info->temp_e_mc); in rzg3e_thermal_code_to_temp()
192 static u16 rzg3e_thermal_temp_to_code(struct rzg3e_thermal_priv *priv, int temp_mc) in rzg3e_thermal_temp_to_code() argument
198 numerator = (temp_mc - info->temp_d_mc) * (priv->trmval1 - priv->trmval0); in rzg3e_thermal_temp_to_code()
/linux/drivers/thermal/ !
H A Darmada_thermal.c450 unsigned int temp_mc) in armada_mc_to_reg_temp() argument
458 sample = div_s64(((temp_mc * div) + b), m); in armada_mc_to_reg_temp()
460 sample = div_s64((b - (temp_mc * div)), m); in armada_mc_to_reg_temp()