Lines Matching full:trip
288 * - Critical trip point will cause a system shutdown.
310 static void handle_non_critical_trips(struct thermal_zone_device *tz, int trip) in handle_non_critical_trips() argument
312 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips()
313 def_governor->throttle(tz, trip); in handle_non_critical_trips()
332 int trip, int trip_temp, enum thermal_trip_type trip_type) in handle_critical_trips() argument
338 trace_thermal_zone_trip(tz, trip, trip_type); in handle_critical_trips()
348 struct thermal_trip trip; in handle_thermal_trip() local
350 /* Ignore disabled trip points */ in handle_thermal_trip()
354 __thermal_zone_get_trip(tz, trip_id, &trip); in handle_thermal_trip()
356 if (trip.temperature == THERMAL_TEMP_INVALID) in handle_thermal_trip()
360 if (tz->last_temperature < trip.temperature && in handle_thermal_trip()
361 tz->temperature >= trip.temperature) in handle_thermal_trip()
364 if (tz->last_temperature >= trip.temperature && in handle_thermal_trip()
365 tz->temperature < (trip.temperature - trip.hysteresis)) in handle_thermal_trip()
370 if (trip.type == THERMAL_TRIP_CRITICAL || trip.type == THERMAL_TRIP_HOT) in handle_thermal_trip()
371 handle_critical_trips(tz, trip_id, trip.temperature, trip.type); in handle_thermal_trip()
609 * @trip: indicates which trip point the cooling devices is
612 * @upper: the Maximum cooling state for this trip point.
615 * @lower: the Minimum cooling state can be used for this trip point.
622 * This interface function bind a thermal cooling device to the certain trip
629 int trip, in thermal_zone_bind_cooling_device() argument
641 if (trip >= tz->num_trips || trip < 0) in thermal_zone_bind_cooling_device()
674 dev->trip = trip; in thermal_zone_bind_cooling_device()
714 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_bind_cooling_device()
746 * @trip: indicates which trip point the cooling devices is
751 * trip point of a thermal zone device.
757 int trip, in thermal_zone_unbind_cooling_device() argument
765 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_unbind_cooling_device()
1204 * @num_trips: the number of trip points the thermal zone support
1205 * @mask: a bit string indicating the writeablility of trip points
1212 * whether trip points have been crossed (0 for interrupt
1249 * Max trip count can't exceed 31 as the "mask >> num_trips" condition. in thermal_zone_device_register_with_trips()
1254 * E.g. mask = 0x80000000 for trip id 31 to be RW. Then in thermal_zone_device_register_with_trips()
1332 struct thermal_trip trip; in thermal_zone_device_register_with_trips() local
1334 result = thermal_zone_get_trip(tz, count, &trip); in thermal_zone_device_register_with_trips()
1335 if (result || !trip.temperature) in thermal_zone_device_register_with_trips()