Lines Matching full:thresholds

7  * Thermal thresholds
25 struct list_head *thresholds = &tz->user_thresholds; in __thermal_thresholds_flush() local
28 list_for_each_entry_safe(entry, tmp, thresholds, list_node) { in __thermal_thresholds_flush()
60 static struct user_threshold *__thermal_thresholds_find(const struct list_head *thresholds, in __thermal_thresholds_find() argument
65 list_for_each_entry(t, thresholds, list_node) in __thermal_thresholds_find()
72 static bool thermal_thresholds_handle_raising(struct list_head *thresholds, int temperature, in thermal_thresholds_handle_raising() argument
77 list_for_each_entry(t, thresholds, list_node) { in thermal_thresholds_handle_raising()
90 static bool thermal_thresholds_handle_dropping(struct list_head *thresholds, int temperature, in thermal_thresholds_handle_dropping() argument
95 list_for_each_entry_reverse(t, thresholds, list_node) { in thermal_thresholds_handle_dropping()
108 static void thermal_threshold_find_boundaries(struct list_head *thresholds, int temperature, in thermal_threshold_find_boundaries() argument
113 list_for_each_entry(t, thresholds, list_node) { in thermal_threshold_find_boundaries()
120 list_for_each_entry_reverse(t, thresholds, list_node) { in thermal_threshold_find_boundaries()
130 struct list_head *thresholds = &tz->user_thresholds; in thermal_thresholds_handle() local
137 thermal_threshold_find_boundaries(thresholds, temperature, low, high); in thermal_thresholds_handle()
154 * - increased : thresholds are crossed the way up in thermal_thresholds_handle()
155 * - decreased : thresholds are crossed the way down in thermal_thresholds_handle()
158 if (thermal_thresholds_handle_raising(thresholds, in thermal_thresholds_handle()
162 if (thermal_thresholds_handle_dropping(thresholds, in thermal_thresholds_handle()
171 struct list_head *thresholds = &tz->user_thresholds; in thermal_thresholds_add() local
176 t = __thermal_thresholds_find(thresholds, temperature); in thermal_thresholds_add()
191 list_add(&t->list_node, thresholds); in thermal_thresholds_add()
192 list_sort(NULL, thresholds, __thermal_thresholds_cmp); in thermal_thresholds_add()
205 struct list_head *thresholds = &tz->user_thresholds; in thermal_thresholds_delete() local
210 t = __thermal_thresholds_find(thresholds, temperature); in thermal_thresholds_delete()
231 struct list_head *thresholds = &tz->user_thresholds; in thermal_thresholds_for_each() local
237 list_for_each_entry(entry, thresholds, list_node) { in thermal_thresholds_for_each()