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