Lines Matching full:tz
16 static int thermal_zone_trip_update(struct thermal_zone_device *tz, in thermal_zone_trip_update() argument
19 int trip_index = thermal_zone_trip_id(tz, trip); in thermal_zone_trip_update()
23 dev_info_once(&tz->device, in thermal_zone_trip_update()
24 "Zero hysteresis value for thermal zone %s\n", tz->type); in thermal_zone_trip_update()
26 dev_dbg(&tz->device, "Trip%d[temp=%d]:temp=%d:hyst=%d\n", in thermal_zone_trip_update()
27 trip_index, trip->temperature, tz->temperature, in thermal_zone_trip_update()
30 list_for_each_entry(instance, &tz->thermal_instances, tz_node) { in thermal_zone_trip_update()
49 if (instance->target == 0 && tz->temperature >= trip->temperature) in thermal_zone_trip_update()
52 tz->temperature <= trip->temperature - trip->hysteresis) in thermal_zone_trip_update()
68 * @tz: thermal_zone_device
93 static int bang_bang_control(struct thermal_zone_device *tz, in bang_bang_control() argument
99 lockdep_assert_held(&tz->lock); in bang_bang_control()
101 ret = thermal_zone_trip_update(tz, trip); in bang_bang_control()
105 list_for_each_entry(instance, &tz->thermal_instances, tz_node) in bang_bang_control()