Lines Matching refs:tz
26 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update() argument
31 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
32 tz->ops->get_trip_hyst(tz, trip, &trip_hyst); in thermal_zone_trip_update()
34 dev_dbg(&tz->device, "Trip%d[temp=%d]:temp=%d:hyst=%d\n", in thermal_zone_trip_update()
35 trip, trip_temp, tz->temperature, in thermal_zone_trip_update()
38 mutex_lock(&tz->lock); in thermal_zone_trip_update()
40 list_for_each_entry(instance, &tz->thermal_instances, tz_node) { in thermal_zone_trip_update()
59 if (instance->target == 0 && tz->temperature >= trip_temp) in thermal_zone_trip_update()
62 tz->temperature < trip_temp - trip_hyst) in thermal_zone_trip_update()
71 mutex_unlock(&tz->lock); in thermal_zone_trip_update()
101 static int bang_bang_control(struct thermal_zone_device *tz, int trip) in bang_bang_control() argument
105 thermal_zone_trip_update(tz, trip); in bang_bang_control()
107 mutex_lock(&tz->lock); in bang_bang_control()
109 list_for_each_entry(instance, &tz->thermal_instances, tz_node) in bang_bang_control()
112 mutex_unlock(&tz->lock); in bang_bang_control()