Lines Matching refs:tz
20 * @tz: thermal zone device
22 static int get_trip_level(struct thermal_zone_device *tz)
27 for (count = 0; count < tz->num_trips; count++) {
28 __thermal_zone_get_trip(tz, count, &trip);
29 if (tz->temperature < trip.temperature)
38 trace_thermal_zone_trip(tz, count - 1, trip.type);
43 static long get_target_state(struct thermal_zone_device *tz,
46 return (long)(percentage * level * cdev->max_state) / (100 * tz->num_trips);
51 * @tz: thermal_zone_device
68 static int fair_share_throttle(struct thermal_zone_device *tz, int trip_index)
70 const struct thermal_trip *trip = &tz->trips[trip_index];
74 int cur_trip_level = get_trip_level(tz);
76 lockdep_assert_held(&tz->lock);
78 list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
86 list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
98 instance->target = get_target_state(tz, cdev, percentage,