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.
401 const struct thermal_trip *trip) in handle_critical_trips() argument
403 trace_thermal_zone_trip(tz, thermal_zone_trip_id(tz, trip), trip->type); in handle_critical_trips()
405 if (trip->type == THERMAL_TRIP_CRITICAL) in handle_critical_trips()
435 td->threshold = td->trip.temperature; in move_to_trips_high()
442 td->threshold = td->trip.temperature - td->trip.hysteresis; in move_to_trips_reached()
455 const struct thermal_trip *trip, in thermal_governor_trip_crossed() argument
458 if (trip->type == THERMAL_TRIP_HOT || trip->type == THERMAL_TRIP_CRITICAL) in thermal_governor_trip_crossed()
462 governor->trip_crossed(tz, trip, upward); in thermal_governor_trip_crossed()
470 const struct thermal_trip *trip = &td->trip; in thermal_trip_crossed() local
473 if (trip->type == THERMAL_TRIP_PASSIVE) in thermal_trip_crossed()
475 else if (trip->type == THERMAL_TRIP_CRITICAL || in thermal_trip_crossed()
476 trip->type == THERMAL_TRIP_HOT) in thermal_trip_crossed()
477 handle_critical_trips(tz, trip); in thermal_trip_crossed()
479 thermal_notify_tz_trip_up(tz, trip); in thermal_trip_crossed()
480 thermal_debug_tz_trip_up(tz, trip); in thermal_trip_crossed()
482 if (trip->type == THERMAL_TRIP_PASSIVE) { in thermal_trip_crossed()
486 thermal_notify_tz_trip_down(tz, trip); in thermal_trip_crossed()
487 thermal_debug_tz_trip_down(tz, trip); in thermal_trip_crossed()
489 thermal_governor_trip_crossed(governor, tz, trip, upward); in thermal_trip_crossed()
493 struct thermal_trip *trip, int hyst) in thermal_zone_set_trip_hyst() argument
495 struct thermal_trip_desc *td = trip_to_trip_desc(trip); in thermal_zone_set_trip_hyst()
497 WRITE_ONCE(trip->hysteresis, hyst); in thermal_zone_set_trip_hyst()
498 thermal_notify_tz_trip_change(tz, trip); in thermal_zone_set_trip_hyst()
500 * If the zone temperature is above or at the trip tmperature, the trip in thermal_zone_set_trip_hyst()
510 struct thermal_trip *trip, int temp) in thermal_zone_set_trip_temp() argument
512 struct thermal_trip_desc *td = trip_to_trip_desc(trip); in thermal_zone_set_trip_temp()
513 int old_temp = trip->temperature; in thermal_zone_set_trip_temp()
518 WRITE_ONCE(trip->temperature, temp); in thermal_zone_set_trip_temp()
519 thermal_notify_tz_trip_change(tz, trip); in thermal_zone_set_trip_temp()
523 * The trip was invalid before the change, so move it to the in thermal_zone_set_trip_temp()
526 * mitigation needs to be started, the trip will be moved to the in thermal_zone_set_trip_temp()
535 * If the trip is in the trips_reached list, mitigation is under in thermal_zone_set_trip_temp()
536 * way for it and it needs to be stopped because the trip is in thermal_zone_set_trip_temp()
547 * The trip stays on its current list, but its threshold needs to be in thermal_zone_set_trip_temp()
593 * Set the "low" value below the current trip threshold in case in thermal_zone_handle_trips()
811 * @td: descriptor of the trip point to bind @cdev to
813 * @cool_spec: cooling specification for the trip point and @cdev
815 * This interface function bind a thermal cooling device to the certain trip
849 dev->trip = &td->trip; in thermal_bind_cdev_to_trip()
921 * @td: descriptor of the trip point to unbind @cdev from
925 * trip point of a thermal zone device.
981 dev_err(&tz->device, "binding cdev %s to trip %d failed: %d\n", in print_bind_err_msg()
982 cdev->type, thermal_zone_trip_id(tz, &td->trip), ret); in print_bind_err_msg()
1002 if (!tz->ops.should_bind(tz, &td->trip, cdev, &c)) in __thermal_zone_cdev_bind()
1375 const struct thermal_trip *trip = &td->trip; in thermal_zone_get_crit_temp() local
1377 if (trip->type == THERMAL_TRIP_CRITICAL) { in thermal_zone_get_crit_temp()
1378 *temp = trip->temperature; in thermal_zone_get_crit_temp()
1417 if (td->trip.temperature != THERMAL_TEMP_INVALID) in thermal_zone_device_init()
1422 if (td->trip.temperature == THERMAL_TEMP_INVALID) in thermal_zone_device_init()
1473 * @num_trips: the number of trip points the thermal zone support
1480 * whether trip points have been crossed (0 for interrupt
1502 const struct thermal_trip *trip = trips; in thermal_zone_device_register_with_trips() local
1575 td->trip = *trip++; in thermal_zone_device_register_with_trips()