Lines Matching full:tz
16 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update() argument
21 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update()
23 if (!tz->ops->get_trip_hyst) { in thermal_zone_trip_update()
25 "running with default hysteresis zero\n", tz->type); in thermal_zone_trip_update()
28 tz->ops->get_trip_hyst(tz, trip, &trip_hyst); in thermal_zone_trip_update()
30 dev_dbg(&tz->device, "Trip%d[temp=%d]:temp=%d:hyst=%d\n", in thermal_zone_trip_update()
31 trip, trip_temp, tz->temperature, in thermal_zone_trip_update()
34 mutex_lock(&tz->lock); in thermal_zone_trip_update()
36 list_for_each_entry(instance, &tz->thermal_instances, tz_node) { in thermal_zone_trip_update()
55 if (instance->target == 0 && tz->temperature >= trip_temp) in thermal_zone_trip_update()
58 tz->temperature <= trip_temp - trip_hyst) in thermal_zone_trip_update()
69 mutex_unlock(&tz->lock); in thermal_zone_trip_update()
74 * @tz: thermal_zone_device
99 static int bang_bang_control(struct thermal_zone_device *tz, int trip) in bang_bang_control() argument
103 thermal_zone_trip_update(tz, trip); in bang_bang_control()
105 mutex_lock(&tz->lock); in bang_bang_control()
107 list_for_each_entry(instance, &tz->thermal_instances, tz_node) in bang_bang_control()
110 mutex_unlock(&tz->lock); in bang_bang_control()