Lines Matching refs:trip

60  * 1.An invalid trip point becomes invalid or a valid trip point becomes invalid
69 "ACPI thermal trip point %s changed\n" \
75 MODULE_PARM_DESC(act, "Disable or override all lowest active trip points.");
79 MODULE_PARM_DESC(crt, "Disable or lower all critical trip points.");
91 MODULE_PARM_DESC(psv, "Disable or override all passive trip points.");
101 struct acpi_thermal_trip trip;
109 struct acpi_thermal_trip trip;
256 if (((flag & ACPI_TRIPS_PASSIVE) && tz->trips.passive.trip.valid) ||
258 valid = tz->trips.passive.trip.valid;
270 tz->trips.passive.trip.valid = false;
272 tz->trips.passive.trip.temperature = tmp;
273 tz->trips.passive.trip.valid = true;
278 tz->trips.passive.trip.valid = false;
285 tz->trips.passive.trip.valid = false;
292 tz->trips.passive.trip.valid = false;
298 if ((flag & ACPI_TRIPS_DEVICES) && tz->trips.passive.trip.valid) {
305 tz->trips.passive.trip.valid = false;
307 tz->trips.passive.trip.valid = true;
318 if (valid != tz->trips.passive.trip.valid)
325 valid = tz->trips.active[i].trip.valid;
328 break; /* disable all active trip points */
331 tz->trips.active[i].trip.valid)) {
335 tz->trips.active[i].trip.valid = false;
343 tz->trips.active[0].trip.temperature =
348 * the next higher trip point
350 tz->trips.active[i-1].trip.temperature =
352 tz->trips.active[i-2].trip.temperature,
357 tz->trips.active[i].trip.temperature = tmp;
358 tz->trips.active[i].trip.valid = true;
363 if ((flag & ACPI_TRIPS_DEVICES) && tz->trips.active[i].trip.valid) {
370 tz->trips.active[i].trip.valid = false;
372 tz->trips.active[i].trip.valid = true;
383 if (valid != tz->trips.active[i].trip.valid)
386 if (!tz->trips.active[i].trip.valid)
402 static int acpi_thermal_adjust_trip(struct thermal_trip *trip, void *data)
404 struct acpi_thermal_trip *acpi_trip = trip->priv;
411 trip->temperature = acpi_thermal_temp(tz, acpi_trip->temperature);
413 trip->temperature = THERMAL_TEMP_INVALID;
441 * Use thermal_zone_device_exec() to carry out the trip points
443 * trip point temperatures and to prevent thermal_zone_device_update()
463 tz->trips.passive.trip.valid;
466 valid = valid || tz->trips.active[i].trip.valid;
469 pr_warn(FW_BUG "No valid trip found\n");
495 const struct thermal_trip *trip,
502 if (!tz || !trip)
505 acpi_trip = trip->priv;
509 switch (trip->type) {
526 if (t <= trip->temperature)
570 int trip = -1;
574 trip++;
577 trip++;
579 if (tz->trips.passive.trip.valid) {
580 trip++;
589 thermal, trip, cdev,
596 thermal, trip, cdev);
604 if (!tz->trips.active[i].trip.valid)
607 trip++;
616 thermal, trip, cdev,
622 thermal, trip, cdev);
685 struct thermal_trip *trip;
697 if (tz->trips.passive.trip.valid) {
702 for (i = 0; i < ACPI_THERMAL_MAX_ACTIVE && tz->trips.active[i].trip.valid; i++)
705 trip = kcalloc(trip_count, sizeof(*trip), GFP_KERNEL);
706 if (!trip)
709 tz->trip_table = trip;
712 trip->type = THERMAL_TRIP_CRITICAL;
713 trip->temperature = acpi_thermal_temp(tz, tz->trips.critical.temperature);
714 trip++;
718 trip->type = THERMAL_TRIP_HOT;
719 trip->temperature = acpi_thermal_temp(tz, tz->trips.hot.temperature);
720 trip++;
723 acpi_trip = &tz->trips.passive.trip;
725 trip->type = THERMAL_TRIP_PASSIVE;
726 trip->temperature = acpi_thermal_temp(tz, acpi_trip->temperature);
727 trip->priv = acpi_trip;
728 trip++;
732 acpi_trip = &tz->trips.active[i].trip;
737 trip->type = THERMAL_TRIP_ACTIVE;
738 trip->temperature = acpi_thermal_temp(tz, acpi_trip->temperature);
739 trip->priv = acpi_trip;
740 trip++;
856 /* Get trip points [_CRT, _PSV, etc.] (required) */
887 * critical trip point with a value being a multiple of 0.5 degree Celsius.
1013 if (!tz->trips.active[i].trip.valid)
1051 pr_notice("%s detected: disabling all active thermal trip points\n",
1058 pr_notice("%s detected: disabling all critical thermal trip point actions.\n",
1073 pr_notice("%s detected: disabling all passive thermal trip points\n",