Searched defs:thermal (Results 1 - 17 of 17) sorted by relevance

/drivers/thermal/ti-soc-thermal/
H A DMakefile1 obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal.o
2 ti-soc-thermal-y := ti-bandgap.o
3 ti-soc-thermal-$(CONFIG_TI_THERMAL) += ti-thermal-common.o
4 ti-soc-thermal-$(CONFIG_DRA752_THERMAL) += dra752-thermal-data.o
5 ti-soc-thermal-$(CONFIG_OMAP4_THERMAL) += omap4-thermal-data.o
6 ti-soc-thermal-$(CONFIG_OMAP5_THERMAL) += omap5-thermal
[all...]
H A Dti-thermal-common.c2 * OMAP thermal driver interface
30 #include <linux/thermal.h>
36 #include "ti-thermal.h"
58 dev_dbg(&data->ti_thermal->device, "updated thermal zone %s\n",
78 /* thermal zone ops */
79 /* Get temperature callback function for thermal zone*/
122 static inline int ti_thermal_get_temp(struct thermal_zone_device *thermal, argument
125 struct ti_thermal_data *data = thermal->devdata;
130 /* Bind callback functions for thermal zone */
131 static int ti_thermal_bind(struct thermal_zone_device *thermal, argument
154 ti_thermal_unbind(struct thermal_zone_device *thermal, struct thermal_cooling_device *cdev) argument
171 ti_thermal_get_mode(struct thermal_zone_device *thermal, enum thermal_device_mode *mode) argument
183 ti_thermal_set_mode(struct thermal_zone_device *thermal, enum thermal_device_mode mode) argument
216 ti_thermal_get_trip_type(struct thermal_zone_device *thermal, int trip, enum thermal_trip_type *type) argument
231 ti_thermal_get_trip_temp(struct thermal_zone_device *thermal, int trip, unsigned long *temp) argument
261 ti_thermal_get_trend(struct thermal_zone_device *thermal, int trip, enum thermal_trend *trend) argument
282 ti_thermal_get_crit_temp(struct thermal_zone_device *thermal, unsigned long *temp) argument
[all...]
/drivers/thermal/
H A Dkirkwood_thermal.c2 * Kirkwood thermal sensor driver
23 #include <linux/thermal.h>
35 static int kirkwood_get_temp(struct thermal_zone_device *thermal, argument
39 struct kirkwood_thermal_priv *priv = thermal->devdata;
46 dev_err(&thermal->device,
68 { .compatible = "marvell,kirkwood-thermal" },
74 struct thermal_zone_device *thermal = NULL; local
87 thermal = thermal_zone_device_register("kirkwood_thermal", 0, 0,
89 if (IS_ERR(thermal)) {
91 "Failed to register thermal zon
[all...]
H A Dspear_thermal.c2 * SPEAr thermal driver.
26 #include <linux/thermal.h>
32 /* pointer to base address of the thermal sensor */
36 /* pointer to thermal flags */
40 static inline int thermal_get_temp(struct thermal_zone_device *thermal, argument
43 struct spear_thermal_dev *stdev = thermal->devdata;
110 if (!np || !of_property_read_u32(np, "st,thermal-flags", &val)) {
119 /* Enable thermal sensor */
143 dev_err(&pdev->dev, "thermal zone device is NULL\n");
179 { .compatible = "st,thermal
[all...]
H A Ddove_thermal.c2 * Dove thermal sensor driver
23 #include <linux/thermal.h>
95 static int dove_get_temp(struct thermal_zone_device *thermal, argument
99 struct dove_thermal_priv *priv = thermal->devdata;
104 dev_err(&thermal->device,
126 { .compatible = "marvell,dove-thermal" },
132 struct thermal_zone_device *thermal = NULL; local
157 thermal = thermal_zone_device_register("dove_thermal", 0, 0,
159 if (IS_ERR(thermal)) {
161 "Failed to register thermal zon
[all...]
H A Darmada_thermal.c2 * Marvell Armada 370/XP thermal sensor driver
25 #include <linux/thermal.h>
129 "marvell,armada375-z1-thermal");
173 static int armada_get_temp(struct thermal_zone_device *thermal, argument
176 struct armada_thermal_priv *priv = thermal->devdata;
182 dev_err(&thermal->device,
251 .compatible = "marvell,armadaxp-thermal",
255 .compatible = "marvell,armada370-thermal",
259 .compatible = "marvell,armada375-thermal",
263 .compatible = "marvell,armada375-z1-thermal",
278 struct thermal_zone_device *thermal; local
[all...]
H A Ddb8500_thermal.c28 #include <linux/thermal.h>
44 /* Local function to check if thermal zone matches cooling devices */
61 /* Callback to bind cooling device to thermal zone */
62 static int db8500_cdev_bind(struct thermal_zone_device *thermal, argument
65 struct db8500_thermal_zone *pzone = thermal->devdata;
78 ret = thermal_zone_bind_cooling_device(thermal, i, cdev,
88 /* Callback to unbind cooling device from thermal zone */
89 static int db8500_cdev_unbind(struct thermal_zone_device *thermal, argument
92 struct db8500_thermal_zone *pzone = thermal->devdata;
100 ret = thermal_zone_unbind_cooling_device(thermal,
110 db8500_sys_get_temp(struct thermal_zone_device *thermal, unsigned long *temp) argument
126 db8500_sys_get_trend(struct thermal_zone_device *thermal, int trip, enum thermal_trend *trend) argument
137 db8500_sys_get_mode(struct thermal_zone_device *thermal, enum thermal_device_mode *mode) argument
150 db8500_sys_set_mode(struct thermal_zone_device *thermal, enum thermal_device_mode mode) argument
167 db8500_sys_get_trip_type(struct thermal_zone_device *thermal, int trip, enum thermal_trip_type *type) argument
182 db8500_sys_get_trip_temp(struct thermal_zone_device *thermal, int trip, unsigned long *temp) argument
197 db8500_sys_get_crit_temp(struct thermal_zone_device *thermal, unsigned long *temp) argument
[all...]
H A Dintel_soc_dts_thermal.c21 #include <linux/thermal.h>
242 static int sys_get_trip_type(struct thermal_zone_device *thermal, argument
H A Dof-thermal.c2 * of-thermal.c - Generic Thermal Management device tree support.
25 #include <linux/thermal.h>
36 /*** Private data structures to represent thermal device tree data ***/
71 * struct __thermal_zone - internal representation of a thermal zone
72 * @mode: current thermal zone device mode (enabled/disabled)
77 * @num_tbps: number of thermal bind params
78 * @tbps: an array of thermal bind params (0..num_tbps - 1)
103 /*** DT thermal zone device callbacks ***/
141 static int of_thermal_bind(struct thermal_zone_device *thermal, argument
144 struct __thermal_zone *data = thermal
169 of_thermal_unbind(struct thermal_zone_device *thermal, struct thermal_cooling_device *cdev) argument
[all...]
H A Dx86_pkg_temp_thermal.c30 #include <linux/thermal.h>
51 /* Number of trip points in thermal zone. Currently it can't
267 static int sys_get_trip_type(struct thermal_zone_device *thermal, argument
455 /* Store MSR value for package thermal interrupt, to restore at exit */
498 * thermal zone is removed.
624 /* Retore old MSR value for package thermal interrupt */
/drivers/thermal/int340x_thermal/
H A Dint3400_thermal.c2 * INT3400 thermal driver
16 #include <linux/thermal.h>
38 struct thermal_zone_device *thermal; member in struct:int3400_thermal_priv
124 static int int3400_thermal_get_temp(struct thermal_zone_device *thermal, argument
131 static int int3400_thermal_get_mode(struct thermal_zone_device *thermal, argument
134 struct int3400_thermal_priv *priv = thermal->devdata;
144 static int int3400_thermal_set_mode(struct thermal_zone_device *thermal, argument
147 struct int3400_thermal_priv *priv = thermal->devdata;
215 priv->thermal = thermal_zone_device_register("INT3400 Thermal", 0, 0,
218 if (IS_ERR(priv->thermal)) {
[all...]
H A Dint3403_thermal.c2 * ACPI INT3403 thermal driver
20 #include <linux/thermal.h>
131 static int sys_get_trip_type(struct thermal_zone_device *thermal, argument
134 struct int3403_priv *priv = thermal->devdata;
473 .name = "int3403 thermal",
483 MODULE_DESCRIPTION("ACPI INT3403 thermal driver");
/drivers/thermal/samsung/
H A Dexynos_thermal_common.c2 * exynos_thermal_common.c - Samsung EXYNOS common thermal file
26 #include <linux/thermal.h>
40 /* Get mode callback functions for thermal zone */
41 static int exynos_get_mode(struct thermal_zone_device *thermal, argument
44 struct exynos_thermal_zone *th_zone = thermal->devdata;
50 /* Set mode callback functions for thermal zone */
51 static int exynos_set_mode(struct thermal_zone_device *thermal, argument
54 struct exynos_thermal_zone *th_zone = thermal->devdata;
56 dev_err(&thermal->device,
57 "thermal zon
81 exynos_get_trip_type(struct thermal_zone_device *thermal, int trip, enum thermal_trip_type *type) argument
106 exynos_get_trip_temp(struct thermal_zone_device *thermal, int trip, unsigned long *temp) argument
123 exynos_get_crit_temp(struct thermal_zone_device *thermal, unsigned long *temp) argument
133 exynos_bind(struct thermal_zone_device *thermal, struct thermal_cooling_device *cdev) argument
182 exynos_unbind(struct thermal_zone_device *thermal, struct thermal_cooling_device *cdev) argument
227 exynos_get_temp(struct thermal_zone_device *thermal, unsigned long *temp) argument
246 exynos_set_emul_temp(struct thermal_zone_device *thermal, unsigned long temp) argument
265 exynos_get_trend(struct thermal_zone_device *thermal, int trip, enum thermal_trend *trend) argument
[all...]
/drivers/platform/x86/
H A Dintel_menlow.c2 * intel_menlow.c - Intel menlow Driver for thermal management extension
39 #include <linux/thermal.h>
371 /* BIOS can enable/disable the thermal user application in dabney platform */
423 struct thermal_zone_device *thermal; local
426 result = acpi_bus_get_private_data(handle, (void **)&thermal);
441 &thermal->device, handle);
455 &thermal->device, handle);
468 &thermal->device, handle);
518 /* Looking for sensors in each ACPI thermal zone */
H A Dacerhdf.c40 #include <linux/thermal.h>
59 * measured by the on-die thermal monitor are within 0 <= Tj <= 90. So,
280 static void acerhdf_check_param(struct thermal_zone_device *thermal) argument
296 thermal->polling_delay = interval*1000;
302 * This is the thermal zone callback which does the delayed polling of the fan
307 static int acerhdf_get_ec_temp(struct thermal_zone_device *thermal, argument
312 acerhdf_check_param(thermal);
325 static int acerhdf_bind(struct thermal_zone_device *thermal, argument
332 if (thermal_zone_bind_cooling_device(thermal, 0, cdev,
340 static int acerhdf_unbind(struct thermal_zone_device *thermal, argument
370 acerhdf_get_mode(struct thermal_zone_device *thermal, enum thermal_device_mode *mode) argument
388 acerhdf_set_mode(struct thermal_zone_device *thermal, enum thermal_device_mode mode) argument
399 acerhdf_get_trip_type(struct thermal_zone_device *thermal, int trip, enum thermal_trip_type *type) argument
408 acerhdf_get_trip_temp(struct thermal_zone_device *thermal, int trip, unsigned long *temp) argument
417 acerhdf_get_crit_temp(struct thermal_zone_device *thermal, unsigned long *temperature) argument
[all...]
/drivers/acpi/
H A Dthermal.c25 * This driver fully implements the ACPI thermal policy as described in the
44 #include <linux/thermal.h>
64 ACPI_MODULE_NAME("thermal");
84 MODULE_PARM_DESC(nocrt, "Set to take no action upon ACPI thermal zone critical trips points.");
88 MODULE_PARM_DESC(off, "Set to disable ACPI thermal support.");
116 .name = "thermal",
275 * We need to re-bind the cooling devices of a thermal zone when this occurs.
281 "ACPI thermal trip point %s changed\n" \
530 /* sys I/F for generic thermal sysfs support */
532 static int thermal_get_temp(struct thermal_zone_device *thermal, argument
550 thermal_get_mode(struct thermal_zone_device *thermal, enum thermal_device_mode *mode) argument
564 thermal_set_mode(struct thermal_zone_device *thermal, enum thermal_device_mode mode) argument
594 thermal_get_trip_type(struct thermal_zone_device *thermal, int trip, enum thermal_trip_type *type) argument
639 thermal_get_trip_temp(struct thermal_zone_device *thermal, int trip, unsigned long *temp) argument
692 thermal_get_crit_temp(struct thermal_zone_device *thermal, unsigned long *temperature) argument
705 thermal_get_trend(struct thermal_zone_device *thermal, int trip, enum thermal_trend *trend) argument
749 thermal_notify(struct thermal_zone_device *thermal, int trip, enum thermal_trip_type trip_type) argument
771 acpi_thermal_cooling_device_cb(struct thermal_zone_device *thermal, struct thermal_cooling_device *cdev, bool bind) argument
859 acpi_thermal_bind_cooling_device(struct thermal_zone_device *thermal, struct thermal_cooling_device *cdev) argument
866 acpi_thermal_unbind_cooling_device(struct thermal_zone_device *thermal, struct thermal_cooling_device *cdev) argument
[all...]
/drivers/gpu/drm/radeon/
H A Dradeon.h1340 /* thermal interrupt work */
1561 /* thermal handling */
1562 struct radeon_dpm_thermal thermal; member in struct:radeon_dpm
1623 /* internal thermal controller on rv6xx+ */

Completed in 263 milliseconds