Lines Matching full:trip
54 * 1.An invalid trip point becomes invalid or a valid trip point becomes invalid
62 "ACPI thermal trip point %s changed\n" \
68 MODULE_PARM_DESC(act, "Disable or override all lowest active trip points.");
72 MODULE_PARM_DESC(crt, "Disable or lower all critical trip points.");
84 MODULE_PARM_DESC(psv, "Disable or override all passive trip points.");
94 struct acpi_thermal_trip trip; member
101 struct acpi_thermal_trip trip; member
194 active = container_of(acpi_trip, struct acpi_thermal_active, trip); in active_trip_index()
229 const struct thermal_trip *trip) in acpi_thermal_update_trip() argument
231 struct acpi_thermal_trip *acpi_trip = trip->priv; in acpi_thermal_update_trip()
233 if (trip->type == THERMAL_TRIP_PASSIVE) { in acpi_thermal_update_trip()
279 const struct thermal_trip *trip) in acpi_thermal_update_trip_devices() argument
281 struct acpi_thermal_trip *acpi_trip = trip->priv; in acpi_thermal_update_trip_devices()
282 int index = trip->type == THERMAL_TRIP_PASSIVE ? in acpi_thermal_update_trip_devices()
297 static int acpi_thermal_adjust_trip(struct thermal_trip *trip, void *data) in acpi_thermal_adjust_trip() argument
299 struct acpi_thermal_trip *acpi_trip = trip->priv; in acpi_thermal_adjust_trip()
308 acpi_thermal_update_trip(tz, trip); in acpi_thermal_adjust_trip()
310 acpi_thermal_update_trip_devices(tz, trip); in acpi_thermal_adjust_trip()
317 thermal_zone_set_trip_temp(tz->thermal_zone, trip, temp); in acpi_thermal_adjust_trip()
334 * Use thermal_zone_for_each_trip() to carry out the trip points in acpi_thermal_trips_update()
336 * trip point temperatures and to prevent thermal_zone_device_update() in acpi_thermal_trips_update()
428 acpi_trip = &tz->trips.passive.trip; in acpi_thermal_init_trip()
439 acpi_trip = &tz->trips.active[index].trip; in acpi_thermal_init_trip()
473 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()
562 const struct thermal_trip *trip, in acpi_thermal_should_bind_cdev() argument
566 struct acpi_thermal_trip *acpi_trip = trip->priv; in acpi_thermal_should_bind_cdev()
734 * critical trip point with a value being a multiple of 0.5 degree Celsius.
773 acpi_handle_list_free(&tz->trips.passive.trip.devices); in acpi_thermal_free_thermal_zone()
775 acpi_handle_list_free(&tz->trips.active[i].trip.devices); in acpi_thermal_free_thermal_zone()
784 struct thermal_trip *trip; in acpi_thermal_add() local
806 /* Get trip points [_CRT, _PSV, etc.] (required). */ in acpi_thermal_add()
829 trip = trip_table; in acpi_thermal_add()
832 trip->type = THERMAL_TRIP_CRITICAL; in acpi_thermal_add()
833 trip->temperature = acpi_thermal_temp(tz, crit_temp); in acpi_thermal_add()
834 trip++; in acpi_thermal_add()
838 trip->type = THERMAL_TRIP_HOT; in acpi_thermal_add()
839 trip->temperature = acpi_thermal_temp(tz, hot_temp); in acpi_thermal_add()
840 trip++; in acpi_thermal_add()
843 acpi_trip = &tz->trips.passive.trip; in acpi_thermal_add()
847 trip->type = THERMAL_TRIP_PASSIVE; in acpi_thermal_add()
848 trip->temperature = acpi_thermal_temp(tz, acpi_trip->temp_dk); in acpi_thermal_add()
849 trip->priv = acpi_trip; in acpi_thermal_add()
850 trip++; in acpi_thermal_add()
854 acpi_trip = &tz->trips.active[i].trip; in acpi_thermal_add()
859 trip->type = THERMAL_TRIP_ACTIVE; in acpi_thermal_add()
860 trip->temperature = acpi_thermal_temp(tz, acpi_trip->temp_dk); in acpi_thermal_add()
861 trip->priv = acpi_trip; in acpi_thermal_add()
862 trip++; in acpi_thermal_add()
865 if (trip == trip_table) in acpi_thermal_add()
866 pr_warn(FW_BUG "No valid trip points!\n"); in acpi_thermal_add()
869 trip - trip_table, in acpi_thermal_add()
935 struct acpi_thermal_trip *acpi_trip = &tz->trips.active[i].trip; in acpi_thermal_resume()
976 pr_notice("%s detected: disabling all active thermal trip points\n", in thermal_act()
985 pr_notice("%s detected: disabling all critical thermal trip point actions.\n", in thermal_nocrt()
1004 pr_notice("%s detected: disabling all passive thermal trip points\n", in thermal_psv()