Lines Matching full:trip

291 		if (td->trip.type == THERMAL_TRIP_CRITICAL &&  in thermal_zone_broken_disable()
292 td->trip.temperature > THERMAL_TEMP_INVALID) { in thermal_zone_broken_disable()
294 "Disabled thermal zone with critical trip point\n"); in thermal_zone_broken_disable()
308 * - Critical trip point will cause a system shutdown.
404 const struct thermal_trip *trip) in handle_critical_trips() argument
406 trace_thermal_zone_trip(tz, thermal_zone_trip_id(tz, trip), trip->type); in handle_critical_trips()
408 if (trip->type == THERMAL_TRIP_CRITICAL) in handle_critical_trips()
438 td->threshold = td->trip.temperature; in move_to_trips_high()
445 td->threshold = td->trip.temperature - td->trip.hysteresis; in move_to_trips_reached()
458 const struct thermal_trip *trip, in thermal_governor_trip_crossed() argument
461 if (trip->type == THERMAL_TRIP_HOT || trip->type == THERMAL_TRIP_CRITICAL) in thermal_governor_trip_crossed()
465 governor->trip_crossed(tz, trip, upward); in thermal_governor_trip_crossed()
473 const struct thermal_trip *trip = &td->trip; in thermal_trip_crossed() local
476 if (trip->type == THERMAL_TRIP_PASSIVE) in thermal_trip_crossed()
478 else if (trip->type == THERMAL_TRIP_CRITICAL || in thermal_trip_crossed()
479 trip->type == THERMAL_TRIP_HOT) in thermal_trip_crossed()
480 handle_critical_trips(tz, trip); in thermal_trip_crossed()
482 thermal_notify_tz_trip_up(tz, trip); in thermal_trip_crossed()
483 thermal_debug_tz_trip_up(tz, trip); in thermal_trip_crossed()
485 if (trip->type == THERMAL_TRIP_PASSIVE) { in thermal_trip_crossed()
489 thermal_notify_tz_trip_down(tz, trip); in thermal_trip_crossed()
490 thermal_debug_tz_trip_down(tz, trip); in thermal_trip_crossed()
492 thermal_governor_trip_crossed(governor, tz, trip, upward); in thermal_trip_crossed()
496 struct thermal_trip *trip, int hyst) in thermal_zone_set_trip_hyst() argument
498 struct thermal_trip_desc *td = trip_to_trip_desc(trip); in thermal_zone_set_trip_hyst()
500 WRITE_ONCE(trip->hysteresis, hyst); in thermal_zone_set_trip_hyst()
501 thermal_notify_tz_trip_change(tz, trip); in thermal_zone_set_trip_hyst()
503 * If the zone temperature is above or at the trip tmperature, the trip in thermal_zone_set_trip_hyst()
513 struct thermal_trip *trip, int temp) in thermal_zone_set_trip_temp() argument
515 struct thermal_trip_desc *td = trip_to_trip_desc(trip); in thermal_zone_set_trip_temp()
516 int old_temp = trip->temperature; in thermal_zone_set_trip_temp()
521 WRITE_ONCE(trip->temperature, temp); in thermal_zone_set_trip_temp()
522 thermal_notify_tz_trip_change(tz, trip); in thermal_zone_set_trip_temp()
526 * The trip was invalid before the change, so move it to the in thermal_zone_set_trip_temp()
529 * mitigation needs to be started, the trip will be moved to the in thermal_zone_set_trip_temp()
538 * If the trip is in the trips_reached list, mitigation is under in thermal_zone_set_trip_temp()
539 * way for it and it needs to be stopped because the trip is in thermal_zone_set_trip_temp()
550 * The trip stays on its current list, but its threshold needs to be in thermal_zone_set_trip_temp()
596 * Set the "low" value below the current trip threshold in case in thermal_zone_handle_trips()
814 * @td: descriptor of the trip point to bind @cdev to
816 * @cool_spec: cooling specification for the trip point and @cdev
818 * This interface function bind a thermal cooling device to the certain trip
852 dev->trip = &td->trip; in thermal_bind_cdev_to_trip()
924 * @td: descriptor of the trip point to unbind @cdev from
928 * trip point of a thermal zone device.
984 dev_err(&tz->device, "binding cdev %s to trip %d failed: %d\n", in print_bind_err_msg()
985 cdev->type, thermal_zone_trip_id(tz, &td->trip), ret); in print_bind_err_msg()
1005 if (!tz->ops.should_bind(tz, &td->trip, cdev, &c)) in __thermal_zone_cdev_bind()
1378 const struct thermal_trip *trip = &td->trip; in thermal_zone_get_crit_temp() local
1380 if (trip->type == THERMAL_TRIP_CRITICAL) { in thermal_zone_get_crit_temp()
1381 *temp = trip->temperature; in thermal_zone_get_crit_temp()
1420 if (td->trip.temperature != THERMAL_TEMP_INVALID) in thermal_zone_device_init()
1425 if (td->trip.temperature == THERMAL_TEMP_INVALID) in thermal_zone_device_init()
1476 * @num_trips: the number of trip points the thermal zone support
1483 * whether trip points have been crossed (0 for interrupt
1505 const struct thermal_trip *trip = trips; in thermal_zone_device_register_with_trips() local
1578 td->trip = *trip++; in thermal_zone_device_register_with_trips()