Lines Matching refs:trip
308 static void handle_non_critical_trips(struct thermal_zone_device *tz, int trip) in handle_non_critical_trips() argument
310 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips()
311 def_governor->throttle(tz, trip); in handle_non_critical_trips()
330 int trip, int trip_temp, enum thermal_trip_type trip_type) in handle_critical_trips() argument
336 trace_thermal_zone_trip(tz, trip, trip_type); in handle_critical_trips()
344 static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) in handle_thermal_trip() argument
350 if (test_bit(trip, &tz->trips_disabled)) in handle_thermal_trip()
353 tz->ops->get_trip_temp(tz, trip, &trip_temp); in handle_thermal_trip()
354 tz->ops->get_trip_type(tz, trip, &type); in handle_thermal_trip()
356 tz->ops->get_trip_hyst(tz, trip, &hyst); in handle_thermal_trip()
361 thermal_notify_tz_trip_up(tz->id, trip, in handle_thermal_trip()
365 thermal_notify_tz_trip_down(tz->id, trip, in handle_thermal_trip()
370 handle_critical_trips(tz, trip, trip_temp, type); in handle_thermal_trip()
372 handle_non_critical_trips(tz, trip); in handle_thermal_trip()
597 int trip, in thermal_zone_bind_cooling_device() argument
609 if (trip >= tz->num_trips || trip < 0) in thermal_zone_bind_cooling_device()
640 dev->trip = trip; in thermal_zone_bind_cooling_device()
679 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_bind_cooling_device()
722 int trip, in thermal_zone_unbind_cooling_device() argument
730 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_unbind_cooling_device()