Lines Matching full:tz
18 static int get_trip_level(struct thermal_zone_device *tz) in get_trip_level() argument
24 for_each_trip_desc(tz, td) { in get_trip_level()
25 if (td->threshold > tz->temperature) in get_trip_level()
38 trace_thermal_zone_trip(tz, thermal_zone_trip_id(tz, &level_td->trip), in get_trip_level()
46 * @tz: thermal_zone_device
63 static void fair_share_throttle(struct thermal_zone_device *tz, in fair_share_throttle() argument
83 divisor = tz->num_trips; in fair_share_throttle()
96 static void fair_share_manage(struct thermal_zone_device *tz) in fair_share_manage() argument
98 int trip_level = get_trip_level(tz); in fair_share_manage()
101 lockdep_assert_held(&tz->lock); in fair_share_manage()
103 for_each_trip_desc(tz, td) { in fair_share_manage()
111 fair_share_throttle(tz, td, trip_level); in fair_share_manage()