Lines Matching refs:trip
321 static void handle_non_critical_trips(struct thermal_zone_device *tz, int trip) in handle_non_critical_trips() argument
323 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips()
324 def_governor->throttle(tz, trip); in handle_non_critical_trips()
343 int trip, enum thermal_trip_type trip_type) in handle_critical_trips() argument
347 tz->ops->get_trip_temp(tz, trip, &trip_temp); in handle_critical_trips()
353 trace_thermal_zone_trip(tz, trip, trip_type); in handle_critical_trips()
361 static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) in handle_thermal_trip() argument
367 if (test_bit(trip, &tz->trips_disabled)) in handle_thermal_trip()
370 tz->ops->get_trip_temp(tz, trip, &trip_temp); in handle_thermal_trip()
371 tz->ops->get_trip_type(tz, trip, &type); in handle_thermal_trip()
373 tz->ops->get_trip_hyst(tz, trip, &hyst); in handle_thermal_trip()
378 thermal_notify_tz_trip_up(tz->id, trip, in handle_thermal_trip()
382 thermal_notify_tz_trip_down(tz->id, trip, in handle_thermal_trip()
387 handle_critical_trips(tz, trip, type); in handle_thermal_trip()
389 handle_non_critical_trips(tz, trip); in handle_thermal_trip()
621 int trip, in thermal_zone_bind_cooling_device() argument
633 if (trip >= tz->trips || trip < 0) in thermal_zone_bind_cooling_device()
664 dev->trip = trip; in thermal_zone_bind_cooling_device()
703 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_bind_cooling_device()
746 int trip, in thermal_zone_unbind_cooling_device() argument
754 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_unbind_cooling_device()