Lines Matching full:adj
118 * [temp] = ((thadj - [reg]) * a) / b + adj
119 * [reg] = thadj - ([temp] - adj) * b / a
132 * The constants adj is taken verbatim from the datasheet. Two values exists,
160 int adj, decicelsius, reg, thcode; in rcar_gen3_thermal_get_temp() local
166 adj = priv->info->adj_below; in rcar_gen3_thermal_get_temp()
170 adj = priv->info->adj_above; in rcar_gen3_thermal_get_temp()
186 *temp = decicelsius * 100 + adj * 1000; in rcar_gen3_thermal_get_temp()
196 int adj, celsius, thcode; in rcar_gen3_thermal_mcelsius_to_temp() local
201 adj = priv->info->adj_below; in rcar_gen3_thermal_mcelsius_to_temp()
205 adj = priv->info->adj_above; in rcar_gen3_thermal_mcelsius_to_temp()
209 return thcode - DIV_ROUND_CLOSEST((celsius - adj) * coef->b, coef->a); in rcar_gen3_thermal_mcelsius_to_temp()