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