Lines Matching full:tz
27 int for_each_thermal_trip(struct thermal_zone_device *tz, in for_each_thermal_trip() argument
34 for_each_trip_desc(tz, td) { in for_each_thermal_trip()
44 int thermal_zone_for_each_trip(struct thermal_zone_device *tz, in thermal_zone_for_each_trip() argument
48 guard(thermal_zone)(tz); in thermal_zone_for_each_trip()
50 return for_each_thermal_trip(tz, cb, data); in thermal_zone_for_each_trip()
54 void thermal_zone_set_trips(struct thermal_zone_device *tz, int low, int high) in thermal_zone_set_trips() argument
58 lockdep_assert_held(&tz->lock); in thermal_zone_set_trips()
60 if (!tz->ops.set_trips) in thermal_zone_set_trips()
64 if (tz->prev_low_trip == low && tz->prev_high_trip == high) in thermal_zone_set_trips()
67 tz->prev_low_trip = low; in thermal_zone_set_trips()
68 tz->prev_high_trip = high; in thermal_zone_set_trips()
70 dev_dbg(&tz->device, in thermal_zone_set_trips()
77 ret = tz->ops.set_trips(tz, low, high); in thermal_zone_set_trips()
79 dev_err(&tz->device, "Failed to set trips: %d\n", ret); in thermal_zone_set_trips()
82 int thermal_zone_trip_id(const struct thermal_zone_device *tz, in thermal_zone_trip_id() argument
89 return trip_to_trip_desc(trip) - tz->trips; in thermal_zone_trip_id()