Lines Matching full:tz
71 static void thermal_zone_trip_update(struct thermal_zone_device *tz, in thermal_zone_trip_update() argument
74 int trip_id = thermal_zone_trip_id(tz, trip); in thermal_zone_trip_update()
80 trend = get_tz_trend(tz, trip); in thermal_zone_trip_update()
82 if (tz->temperature >= trip->temperature) { in thermal_zone_trip_update()
84 trace_thermal_zone_trip(tz, trip_id, trip->type); in thermal_zone_trip_update()
87 dev_dbg(&tz->device, "Trip%d[type=%d,temp=%d]:trend=%d,throttle=%d\n", in thermal_zone_trip_update()
90 list_for_each_entry(instance, &tz->thermal_instances, tz_node) { in thermal_zone_trip_update()
106 tz->passive++; in thermal_zone_trip_update()
111 tz->passive--; in thermal_zone_trip_update()
123 * @tz: thermal_zone_device
132 static int step_wise_throttle(struct thermal_zone_device *tz, in step_wise_throttle() argument
137 lockdep_assert_held(&tz->lock); in step_wise_throttle()
139 thermal_zone_trip_update(tz, trip); in step_wise_throttle()
141 list_for_each_entry(instance, &tz->thermal_instances, tz_node) in step_wise_throttle()