Lines Matching refs:trip

324 static void handle_non_critical_trips(struct thermal_zone_device *tz, int trip)  in handle_non_critical_trips()  argument
326 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips()
327 def_governor->throttle(tz, trip); in handle_non_critical_trips()
379 int trip, enum thermal_trip_type trip_type) in handle_critical_trips() argument
383 tz->ops->get_trip_temp(tz, trip, &trip_temp); in handle_critical_trips()
389 trace_thermal_zone_trip(tz, trip, trip_type); in handle_critical_trips()
392 tz->ops->notify(tz, trip, trip_type); in handle_critical_trips()
412 static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) in handle_thermal_trip() argument
417 if (test_bit(trip, &tz->trips_disabled)) in handle_thermal_trip()
420 tz->ops->get_trip_type(tz, trip, &type); in handle_thermal_trip()
423 handle_critical_trips(tz, trip, type); in handle_thermal_trip()
425 handle_non_critical_trips(tz, trip); in handle_thermal_trip()
508 void thermal_notify_framework(struct thermal_zone_device *tz, int trip) in thermal_notify_framework() argument
510 handle_thermal_trip(tz, trip); in thermal_notify_framework()
682 int trip, in thermal_zone_bind_cooling_device() argument
694 if (trip >= tz->trips || (trip < 0 && trip != THERMAL_TRIPS_NONE)) in thermal_zone_bind_cooling_device()
725 dev->trip = trip; in thermal_zone_bind_cooling_device()
764 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_bind_cooling_device()
807 int trip, in thermal_zone_unbind_cooling_device() argument
815 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_unbind_cooling_device()