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