Lines Matching refs:tz
71 static void update_passive_instance(struct thermal_zone_device *tz,
79 tz->passive += value;
82 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip_id)
84 const struct thermal_trip *trip = &tz->trips[trip_id];
90 trend = get_tz_trend(tz, trip_id);
92 if (tz->temperature >= trip->temperature) {
94 trace_thermal_zone_trip(tz, trip_id, trip->type);
97 dev_dbg(&tz->device, "Trip%d[type=%d,temp=%d]:trend=%d,throttle=%d\n",
100 list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
115 update_passive_instance(tz, trip->type, 1);
119 update_passive_instance(tz, trip->type, -1);
130 * @tz: thermal_zone_device
139 static int step_wise_throttle(struct thermal_zone_device *tz, int trip)
143 lockdep_assert_held(&tz->lock);
145 thermal_zone_trip_update(tz, trip);
147 list_for_each_entry(instance, &tz->thermal_instances, tz_node)