Lines Matching full:tz
16 int thermal_thresholds_init(struct thermal_zone_device *tz) in thermal_thresholds_init() argument
18 INIT_LIST_HEAD(&tz->user_thresholds); in thermal_thresholds_init()
23 static void __thermal_thresholds_flush(struct thermal_zone_device *tz) in __thermal_thresholds_flush() argument
25 struct list_head *thresholds = &tz->user_thresholds; in __thermal_thresholds_flush()
34 void thermal_thresholds_flush(struct thermal_zone_device *tz) in thermal_thresholds_flush() argument
36 lockdep_assert_held(&tz->lock); in thermal_thresholds_flush()
38 __thermal_thresholds_flush(tz); in thermal_thresholds_flush()
40 thermal_notify_threshold_flush(tz); in thermal_thresholds_flush()
42 __thermal_zone_device_update(tz, THERMAL_TZ_FLUSH_THRESHOLDS); in thermal_thresholds_flush()
45 void thermal_thresholds_exit(struct thermal_zone_device *tz) in thermal_thresholds_exit() argument
47 __thermal_thresholds_flush(tz); in thermal_thresholds_exit()
128 void thermal_thresholds_handle(struct thermal_zone_device *tz, int *low, int *high) in thermal_thresholds_handle() argument
130 struct list_head *thresholds = &tz->user_thresholds; in thermal_thresholds_handle()
132 int temperature = tz->temperature; in thermal_thresholds_handle()
133 int last_temperature = tz->last_temperature; in thermal_thresholds_handle()
135 lockdep_assert_held(&tz->lock); in thermal_thresholds_handle()
160 thermal_notify_threshold_up(tz); in thermal_thresholds_handle()
164 thermal_notify_threshold_down(tz); in thermal_thresholds_handle()
168 int thermal_thresholds_add(struct thermal_zone_device *tz, in thermal_thresholds_add() argument
171 struct list_head *thresholds = &tz->user_thresholds; in thermal_thresholds_add()
174 lockdep_assert_held(&tz->lock); in thermal_thresholds_add()
195 thermal_notify_threshold_add(tz, temperature, direction); in thermal_thresholds_add()
197 __thermal_zone_device_update(tz, THERMAL_TZ_ADD_THRESHOLD); in thermal_thresholds_add()
202 int thermal_thresholds_delete(struct thermal_zone_device *tz, in thermal_thresholds_delete() argument
205 struct list_head *thresholds = &tz->user_thresholds; in thermal_thresholds_delete()
208 lockdep_assert_held(&tz->lock); in thermal_thresholds_delete()
221 thermal_notify_threshold_delete(tz, temperature, direction); in thermal_thresholds_delete()
223 __thermal_zone_device_update(tz, THERMAL_TZ_DEL_THRESHOLD); in thermal_thresholds_delete()
228 int thermal_thresholds_for_each(struct thermal_zone_device *tz, in thermal_thresholds_for_each() argument
231 struct list_head *thresholds = &tz->user_thresholds; in thermal_thresholds_for_each()
235 guard(thermal_zone)(tz); in thermal_thresholds_for_each()