Home
last modified time | relevance | path

Searched refs:thermal (Results 1 – 25 of 78) sorted by relevance

1234

/drivers/thermal/
Dda9062-thermal.c71 struct da9062_thermal *thermal = container_of(work, in da9062_thermal_poll_on() local
79 ret = regmap_write(thermal->hw->regmap, in da9062_thermal_poll_on()
83 dev_err(thermal->dev, in da9062_thermal_poll_on()
92 ret = regmap_read(thermal->hw->regmap, in da9062_thermal_poll_on()
96 dev_err(thermal->dev, in da9062_thermal_poll_on()
102 mutex_lock(&thermal->lock); in da9062_thermal_poll_on()
103 thermal->temperature = DA9062_MILLI_CELSIUS(125); in da9062_thermal_poll_on()
104 mutex_unlock(&thermal->lock); in da9062_thermal_poll_on()
105 thermal_zone_device_update(thermal->zone, in da9062_thermal_poll_on()
108 delay = msecs_to_jiffies(thermal->zone->passive_delay); in da9062_thermal_poll_on()
[all …]
Drockchip_thermal.c140 struct rockchip_thermal_data *thermal; member
969 struct rockchip_thermal_data *thermal = dev; in rockchip_thermal_alarm_irq_thread() local
972 dev_dbg(&thermal->pdev->dev, "thermal alarm\n"); in rockchip_thermal_alarm_irq_thread()
974 thermal->chip->irq_ack(thermal->regs); in rockchip_thermal_alarm_irq_thread()
976 for (i = 0; i < thermal->chip->chn_num; i++) in rockchip_thermal_alarm_irq_thread()
977 thermal_zone_device_update(thermal->sensors[i].tzd, in rockchip_thermal_alarm_irq_thread()
986 struct rockchip_thermal_data *thermal = sensor->thermal; in rockchip_thermal_set_trips() local
987 const struct rockchip_tsadc_chip *tsadc = thermal->chip; in rockchip_thermal_set_trips()
989 dev_dbg(&thermal->pdev->dev, "%s: sensor %d: low: %d, high %d\n", in rockchip_thermal_set_trips()
993 sensor->id, thermal->regs, high); in rockchip_thermal_set_trips()
[all …]
DKconfig2 # Generic thermal sysfs drivers configuration
9 thermal management. Usually it's made up of one or more thermal
11 Each thermal zone contains its own temperature, trip points,
13 All platforms with ACPI thermal support can use this driver.
25 case of failure of an orderly_poweroff(), the thermal emergency
37 prompt "Expose thermal sensors as hwmon device"
41 In case a sensor is registered with the thermal
46 Say 'Y' here if you want all thermal sensors to
51 prompt "APIs to parse thermal data out of device tree"
56 read and parse thermal data definitions out of the
[all …]
Dkirkwood_thermal.c35 static int kirkwood_get_temp(struct thermal_zone_device *thermal, in kirkwood_get_temp() argument
39 struct kirkwood_thermal_priv *priv = thermal->devdata; in kirkwood_get_temp()
46 dev_err(&thermal->device, in kirkwood_get_temp()
74 struct thermal_zone_device *thermal = NULL; in kirkwood_thermal_probe() local
87 thermal = thermal_zone_device_register("kirkwood_thermal", 0, 0, in kirkwood_thermal_probe()
89 if (IS_ERR(thermal)) { in kirkwood_thermal_probe()
92 return PTR_ERR(thermal); in kirkwood_thermal_probe()
95 platform_set_drvdata(pdev, thermal); in kirkwood_thermal_probe()
Ddb8500_thermal.c62 static int db8500_cdev_bind(struct thermal_zone_device *thermal, in db8500_cdev_bind() argument
65 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_cdev_bind()
78 ret = thermal_zone_bind_cooling_device(thermal, i, cdev, in db8500_cdev_bind()
89 static int db8500_cdev_unbind(struct thermal_zone_device *thermal, in db8500_cdev_unbind() argument
92 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_cdev_unbind()
100 ret = thermal_zone_unbind_cooling_device(thermal, i, cdev); in db8500_cdev_unbind()
110 static int db8500_sys_get_temp(struct thermal_zone_device *thermal, int *temp) in db8500_sys_get_temp() argument
112 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_get_temp()
125 static int db8500_sys_get_trend(struct thermal_zone_device *thermal, in db8500_sys_get_trend() argument
128 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_get_trend()
[all …]
Ddove_thermal.c95 static int dove_get_temp(struct thermal_zone_device *thermal, in dove_get_temp() argument
99 struct dove_thermal_priv *priv = thermal->devdata; in dove_get_temp()
104 dev_err(&thermal->device, in dove_get_temp()
132 struct thermal_zone_device *thermal = NULL; in dove_thermal_probe() local
157 thermal = thermal_zone_device_register("dove_thermal", 0, 0, in dove_thermal_probe()
159 if (IS_ERR(thermal)) { in dove_thermal_probe()
162 return PTR_ERR(thermal); in dove_thermal_probe()
165 platform_set_drvdata(pdev, thermal); in dove_thermal_probe()
Darmada_thermal.c157 static int armada_get_temp(struct thermal_zone_device *thermal, in armada_get_temp() argument
160 struct armada_thermal_priv *priv = thermal->devdata; in armada_get_temp()
166 dev_err(&thermal->device, in armada_get_temp()
258 struct thermal_zone_device *thermal; in armada_thermal_probe() local
284 thermal = thermal_zone_device_register("armada_thermal", 0, 0, in armada_thermal_probe()
286 if (IS_ERR(thermal)) { in armada_thermal_probe()
289 return PTR_ERR(thermal); in armada_thermal_probe()
292 platform_set_drvdata(pdev, thermal); in armada_thermal_probe()
DMakefile12 thermal_sys-$(CONFIG_THERMAL_OF) += of-thermal.o
46 obj-$(CONFIG_DA9062_THERMAL) += da9062-thermal.o
52 obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal/
61 obj-$(CONFIG_GENERIC_ADC_THERMAL) += thermal-generic-adc.o
/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c115 static int mlxsw_get_cooling_device_idx(struct mlxsw_thermal *thermal, in mlxsw_get_cooling_device_idx() argument
121 if (thermal->cdevs[i] == cdev) in mlxsw_get_cooling_device_idx()
130 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_bind() local
131 struct device *dev = thermal->bus_info->dev; in mlxsw_thermal_bind()
135 if (mlxsw_get_cooling_device_idx(thermal, cdev) < 0) in mlxsw_thermal_bind()
139 const struct mlxsw_thermal_trip *trip = &thermal->trips[i]; in mlxsw_thermal_bind()
156 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_unbind() local
157 struct device *dev = thermal->bus_info->dev; in mlxsw_thermal_unbind()
162 if (mlxsw_get_cooling_device_idx(thermal, cdev) < 0) in mlxsw_thermal_unbind()
178 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_get_mode() local
[all …]
/drivers/thermal/ti-soc-thermal/
DMakefile2 obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal.o
3 ti-soc-thermal-y := ti-bandgap.o
4 ti-soc-thermal-$(CONFIG_TI_THERMAL) += ti-thermal-common.o
5 ti-soc-thermal-$(CONFIG_DRA752_THERMAL) += dra752-thermal-data.o
6 ti-soc-thermal-$(CONFIG_OMAP3_THERMAL) += omap3-thermal-data.o
7 ti-soc-thermal-$(CONFIG_OMAP4_THERMAL) += omap4-thermal-data.o
8 ti-soc-thermal-$(CONFIG_OMAP5_THERMAL) += omap5-thermal-data.o
DKconfig12 bool "Texas Instruments SoCs thermal framework support"
15 If you say yes here you want to get support for generic thermal
22 bool "Texas Instruments OMAP3 thermal support"
26 If you say yes here you get thermal support for the Texas Instruments
30 OMAP3 chips normally don't need thermal management, and sensors in
37 bool "Texas Instruments OMAP4 thermal support"
41 If you say yes here you get thermal support for the Texas Instruments
51 bool "Texas Instruments OMAP5 thermal support"
55 If you say yes here you get thermal support for the Texas Instruments
63 bool "Texas Instruments DRA752 thermal support"
[all …]
DTODO6 on ti-thermal-common.c/ti-thermal.h:
/drivers/net/wireless/ath/ath10k/
Dthermal.c42 *state = ar->thermal.throttle_state; in ath10k_thermal_get_cur_throttle_state()
60 ar->thermal.throttle_state = throttle_state; in ath10k_thermal_set_cur_throttle_state()
88 reinit_completion(&ar->thermal.wmi_sync); in ath10k_thermal_show_temp()
100 time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync, in ath10k_thermal_show_temp()
109 temperature = ar->thermal.temperature; in ath10k_thermal_show_temp()
122 ar->thermal.temperature = temperature; in ath10k_thermal_event_temperature()
124 complete(&ar->thermal.wmi_sync); in ath10k_thermal_event_temperature()
149 period = ar->thermal.quiet_period; in ath10k_thermal_set_throttling()
150 duration = (period * ar->thermal.throttle_state) / 100; in ath10k_thermal_set_throttling()
184 ar->thermal.cdev = cdev; in ath10k_thermal_register()
[all …]
/drivers/thermal/int340x_thermal/
DKconfig2 # ACPI INT340x thermal drivers configuration
6 tristate "ACPI INT340X thermal drivers"
13 Newer laptops and tablets that use ACPI may have thermal sensors and
14 other devices with thermal control capabilities outside the core
15 CPU/SOC, for thermal safety reasons.
19 from these objects to userspace via the normal thermal framework.
33 tristate "ACPI INT3406 display thermal driver"
36 The display thermal device represents the LED/LCD display panel
38 the display thermal device is to allow control of the display
39 brightness in order to address a thermal condition or to reduce
Dint3400_thermal.c50 struct thermal_zone_device *thermal; member
217 priv->thermal->type); in int3400_notify()
219 priv->thermal->temperature); in int3400_notify()
224 kobject_uevent_env(&priv->thermal->device.kobj, KOBJ_CHANGE, in int3400_notify()
233 static int int3400_thermal_get_temp(struct thermal_zone_device *thermal, in int3400_thermal_get_temp() argument
240 static int int3400_thermal_get_mode(struct thermal_zone_device *thermal, in int3400_thermal_get_mode() argument
243 struct int3400_thermal_priv *priv = thermal->devdata; in int3400_thermal_get_mode()
253 static int int3400_thermal_set_mode(struct thermal_zone_device *thermal, in int3400_thermal_set_mode() argument
256 struct int3400_thermal_priv *priv = thermal->devdata; in int3400_thermal_set_mode()
322 priv->thermal = thermal_zone_device_register("INT3400 Thermal", 0, 0, in int3400_thermal_probe()
[all …]
/drivers/thermal/tegra/
DKconfig1 menu "NVIDIA Tegra thermal drivers"
5 tristate "Tegra SOCTHERM thermal management"
7 Enable this option for integrated thermal management support on NVIDIA
8 Tegra systems-on-chip. The driver supports four thermal zones
9 (CPU, GPU, MEM, PLLX). Cooling devices can be bound to the thermal
11 emergency thermal reset (thermtrip) feature to function.
/drivers/platform/x86/
Dacerhdf.c323 static void acerhdf_check_param(struct thermal_zone_device *thermal) in acerhdf_check_param() argument
339 thermal->polling_delay = interval*1000; in acerhdf_check_param()
350 static int acerhdf_get_ec_temp(struct thermal_zone_device *thermal, int *t) in acerhdf_get_ec_temp() argument
354 acerhdf_check_param(thermal); in acerhdf_get_ec_temp()
367 static int acerhdf_bind(struct thermal_zone_device *thermal, in acerhdf_bind() argument
374 if (thermal_zone_bind_cooling_device(thermal, 0, cdev, in acerhdf_bind()
383 static int acerhdf_unbind(struct thermal_zone_device *thermal, in acerhdf_unbind() argument
389 if (thermal_zone_unbind_cooling_device(thermal, 0, cdev)) { in acerhdf_unbind()
413 static int acerhdf_get_mode(struct thermal_zone_device *thermal, in acerhdf_get_mode() argument
431 static int acerhdf_set_mode(struct thermal_zone_device *thermal, in acerhdf_set_mode() argument
[all …]
Dintel_menlow.c418 struct thermal_zone_device *thermal; in intel_menlow_register_sensor() local
421 result = acpi_bus_get_private_data(handle, (void **)&thermal); in intel_menlow_register_sensor()
436 &thermal->device, handle); in intel_menlow_register_sensor()
450 &thermal->device, handle); in intel_menlow_register_sensor()
463 &thermal->device, handle); in intel_menlow_register_sensor()
/drivers/acpi/
Dthermal.c529 static int thermal_get_temp(struct thermal_zone_device *thermal, int *temp) in thermal_get_temp() argument
531 struct acpi_thermal *tz = thermal->devdata; in thermal_get_temp()
546 static int thermal_get_mode(struct thermal_zone_device *thermal, in thermal_get_mode() argument
549 struct acpi_thermal *tz = thermal->devdata; in thermal_get_mode()
560 static int thermal_set_mode(struct thermal_zone_device *thermal, in thermal_set_mode() argument
563 struct acpi_thermal *tz = thermal->devdata; in thermal_set_mode()
590 static int thermal_get_trip_type(struct thermal_zone_device *thermal, in thermal_get_trip_type() argument
593 struct acpi_thermal *tz = thermal->devdata; in thermal_get_trip_type()
635 static int thermal_get_trip_temp(struct thermal_zone_device *thermal, in thermal_get_trip_temp() argument
638 struct acpi_thermal *tz = thermal->devdata; in thermal_get_trip_temp()
[all …]
/drivers/thermal/st/
DKconfig4 Support for thermal sensors on STMicroelectronics STi series of SoCs.
8 tristate "STi series syscfg register access based thermal sensors"
12 tristate "STi series memory mapped access based thermal sensors"
/drivers/macintosh/
DKconfig180 tristate "Support for thermal management on Windtunnel G4s"
187 tristate "Support for thermal mgmnt on laptops with ADT 746x chipset"
195 tristate "New PowerMac thermal control infrastructure"
199 tristate "Support for thermal management on iMac G5"
203 This driver provides thermal control for the iMacG5
206 tristate "Support for thermal management on PowerMac G5 (AGP)"
210 This driver provides thermal control for the PowerMac G5
214 tristate "Support for thermal management on Xserve G5"
218 This driver provides thermal control for the Xserve G5
222 tristate "Support for thermal management on PowerMac9,1"
[all …]
/drivers/thermal/qcom/
DKconfig7 This enables the thermal sysfs driver for the TSENS device. It shows
8 up in Sysfs as a thermal zone with multiple trip points. Disabling the
9 thermal zone device via the mode file results in disabling the sensor.
/drivers/thermal/broadcom/
DKconfig7 Support for thermal sensors on Broadcom bcm2835 SoCs.
10 tristate "Northstar thermal driver"
16 Management Unit) block with a thermal sensor that allows checking CPU
/drivers/net/wireless/ti/wl18xx/
Ddebugfs.c175 WL18XX_DEBUGFS_FWSTATS_FILE(thermal, irq_thr_low, "%u");
176 WL18XX_DEBUGFS_FWSTATS_FILE(thermal, irq_thr_high, "%u");
177 WL18XX_DEBUGFS_FWSTATS_FILE(thermal, tx_stop, "%u");
178 WL18XX_DEBUGFS_FWSTATS_FILE(thermal, tx_resume, "%u");
179 WL18XX_DEBUGFS_FWSTATS_FILE(thermal, false_irq, "%u");
180 WL18XX_DEBUGFS_FWSTATS_FILE(thermal, adc_source_unexpected, "%u");
559 DEBUGFS_FWSTATS_ADD(thermal, irq_thr_low); in wl18xx_debugfs_add_files()
560 DEBUGFS_FWSTATS_ADD(thermal, irq_thr_high); in wl18xx_debugfs_add_files()
561 DEBUGFS_FWSTATS_ADD(thermal, tx_stop); in wl18xx_debugfs_add_files()
562 DEBUGFS_FWSTATS_ADD(thermal, tx_resume); in wl18xx_debugfs_add_files()
[all …]
/drivers/thermal/samsung/
DKconfig2 tristate "Exynos thermal management unit driver"
9 This driver uses the Exynos core thermal APIs and TMU configuration

1234