Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/thermal/
H A Dimx_thermal.c52 unsigned int reg, n_meas; in read_cpu_temperature() local
122 n_meas = (reg & TEMPSENSE0_TEMP_CNT_MASK) in read_cpu_temperature()
127 temperature = div_s64_rem(c2 - n_meas * c1 + OFFSET, 1000000, &rem); in read_cpu_temperature()
/openbmc/linux/drivers/thermal/
H A Dimx_thermal.c258 unsigned int n_meas; in imx_get_temp() local
271 n_meas = (val & soc_data->temp_value_mask) in imx_get_temp()
276 *temp = (n_meas - data->c1 + 25) * 1000; in imx_get_temp()
278 *temp = data->c2 - n_meas * data->c1; in imx_get_temp()