Lines Matching refs:tz
71 static void update_passive_instance(struct thermal_zone_device *tz, in update_passive_instance() argument
79 tz->passive += value; in update_passive_instance()
82 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip_id) in thermal_zone_trip_update() argument
90 __thermal_zone_get_trip(tz, trip_id, &trip); in thermal_zone_trip_update()
92 trend = get_tz_trend(tz, trip_id); in thermal_zone_trip_update()
94 if (tz->temperature >= trip.temperature) { in thermal_zone_trip_update()
96 trace_thermal_zone_trip(tz, trip_id, trip.type); in thermal_zone_trip_update()
99 dev_dbg(&tz->device, "Trip%d[type=%d,temp=%d]:trend=%d,throttle=%d\n", in thermal_zone_trip_update()
102 list_for_each_entry(instance, &tz->thermal_instances, tz_node) { in thermal_zone_trip_update()
117 update_passive_instance(tz, trip.type, 1); in thermal_zone_trip_update()
121 update_passive_instance(tz, trip.type, -1); in thermal_zone_trip_update()
141 static int step_wise_throttle(struct thermal_zone_device *tz, int trip) in step_wise_throttle() argument
145 lockdep_assert_held(&tz->lock); in step_wise_throttle()
147 thermal_zone_trip_update(tz, trip); in step_wise_throttle()
149 list_for_each_entry(instance, &tz->thermal_instances, tz_node) in step_wise_throttle()