Lines Matching refs:trip
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
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()
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()
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()
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()