Lines Matching full:temperature
57 return t1->temperature - t2->temperature; in __thermal_thresholds_cmp()
61 int temperature) in __thermal_thresholds_find() argument
66 if (t->temperature == temperature) in __thermal_thresholds_find()
72 static bool thermal_thresholds_handle_raising(struct list_head *thresholds, int temperature, in thermal_thresholds_handle_raising() argument
82 if (temperature >= t->temperature && in thermal_thresholds_handle_raising()
83 last_temperature < t->temperature) in thermal_thresholds_handle_raising()
90 static bool thermal_thresholds_handle_dropping(struct list_head *thresholds, int temperature, in thermal_thresholds_handle_dropping() argument
100 if (temperature <= t->temperature && in thermal_thresholds_handle_dropping()
101 last_temperature > t->temperature) in thermal_thresholds_handle_dropping()
108 static void thermal_threshold_find_boundaries(struct list_head *thresholds, int temperature, in thermal_threshold_find_boundaries() argument
114 if (temperature < t->temperature && in thermal_threshold_find_boundaries()
116 *high > t->temperature) in thermal_threshold_find_boundaries()
117 *high = t->temperature; in thermal_threshold_find_boundaries()
121 if (temperature > t->temperature && in thermal_threshold_find_boundaries()
123 *low < t->temperature) in thermal_threshold_find_boundaries()
124 *low = t->temperature; in thermal_threshold_find_boundaries()
132 int temperature = tz->temperature; in thermal_thresholds_handle() local
137 thermal_threshold_find_boundaries(thresholds, temperature, low, high); in thermal_thresholds_handle()
146 * The temperature is stable, so obviously we can not have in thermal_thresholds_handle()
149 if (last_temperature == temperature) in thermal_thresholds_handle()
153 * Since last update the temperature: in thermal_thresholds_handle()
157 if (temperature > last_temperature) { in thermal_thresholds_handle()
159 temperature, last_temperature)) in thermal_thresholds_handle()
163 temperature, last_temperature)) in thermal_thresholds_handle()
169 int temperature, int direction) in thermal_thresholds_add() argument
176 t = __thermal_thresholds_find(thresholds, temperature); in thermal_thresholds_add()
189 t->temperature = temperature; in thermal_thresholds_add()
195 thermal_notify_threshold_add(tz, temperature, direction); in thermal_thresholds_add()
203 int temperature, int direction) in thermal_thresholds_delete() argument
210 t = __thermal_thresholds_find(thresholds, temperature); in thermal_thresholds_delete()
221 thermal_notify_threshold_delete(tz, temperature, direction); in thermal_thresholds_delete()