Lines Matching refs:tz
16 static int thermal_zone_trip_update(struct thermal_zone_device *tz, int trip_id) in thermal_zone_trip_update() argument
22 ret = __thermal_zone_get_trip(tz, trip_id, &trip); in thermal_zone_trip_update()
29 dev_info_once(&tz->device, in thermal_zone_trip_update()
30 "Zero hysteresis value for thermal zone %s\n", tz->type); in thermal_zone_trip_update()
32 dev_dbg(&tz->device, "Trip%d[temp=%d]:temp=%d:hyst=%d\n", in thermal_zone_trip_update()
33 trip_id, trip.temperature, tz->temperature, 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.temperature) in thermal_zone_trip_update()
58 tz->temperature <= trip.temperature - trip.hysteresis) in thermal_zone_trip_update()
99 static int bang_bang_control(struct thermal_zone_device *tz, int trip) in bang_bang_control() argument
104 lockdep_assert_held(&tz->lock); in bang_bang_control()
106 ret = thermal_zone_trip_update(tz, trip); in bang_bang_control()
110 list_for_each_entry(instance, &tz->thermal_instances, tz_node) in bang_bang_control()