Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/thermal/
H A Drk_virtual_thermal.c271 static int temp_last = 50000; in predict_normal_temp() local
277 if (milli_deg - temp_last > HIGHER_DEBOUNCE_TEMP) in predict_normal_temp()
278 milli_deg = temp_last + HIGHER_DEBOUNCE_TEMP / 3; in predict_normal_temp()
279 if (temp_last - milli_deg > LOWER_DEBOUNCE_TEMP) in predict_normal_temp()
280 milli_deg = temp_last - LOWER_DEBOUNCE_TEMP / 3; in predict_normal_temp()
283 temp_mid = temp_last; in predict_normal_temp()
291 temp_last = temp_now; in predict_normal_temp()
293 return temp_last; in predict_normal_temp()
/OK3568_Linux_fs/u-boot/drivers/thermal/
H A Drockchip_thermal.c1034 static int temp_last = LOWEST_TEMP; in predict_temp() local
1044 if (temp_last == LOWEST_TEMP) in predict_temp()
1045 temp_last = min(temp, MAX_ENV_TEMP); in predict_temp()
1057 if (temp - temp_last > HIGHER_DEBOUNCE_TEMP) in predict_temp()
1058 temp = temp_last + HIGHER_DEBOUNCE_TEMP / 3; in predict_temp()
1059 if (temp_last - temp > LOWER_DEBOUNCE_TEMP) in predict_temp()
1060 temp = temp_last - LOWER_DEBOUNCE_TEMP / 3; in predict_temp()
1063 temp_mid = temp_last; in predict_temp()
1081 temp_last = temp_now; in predict_temp()
1083 return temp_last; in predict_temp()