Lines Matching full:trip
293 if (td->trip.type == THERMAL_TRIP_CRITICAL && in thermal_zone_broken_disable()
294 td->trip.temperature > THERMAL_TEMP_INVALID) { in thermal_zone_broken_disable()
296 "Disabled thermal zone with critical trip point\n"); in thermal_zone_broken_disable()
310 * - Critical trip point will cause a system shutdown.
406 const struct thermal_trip *trip) in handle_critical_trips() argument
408 trace_thermal_zone_trip(tz, thermal_zone_trip_id(tz, trip), trip->type); in handle_critical_trips()
410 if (trip->type == THERMAL_TRIP_CRITICAL) in handle_critical_trips()
440 td->threshold = td->trip.temperature; in move_to_trips_high()
447 td->threshold = td->trip.temperature - td->trip.hysteresis; in move_to_trips_reached()
460 const struct thermal_trip *trip, in thermal_governor_trip_crossed() argument
463 if (trip->type == THERMAL_TRIP_HOT || trip->type == THERMAL_TRIP_CRITICAL) in thermal_governor_trip_crossed()
467 governor->trip_crossed(tz, trip, upward); in thermal_governor_trip_crossed()
475 const struct thermal_trip *trip = &td->trip; in thermal_trip_crossed() local
478 if (trip->type == THERMAL_TRIP_PASSIVE) in thermal_trip_crossed()
480 else if (trip->type == THERMAL_TRIP_CRITICAL || in thermal_trip_crossed()
481 trip->type == THERMAL_TRIP_HOT) in thermal_trip_crossed()
482 handle_critical_trips(tz, trip); in thermal_trip_crossed()
484 thermal_notify_tz_trip_up(tz, trip); in thermal_trip_crossed()
485 thermal_debug_tz_trip_up(tz, trip); in thermal_trip_crossed()
487 if (trip->type == THERMAL_TRIP_PASSIVE) { in thermal_trip_crossed()
491 thermal_notify_tz_trip_down(tz, trip); in thermal_trip_crossed()
492 thermal_debug_tz_trip_down(tz, trip); in thermal_trip_crossed()
494 thermal_governor_trip_crossed(governor, tz, trip, upward); in thermal_trip_crossed()
498 struct thermal_trip *trip, int hyst) in thermal_zone_set_trip_hyst() argument
500 struct thermal_trip_desc *td = trip_to_trip_desc(trip); in thermal_zone_set_trip_hyst()
502 WRITE_ONCE(trip->hysteresis, hyst); in thermal_zone_set_trip_hyst()
503 thermal_notify_tz_trip_change(tz, trip); in thermal_zone_set_trip_hyst()
505 * If the zone temperature is above or at the trip temperature, the trip in thermal_zone_set_trip_hyst()
515 struct thermal_trip *trip, int temp) in thermal_zone_set_trip_temp() argument
517 struct thermal_trip_desc *td = trip_to_trip_desc(trip); in thermal_zone_set_trip_temp()
518 int old_temp = trip->temperature; in thermal_zone_set_trip_temp()
523 WRITE_ONCE(trip->temperature, temp); in thermal_zone_set_trip_temp()
524 thermal_notify_tz_trip_change(tz, trip); in thermal_zone_set_trip_temp()
528 * The trip was invalid before the change, so move it to the in thermal_zone_set_trip_temp()
531 * mitigation needs to be started, the trip will be moved to the in thermal_zone_set_trip_temp()
540 * If the trip is in the trips_reached list, mitigation is under in thermal_zone_set_trip_temp()
541 * way for it and it needs to be stopped because the trip is in thermal_zone_set_trip_temp()
552 * The trip stays on its current list, but its threshold needs to be in thermal_zone_set_trip_temp()
598 * Set the "low" value below the current trip threshold in case in thermal_zone_handle_trips()
810 * @td: descriptor of the trip point to bind @cdev to
812 * @cool_spec: cooling specification for the trip point and @cdev
814 * This interface function bind a thermal cooling device to the certain trip
848 dev->trip = &td->trip; in thermal_bind_cdev_to_trip()
920 * @td: descriptor of the trip point to unbind @cdev from
924 * trip point of a thermal zone device.
986 dev_err(&tz->device, "binding cdev %s to trip %d failed: %d\n", in print_bind_err_msg()
987 cdev->type, thermal_zone_trip_id(tz, &td->trip), ret); in print_bind_err_msg()
1007 if (!tz->ops.should_bind(tz, &td->trip, cdev, &c)) in __thermal_zone_cdev_bind()
1379 const struct thermal_trip *trip = &td->trip; in thermal_zone_get_crit_temp() local
1381 if (trip->type == THERMAL_TRIP_CRITICAL) { in thermal_zone_get_crit_temp()
1382 *temp = trip->temperature; in thermal_zone_get_crit_temp()
1421 if (td->trip.temperature != THERMAL_TEMP_INVALID) in thermal_zone_device_init()
1426 if (td->trip.temperature == THERMAL_TEMP_INVALID) in thermal_zone_device_init()
1477 * @num_trips: the number of trip points the thermal zone support
1484 * whether trip points have been crossed (0 for interrupt
1506 const struct thermal_trip *trip = trips; in thermal_zone_device_register_with_trips() local
1583 td->trip = *trip++; in thermal_zone_device_register_with_trips()