Lines Matching refs:thermal

8  *  This driver fully implements the ACPI thermal policy as described in the
26 #include <linux/thermal.h>
47 ACPI_MODULE_NAME("thermal");
67 MODULE_PARM_DESC(nocrt, "Set to take no action upon ACPI thermal zone critical trips points.");
71 MODULE_PARM_DESC(off, "Set to disable ACPI thermal support.");
99 .name = "thermal",
255 * We need to re-bind the cooling devices of a thermal zone when this occurs.
261 "ACPI thermal trip point %s changed\n" \
500 /* sys I/F for generic thermal sysfs support */
502 static int thermal_get_temp(struct thermal_zone_device *thermal, int *temp)
504 struct acpi_thermal *tz = thermal->devdata;
519 static int thermal_get_trip_type(struct thermal_zone_device *thermal,
522 struct acpi_thermal *tz = thermal->devdata;
564 static int thermal_get_trip_temp(struct thermal_zone_device *thermal,
567 struct acpi_thermal *tz = thermal->devdata;
617 static int thermal_get_crit_temp(struct thermal_zone_device *thermal,
620 struct acpi_thermal *tz = thermal->devdata;
631 static int thermal_get_trend(struct thermal_zone_device *thermal,
634 struct acpi_thermal *tz = thermal->devdata;
638 if (thermal_get_trip_type(thermal, trip, &type))
645 if (thermal_get_trip_temp(thermal, trip, &trip_temp))
658 * tz->temperature has already been updated by generic thermal layer,
675 static int thermal_notify(struct thermal_zone_device *thermal, int trip,
679 struct acpi_thermal *tz = thermal->devdata;
697 static int acpi_thermal_cooling_device_cb(struct thermal_zone_device *thermal,
702 struct acpi_thermal *tz = thermal->devdata;
728 (thermal, trip, cdev,
734 (thermal, trip, cdev);
753 (thermal, trip, cdev,
758 (thermal, trip, cdev);
770 (thermal, THERMAL_TRIPS_NONE,
776 (thermal, THERMAL_TRIPS_NONE,
788 acpi_thermal_bind_cooling_device(struct thermal_zone_device *thermal,
791 return acpi_thermal_cooling_device_cb(thermal, cdev, true);
795 acpi_thermal_unbind_cooling_device(struct thermal_zone_device *thermal,
798 return acpi_thermal_cooling_device_cb(thermal, cdev, false);
1007 * The heuristic below should work for all ACPI thermal zones which have a
1105 /* Make sure the previously queued thermal check work has been done */
1148 "disabling all active thermal trip points\n", d->ident);
1156 "disabling all critical thermal trip point actions.\n", d->ident);
1164 "enabling thermal zone polling\n", d->ident);
1173 "disabling all passive thermal trip points\n", d->ident);
1181 * Award BIOS on this AOpen makes thermal control almost worthless.
1226 pr_notice(PREFIX "thermal control disabled\n");