Lines Matching refs:tz
16 static int thermal_zone_trip_update(struct thermal_zone_device *tz, int trip_index)
18 const struct thermal_trip *trip = &tz->trips[trip_index];
22 dev_info_once(&tz->device,
23 "Zero hysteresis value for thermal zone %s\n", tz->type);
25 dev_dbg(&tz->device, "Trip%d[temp=%d]:temp=%d:hyst=%d\n",
26 trip_index, trip->temperature, tz->temperature,
29 list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
48 if (instance->target == 0 && tz->temperature >= trip->temperature)
51 tz->temperature <= trip->temperature - trip->hysteresis)
67 * @tz: thermal_zone_device
92 static int bang_bang_control(struct thermal_zone_device *tz, int trip)
97 lockdep_assert_held(&tz->lock);
99 ret = thermal_zone_trip_update(tz, trip);
103 list_for_each_entry(instance, &tz->thermal_instances, tz_node)