Lines Matching full:trip
286 * - Critical trip point will cause a system shutdown.
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
366 /* Ignore disabled trip points */ in handle_thermal_trip()
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()
381 thermal_notify_tz_trip_down(tz->id, trip); in handle_thermal_trip()
385 handle_critical_trips(tz, trip, type); in handle_thermal_trip()
387 handle_non_critical_trips(tz, trip); in handle_thermal_trip()
389 * Alright, we handled this trip successfully. in handle_thermal_trip()
597 * @trip: indicates which trip point the cooling devices is
600 * @upper: the Maximum cooling state for this trip point.
603 * @lower: the Minimum cooling state can be used for this trip point.
610 * This interface function bind a thermal cooling device to the certain trip
617 int trip, in thermal_zone_bind_cooling_device() argument
629 if (trip >= tz->trips || trip < 0) in thermal_zone_bind_cooling_device()
660 dev->trip = trip; in thermal_zone_bind_cooling_device()
699 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_bind_cooling_device()
731 * @trip: indicates which trip point the cooling devices is
736 * trip point of a thermal zone device.
742 int trip, in thermal_zone_unbind_cooling_device() argument
750 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_unbind_cooling_device()
1155 * @trips: the number of trip points the thermal zone support
1156 * @mask: a bit string indicating the writeablility of trip points
1163 * whether trip points have been crossed (0 for interrupt