Lines Matching full:trip
52 * 1.An invalid trip point becomes invalid or a valid trip point becomes invalid
60 "ACPI thermal trip point %s changed\n" \
66 MODULE_PARM_DESC(act, "Disable or override all lowest active trip points.");
70 MODULE_PARM_DESC(crt, "Disable or lower all critical trip points.");
82 MODULE_PARM_DESC(psv, "Disable or override all passive trip points.");
92 struct acpi_thermal_trip trip; member
99 struct acpi_thermal_trip trip; member
187 active = container_of(acpi_trip, struct acpi_thermal_active, trip); in active_trip_index()
222 const struct thermal_trip *trip) in acpi_thermal_update_trip() argument
224 struct acpi_thermal_trip *acpi_trip = trip->priv; in acpi_thermal_update_trip()
226 if (trip->type == THERMAL_TRIP_PASSIVE) { in acpi_thermal_update_trip()
272 const struct thermal_trip *trip) in acpi_thermal_update_trip_devices() argument
274 struct acpi_thermal_trip *acpi_trip = trip->priv; in acpi_thermal_update_trip_devices()
275 int index = trip->type == THERMAL_TRIP_PASSIVE ? in acpi_thermal_update_trip_devices()
290 static int acpi_thermal_adjust_trip(struct thermal_trip *trip, void *data) in acpi_thermal_adjust_trip() argument
292 struct acpi_thermal_trip *acpi_trip = trip->priv; in acpi_thermal_adjust_trip()
301 acpi_thermal_update_trip(tz, trip); in acpi_thermal_adjust_trip()
303 acpi_thermal_update_trip_devices(tz, trip); in acpi_thermal_adjust_trip()
310 thermal_zone_set_trip_temp(tz->thermal_zone, trip, temp); in acpi_thermal_adjust_trip()
327 * Use thermal_zone_for_each_trip() to carry out the trip points in acpi_thermal_trips_update()
329 * trip point temperatures and to prevent thermal_zone_device_update() in acpi_thermal_trips_update()
421 acpi_trip = &tz->trips.passive.trip; in acpi_thermal_init_trip()
432 acpi_trip = &tz->trips.active[index].trip; in acpi_thermal_init_trip()
471 tz->trips.active[i].trip.temp_dk = THERMAL_TEMP_INVALID; in acpi_thermal_get_trip_points()
496 const struct thermal_trip *trip, in thermal_get_trend() argument
503 if (!tz || !trip) in thermal_get_trend()
506 acpi_trip = trip->priv; in thermal_get_trend()
510 switch (trip->type) { in thermal_get_trend()
527 if (t <= trip->temperature) in thermal_get_trend()
567 static int bind_unbind_cdev_cb(struct thermal_trip *trip, void *arg) in bind_unbind_cdev_cb() argument
569 struct acpi_thermal_trip *acpi_trip = trip->priv; in bind_unbind_cdev_cb()
590 ret = thermal_bind_cdev_to_trip(thermal, trip, cdev, in bind_unbind_cdev_cb()
597 thermal_unbind_cdev_from_trip(thermal, trip, cdev); in bind_unbind_cdev_cb()
778 * critical trip point with a value being a multiple of 0.5 degree Celsius.
817 acpi_handle_list_free(&tz->trips.passive.trip.devices); in acpi_thermal_free_thermal_zone()
819 acpi_handle_list_free(&tz->trips.active[i].trip.devices); in acpi_thermal_free_thermal_zone()
827 struct thermal_trip *trip; in acpi_thermal_add() local
850 /* Get trip points [_CRT, _PSV, etc.] (required). */ in acpi_thermal_add()
862 pr_warn(FW_BUG "No valid trip points!\n"); in acpi_thermal_add()
884 trip = kcalloc(trip_count, sizeof(*trip), GFP_KERNEL); in acpi_thermal_add()
885 if (!trip) { in acpi_thermal_add()
890 tz->trip_table = trip; in acpi_thermal_add()
893 trip->type = THERMAL_TRIP_CRITICAL; in acpi_thermal_add()
894 trip->temperature = acpi_thermal_temp(tz, crit_temp); in acpi_thermal_add()
895 trip++; in acpi_thermal_add()
899 trip->type = THERMAL_TRIP_HOT; in acpi_thermal_add()
900 trip->temperature = acpi_thermal_temp(tz, hot_temp); in acpi_thermal_add()
901 trip++; in acpi_thermal_add()
904 acpi_trip = &tz->trips.passive.trip; in acpi_thermal_add()
908 trip->type = THERMAL_TRIP_PASSIVE; in acpi_thermal_add()
909 trip->temperature = acpi_thermal_temp(tz, acpi_trip->temp_dk); in acpi_thermal_add()
910 trip->priv = acpi_trip; in acpi_thermal_add()
911 trip++; in acpi_thermal_add()
915 acpi_trip = &tz->trips.active[i].trip; in acpi_thermal_add()
920 trip->type = THERMAL_TRIP_ACTIVE; in acpi_thermal_add()
921 trip->temperature = acpi_thermal_temp(tz, acpi_trip->temp_dk); in acpi_thermal_add()
922 trip->priv = acpi_trip; in acpi_thermal_add()
923 trip++; in acpi_thermal_add()
994 struct acpi_thermal_trip *acpi_trip = &tz->trips.active[i].trip; in acpi_thermal_resume()
1035 pr_notice("%s detected: disabling all active thermal trip points\n", in thermal_act()
1044 pr_notice("%s detected: disabling all critical thermal trip point actions.\n", in thermal_nocrt()
1063 pr_notice("%s detected: disabling all passive thermal trip points\n", in thermal_psv()