/drivers/thermal/ |
D | rockchip_thermal.c | 115 struct rockchip_thermal_data *thermal; member 504 struct rockchip_thermal_data *thermal = dev; in rockchip_thermal_alarm_irq_thread() local 507 dev_dbg(&thermal->pdev->dev, "thermal alarm\n"); in rockchip_thermal_alarm_irq_thread() 509 thermal->chip->irq_ack(thermal->regs); in rockchip_thermal_alarm_irq_thread() 511 for (i = 0; i < thermal->chip->chn_num; i++) in rockchip_thermal_alarm_irq_thread() 512 thermal_zone_device_update(thermal->sensors[i].tzd); in rockchip_thermal_alarm_irq_thread() 520 struct rockchip_thermal_data *thermal = sensor->thermal; in rockchip_thermal_get_temp() local 521 const struct rockchip_tsadc_chip *tsadc = sensor->thermal->chip; in rockchip_thermal_get_temp() 525 sensor->id, thermal->regs, out_temp); in rockchip_thermal_get_temp() 526 dev_dbg(&thermal->pdev->dev, "sensor %d - temp: %d, retval: %d\n", in rockchip_thermal_get_temp() [all …]
|
D | Kconfig | 2 # 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. 20 prompt "Expose thermal sensors as hwmon device" 24 In case a sensor is registered with the thermal 29 Say 'Y' here if you want all thermal sensors to 34 prompt "APIs to parse thermal data out of device tree" 39 read and parse thermal data definitions out of the 42 Say 'Y' here if you need to build thermal infrastructure [all …]
|
D | kirkwood_thermal.c | 35 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()
|
D | db8500_thermal.c | 62 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 …]
|
D | dove_thermal.c | 95 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()
|
D | armada_thermal.c | 157 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()
|
D | Makefile | 10 thermal_sys-$(CONFIG_THERMAL_OF) += of-thermal.o 45 obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal/
|
D | of-thermal.c | 215 static int of_thermal_bind(struct thermal_zone_device *thermal, in of_thermal_bind() argument 218 struct __thermal_zone *data = thermal->devdata; in of_thermal_bind() 231 ret = thermal_zone_bind_cooling_device(thermal, in of_thermal_bind() 244 static int of_thermal_unbind(struct thermal_zone_device *thermal, in of_thermal_unbind() argument 247 struct __thermal_zone *data = thermal->devdata; in of_thermal_unbind() 260 ret = thermal_zone_unbind_cooling_device(thermal, in of_thermal_unbind()
|
D | spear_thermal.c | 40 static inline int thermal_get_temp(struct thermal_zone_device *thermal, in thermal_get_temp() argument 43 struct spear_thermal_dev *stdev = thermal->devdata; in thermal_get_temp()
|
D | hisi_thermal.c | 44 struct hisi_thermal_data *thermal; member 161 struct hisi_thermal_data *data = sensor->thermal; in hisi_thermal_get_temp() 244 sensor->thermal = data; in hisi_thermal_register_sensor()
|
/drivers/thermal/ti-soc-thermal/ |
D | Makefile | 1 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_OMAP3_THERMAL) += omap3-thermal-data.o 6 ti-soc-thermal-$(CONFIG_OMAP4_THERMAL) += omap4-thermal-data.o 7 ti-soc-thermal-$(CONFIG_OMAP5_THERMAL) += omap5-thermal-data.o
|
D | ti-thermal-common.c | 121 static inline int ti_thermal_get_temp(struct thermal_zone_device *thermal, in ti_thermal_get_temp() argument 124 struct ti_thermal_data *data = thermal->devdata; in ti_thermal_get_temp() 130 static int ti_thermal_bind(struct thermal_zone_device *thermal, in ti_thermal_bind() argument 133 struct ti_thermal_data *data = thermal->devdata; in ti_thermal_bind() 146 return thermal_zone_bind_cooling_device(thermal, 0, cdev, in ti_thermal_bind() 154 static int ti_thermal_unbind(struct thermal_zone_device *thermal, in ti_thermal_unbind() argument 157 struct ti_thermal_data *data = thermal->devdata; in ti_thermal_unbind() 167 return thermal_zone_unbind_cooling_device(thermal, 0, cdev); in ti_thermal_unbind() 171 static int ti_thermal_get_mode(struct thermal_zone_device *thermal, in ti_thermal_get_mode() argument 174 struct ti_thermal_data *data = thermal->devdata; in ti_thermal_get_mode() [all …]
|
D | Kconfig | 12 bool "Texas Instruments SoCs thermal framework support" 16 If you say yes here you want to get support for generic thermal 23 bool "Texas Instruments OMAP3 thermal support" 27 If you say yes here you get thermal support for the Texas Instruments 31 OMAP3 chips normally don't need thermal management, and sensors in 38 bool "Texas Instruments OMAP4 thermal support" 42 If you say yes here you get thermal support for the Texas Instruments 52 bool "Texas Instruments OMAP5 thermal support" 56 If you say yes here you get thermal support for the Texas Instruments 64 bool "Texas Instruments DRA752 thermal support" [all …]
|
D | TODO | 6 on ti-thermal-common.c/ti-thermal.h:
|
/drivers/net/wireless/ath/ath10k/ |
D | thermal.c | 42 *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 …]
|
D | Makefile | 20 ath10k_core-$(CONFIG_THERMAL) += thermal.o
|
/drivers/platform/x86/ |
D | acerhdf.c | 323 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 …]
|
D | intel_menlow.c | 423 struct thermal_zone_device *thermal; in intel_menlow_register_sensor() local 426 result = acpi_bus_get_private_data(handle, (void **)&thermal); in intel_menlow_register_sensor() 441 &thermal->device, handle); in intel_menlow_register_sensor() 455 &thermal->device, handle); in intel_menlow_register_sensor() 468 &thermal->device, handle); in intel_menlow_register_sensor()
|
/drivers/thermal/int340x_thermal/ |
D | int3400_thermal.c | 48 struct thermal_zone_device *thermal; member 202 static int int3400_thermal_get_temp(struct thermal_zone_device *thermal, in int3400_thermal_get_temp() argument 209 static int int3400_thermal_get_mode(struct thermal_zone_device *thermal, in int3400_thermal_get_mode() argument 212 struct int3400_thermal_priv *priv = thermal->devdata; in int3400_thermal_get_mode() 222 static int int3400_thermal_set_mode(struct thermal_zone_device *thermal, in int3400_thermal_set_mode() argument 225 struct int3400_thermal_priv *priv = thermal->devdata; in int3400_thermal_set_mode() 291 priv->thermal = thermal_zone_device_register("INT3400 Thermal", 0, 0, in int3400_thermal_probe() 294 if (IS_ERR(priv->thermal)) { in int3400_thermal_probe() 295 result = PTR_ERR(priv->thermal); in int3400_thermal_probe() 309 thermal_zone_device_unregister(priv->thermal); in int3400_thermal_probe() [all …]
|
/drivers/acpi/ |
D | thermal.c | 520 static int thermal_get_temp(struct thermal_zone_device *thermal, int *temp) in thermal_get_temp() argument 522 struct acpi_thermal *tz = thermal->devdata; in thermal_get_temp() 537 static int thermal_get_mode(struct thermal_zone_device *thermal, in thermal_get_mode() argument 540 struct acpi_thermal *tz = thermal->devdata; in thermal_get_mode() 553 static int thermal_set_mode(struct thermal_zone_device *thermal, in thermal_set_mode() argument 556 struct acpi_thermal *tz = thermal->devdata; in thermal_set_mode() 583 static int thermal_get_trip_type(struct thermal_zone_device *thermal, in thermal_get_trip_type() argument 586 struct acpi_thermal *tz = thermal->devdata; in thermal_get_trip_type() 628 static int thermal_get_trip_temp(struct thermal_zone_device *thermal, in thermal_get_trip_temp() argument 631 struct acpi_thermal *tz = thermal->devdata; in thermal_get_trip_temp() [all …]
|
/drivers/net/wireless/ti/wl18xx/ |
D | debugfs.c | 175 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"); 496 DEBUGFS_FWSTATS_ADD(thermal, irq_thr_low); in wl18xx_debugfs_add_files() 497 DEBUGFS_FWSTATS_ADD(thermal, irq_thr_high); in wl18xx_debugfs_add_files() 498 DEBUGFS_FWSTATS_ADD(thermal, tx_stop); in wl18xx_debugfs_add_files() 499 DEBUGFS_FWSTATS_ADD(thermal, tx_resume); in wl18xx_debugfs_add_files() [all …]
|
/drivers/thermal/st/ |
D | Kconfig | 4 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/ |
D | Kconfig | 192 tristate "Support for thermal management on Windtunnel G4s" 199 tristate "Support for thermal mgmnt on laptops with ADT 746x chipset" 207 tristate "New PowerMac thermal control infrastructure" 211 tristate "Support for thermal management on iMac G5" 215 This driver provides thermal control for the iMacG5 218 tristate "Support for thermal management on PowerMac G5 (AGP)" 222 This driver provides thermal control for the PowerMac G5 226 tristate "Support for thermal management on Xserve G5" 230 This driver provides thermal control for the Xserve G5 234 tristate "Support for thermal management on PowerMac9,1" [all …]
|
/drivers/thermal/samsung/ |
D | Kconfig | 2 tristate "Exynos thermal management unit driver" 8 This driver uses the Exynos core thermal APIs and TMU configuration
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_pm.c | 170 temp = adev->pm.dpm.thermal.min_temp; in amdgpu_hwmon_show_temp_thresh() 172 temp = adev->pm.dpm.thermal.max_temp; in amdgpu_hwmon_show_temp_thresh() 352 pm.dpm.thermal.work); in amdgpu_dpm_thermal_work_handler() 362 if (temp < adev->pm.dpm.thermal.min_temp) in amdgpu_dpm_thermal_work_handler() 366 if (adev->pm.dpm.thermal.high_to_low) in amdgpu_dpm_thermal_work_handler()
|