Lines Matching full:trip
289 * - Critical trip point will cause a system shutdown.
329 static void handle_non_critical_trips(struct thermal_zone_device *tz, int trip) in handle_non_critical_trips() argument
331 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips()
332 def_governor->throttle(tz, trip); in handle_non_critical_trips()
384 int trip, enum thermal_trip_type trip_type) in handle_critical_trips() argument
388 tz->ops->get_trip_temp(tz, trip, &trip_temp); in handle_critical_trips()
394 trace_thermal_zone_trip(tz, trip, trip_type); in handle_critical_trips()
397 tz->ops->notify(tz, trip, trip_type); in handle_critical_trips()
417 static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) in handle_thermal_trip() argument
422 /* Ignore disabled trip points */ in handle_thermal_trip()
423 if (test_bit(trip, &tz->trips_disabled)) in handle_thermal_trip()
426 tz->ops->get_trip_temp(tz, trip, &trip_temp); in handle_thermal_trip()
427 tz->ops->get_trip_type(tz, trip, &type); in handle_thermal_trip()
429 tz->ops->get_trip_hyst(tz, trip, &hyst); in handle_thermal_trip()
434 thermal_notify_tz_trip_up(tz->id, trip); in handle_thermal_trip()
437 thermal_notify_tz_trip_down(tz->id, trip); in handle_thermal_trip()
441 handle_critical_trips(tz, trip, type); in handle_thermal_trip()
443 handle_non_critical_trips(tz, trip); in handle_thermal_trip()
445 * Alright, we handled this trip successfully. in handle_thermal_trip()
573 * @trip: indicates which trip point has been crossed
575 * This function handles the trip events from sensor drivers. It starts
577 * For CRITICAL and HOT trip points, this notifies the respective drivers,
578 * and does actual throttling for other trip points i.e ACTIVE and PASSIVE.
582 void thermal_notify_framework(struct thermal_zone_device *tz, int trip) in thermal_notify_framework() argument
584 handle_thermal_trip(tz, trip); in thermal_notify_framework()
801 * @trip: indicates which trip point the cooling devices is
804 * @upper: the Maximum cooling state for this trip point.
807 * @lower: the Minimum cooling state can be used for this trip point.
814 * This interface function bind a thermal cooling device to the certain trip
821 int trip, in thermal_zone_bind_cooling_device() argument
833 if (trip >= tz->trips || (trip < 0 && trip != THERMAL_TRIPS_NONE)) in thermal_zone_bind_cooling_device()
864 dev->trip = trip; in thermal_zone_bind_cooling_device()
903 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_bind_cooling_device()
935 * @trip: indicates which trip point the cooling devices is
940 * trip point of a thermal zone device.
946 int trip, in thermal_zone_unbind_cooling_device() argument
954 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_unbind_cooling_device()
1352 * @trips: the number of trip points the thermal zone support
1353 * @mask: a bit string indicating the writeablility of trip points
1360 * whether trip points have been crossed (0 for interrupt
1453 /* Check for bogus trip points */ in thermal_zone_device_register()