/kernel/linux/linux-5.10/drivers/thermal/ |
H A D | da9062-thermal.c | 11 * implementation of the thermal driver will include a .notify() function 27 #include <linux/thermal.h> 61 struct da9062_thermal *thermal = container_of(work, in da9062_thermal_poll_on() local 69 ret = regmap_write(thermal->hw->regmap, in da9062_thermal_poll_on() 73 dev_err(thermal->dev, in da9062_thermal_poll_on() 82 ret = regmap_read(thermal->hw->regmap, in da9062_thermal_poll_on() 86 dev_err(thermal->dev, in da9062_thermal_poll_on() 92 mutex_lock(&thermal->lock); in da9062_thermal_poll_on() 93 thermal->temperature = DA9062_MILLI_CELSIUS(125); in da9062_thermal_poll_on() 94 mutex_unlock(&thermal in da9062_thermal_poll_on() 115 struct da9062_thermal *thermal = data; da9062_thermal_irq_handler() local 127 struct da9062_thermal *thermal = z->devdata; da9062_thermal_get_trip_type() local 146 struct da9062_thermal *thermal = z->devdata; da9062_thermal_get_trip_temp() local 164 struct da9062_thermal *thermal = z->devdata; da9062_thermal_get_temp() local 193 struct da9062_thermal *thermal; da9062_thermal_probe() local 278 struct da9062_thermal *thermal = platform_get_drvdata(pdev); da9062_thermal_remove() local [all...] |
H A D | rockchip_thermal.c | 18 #include <linux/thermal.h> 129 * struct rockchip_thermal_sensor - hold the information of thermal sensor 130 * @thermal: pointer to the platform/configuration data 131 * @tzd: pointer to a thermal zone 132 * @id: identifier of the thermal sensor 135 struct rockchip_thermal_data *thermal; member 141 * struct rockchip_thermal_data - hold the private data of thermal driver 143 * @pdev: platform device of thermal 145 * @sensors: array of thermal sensors 1079 struct rockchip_thermal_data *thermal in rockchip_thermal_alarm_irq_thread() local 1096 struct rockchip_thermal_data *thermal = sensor->thermal; rockchip_thermal_set_trips() local 1109 struct rockchip_thermal_data *thermal = sensor->thermal; rockchip_thermal_get_temp() local 1126 rockchip_configure_from_dt(struct device *dev, struct device_node *np, struct rockchip_thermal_data *thermal) rockchip_configure_from_dt() argument 1190 rockchip_thermal_register_sensor(struct platform_device *pdev, struct rockchip_thermal_data *thermal, struct rockchip_thermal_sensor *sensor, int id) rockchip_thermal_register_sensor() argument 1234 struct rockchip_thermal_data *thermal; rockchip_thermal_probe() local 1360 struct rockchip_thermal_data *thermal = platform_get_drvdata(pdev); rockchip_thermal_remove() local 1380 struct rockchip_thermal_data *thermal = dev_get_drvdata(dev); rockchip_thermal_suspend() local 1398 struct rockchip_thermal_data *thermal = dev_get_drvdata(dev); rockchip_thermal_resume() local [all...] |
H A D | kirkwood_thermal.c | 3 * Kirkwood thermal sensor driver 14 #include <linux/thermal.h> 26 static int kirkwood_get_temp(struct thermal_zone_device *thermal, in kirkwood_get_temp() argument 30 struct kirkwood_thermal_priv *priv = thermal->devdata; in kirkwood_get_temp() 37 dev_err(&thermal->device, in kirkwood_get_temp() 59 { .compatible = "marvell,kirkwood-thermal" }, 65 struct thermal_zone_device *thermal = NULL; in kirkwood_thermal_probe() local 79 thermal = thermal_zone_device_register("kirkwood_thermal", 0, 0, in kirkwood_thermal_probe() 81 if (IS_ERR(thermal)) { in kirkwood_thermal_probe() 83 "Failed to register thermal zon in kirkwood_thermal_probe() [all...] |
H A D | dove_thermal.c | 3 * Dove thermal sensor driver 14 #include <linux/thermal.h> 86 static int dove_get_temp(struct thermal_zone_device *thermal, in dove_get_temp() argument 90 struct dove_thermal_priv *priv = thermal->devdata; in dove_get_temp() 95 dev_err(&thermal->device, in dove_get_temp() 117 { .compatible = "marvell,dove-thermal" }, 123 struct thermal_zone_device *thermal = NULL; in dove_thermal_probe() local 148 thermal = thermal_zone_device_register("dove_thermal", 0, 0, in dove_thermal_probe() 150 if (IS_ERR(thermal)) { in dove_thermal_probe() 152 "Failed to register thermal zon in dove_thermal_probe() [all...] |
/kernel/linux/linux-6.6/drivers/thermal/ |
H A D | da9062-thermal.c | 11 * implementation of the thermal driver will include a .notify() function 27 #include <linux/thermal.h> 63 struct da9062_thermal *thermal = container_of(work, in da9062_thermal_poll_on() local 71 ret = regmap_write(thermal->hw->regmap, in da9062_thermal_poll_on() 75 dev_err(thermal->dev, in da9062_thermal_poll_on() 84 ret = regmap_read(thermal->hw->regmap, in da9062_thermal_poll_on() 88 dev_err(thermal->dev, in da9062_thermal_poll_on() 94 mutex_lock(&thermal->lock); in da9062_thermal_poll_on() 95 thermal->temperature = DA9062_MILLI_CELSIUS(125); in da9062_thermal_poll_on() 96 mutex_unlock(&thermal in da9062_thermal_poll_on() 120 struct da9062_thermal *thermal = data; da9062_thermal_irq_handler() local 131 struct da9062_thermal *thermal = thermal_zone_device_priv(z); da9062_thermal_get_temp() local 162 struct da9062_thermal *thermal; da9062_thermal_probe() local 244 struct da9062_thermal *thermal = platform_get_drvdata(pdev); da9062_thermal_remove() local [all...] |
H A D | rockchip_thermal.c | 18 #include <linux/thermal.h> 114 * struct rockchip_thermal_sensor - hold the information of thermal sensor 115 * @thermal: pointer to the platform/configuration data 116 * @tzd: pointer to a thermal zone 117 * @id: identifier of the thermal sensor 120 struct rockchip_thermal_data *thermal; member 126 * struct rockchip_thermal_data - hold the private data of thermal driver 128 * @pdev: platform device of thermal 130 * @sensors: array of thermal sensors 1365 struct rockchip_thermal_data *thermal in rockchip_thermal_alarm_irq_thread() local 1382 struct rockchip_thermal_data *thermal = sensor->thermal; rockchip_thermal_set_trips() local 1395 struct rockchip_thermal_data *thermal = sensor->thermal; rockchip_thermal_get_temp() local 1409 rockchip_configure_from_dt(struct device *dev, struct device_node *np, struct rockchip_thermal_data *thermal) rockchip_configure_from_dt() argument 1473 rockchip_thermal_register_sensor(struct platform_device *pdev, struct rockchip_thermal_data *thermal, struct rockchip_thermal_sensor *sensor, int id) rockchip_thermal_register_sensor() argument 1517 struct rockchip_thermal_data *thermal; rockchip_thermal_probe() local 1606 struct rockchip_thermal_data *thermal = platform_get_drvdata(pdev); rockchip_thermal_remove() local 1623 struct rockchip_thermal_data *thermal = dev_get_drvdata(dev); rockchip_thermal_suspend() local 1641 struct rockchip_thermal_data *thermal = dev_get_drvdata(dev); rockchip_thermal_resume() local [all...] |
H A D | kirkwood_thermal.c | 3 * Kirkwood thermal sensor driver 14 #include <linux/thermal.h> 26 static int kirkwood_get_temp(struct thermal_zone_device *thermal, in kirkwood_get_temp() argument 30 struct kirkwood_thermal_priv *priv = thermal_zone_device_priv(thermal); in kirkwood_get_temp() 56 { .compatible = "marvell,kirkwood-thermal" }, 62 struct thermal_zone_device *thermal = NULL; in kirkwood_thermal_probe() local 74 thermal = thermal_tripless_zone_device_register("kirkwood_thermal", in kirkwood_thermal_probe() 76 if (IS_ERR(thermal)) { in kirkwood_thermal_probe() 78 "Failed to register thermal zone device\n"); in kirkwood_thermal_probe() 79 return PTR_ERR(thermal); in kirkwood_thermal_probe() [all...] |
H A D | dove_thermal.c | 3 * Dove thermal sensor driver 14 #include <linux/thermal.h> 86 static int dove_get_temp(struct thermal_zone_device *thermal, in dove_get_temp() argument 90 struct dove_thermal_priv *priv = thermal_zone_device_priv(thermal); in dove_get_temp() 114 { .compatible = "marvell,dove-thermal" }, 120 struct thermal_zone_device *thermal = NULL; in dove_thermal_probe() local 142 thermal = thermal_tripless_zone_device_register("dove_thermal", priv, in dove_thermal_probe() 144 if (IS_ERR(thermal)) { in dove_thermal_probe() 146 "Failed to register thermal zone device\n"); in dove_thermal_probe() 147 return PTR_ERR(thermal); in dove_thermal_probe() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core_thermal.c | 10 #include <linux/thermal.h> 31 /* External cooling devices, allowed for binding to mlxsw thermal zones. */ 124 static int mlxsw_get_cooling_device_idx(struct mlxsw_thermal *thermal, in mlxsw_get_cooling_device_idx() argument 130 if (thermal->cdevs[i] == cdev) in mlxsw_get_cooling_device_idx() 133 /* Allow mlxsw thermal zone binding to an external cooling device */ in mlxsw_get_cooling_device_idx() 177 /* According to the system thermal requirements, the thermal zones are in mlxsw_thermal_module_trips_update() 197 static void mlxsw_thermal_tz_score_update(struct mlxsw_thermal *thermal, in mlxsw_thermal_tz_score_update() argument 205 /* Calculate thermal zone score, if temperature is above the critical in mlxsw_thermal_tz_score_update() 219 if (score > thermal in mlxsw_thermal_tz_score_update() 228 struct mlxsw_thermal *thermal = tzdev->devdata; mlxsw_thermal_bind() local 254 struct mlxsw_thermal *thermal = tzdev->devdata; mlxsw_thermal_unbind() local 276 struct mlxsw_thermal *thermal = tzdev->devdata; mlxsw_thermal_get_temp() local 302 struct mlxsw_thermal *thermal = tzdev->devdata; mlxsw_thermal_get_trip_type() local 314 struct mlxsw_thermal *thermal = tzdev->devdata; mlxsw_thermal_get_trip_temp() local 326 struct mlxsw_thermal *thermal = tzdev->devdata; mlxsw_thermal_set_trip_temp() local 339 struct mlxsw_thermal *thermal = tzdev->devdata; mlxsw_thermal_get_trip_hyst() local 348 struct mlxsw_thermal *thermal = tzdev->devdata; mlxsw_thermal_set_trip_hyst() local 357 struct mlxsw_thermal *thermal = tzdev->devdata; mlxsw_thermal_trend_get() local 385 struct mlxsw_thermal *thermal = tz->parent; mlxsw_thermal_module_bind() local 414 struct mlxsw_thermal *thermal = tz->parent; mlxsw_thermal_module_unbind() local 433 struct mlxsw_thermal *thermal = tz->parent; mlxsw_thermal_module_temp_get() local 529 struct mlxsw_thermal *thermal = tz->parent; mlxsw_thermal_module_trend_get() local 557 struct mlxsw_thermal *thermal = tz->parent; mlxsw_thermal_gearbox_temp_get() local 601 struct mlxsw_thermal *thermal = cdev->devdata; mlxsw_thermal_get_cur_state() local 627 struct mlxsw_thermal *thermal = cdev->devdata; mlxsw_thermal_set_cur_state() local 690 mlxsw_thermal_module_init(struct device *dev, struct mlxsw_core *core, struct mlxsw_thermal *thermal, u8 module) mlxsw_thermal_module_init() argument 719 mlxsw_thermal_modules_init(struct device *dev, struct mlxsw_core *core, struct mlxsw_thermal *thermal) mlxsw_thermal_modules_init() argument 768 mlxsw_thermal_modules_fini(struct mlxsw_thermal *thermal) mlxsw_thermal_modules_fini() argument 812 mlxsw_thermal_gearboxes_init(struct device *dev, struct mlxsw_core *core, struct mlxsw_thermal *thermal) mlxsw_thermal_gearboxes_init() argument 864 mlxsw_thermal_gearboxes_fini(struct mlxsw_thermal *thermal) mlxsw_thermal_gearboxes_fini() argument 883 struct mlxsw_thermal *thermal; mlxsw_thermal_init() local 994 mlxsw_thermal_fini(struct mlxsw_thermal *thermal) mlxsw_thermal_fini() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core_thermal.c | 10 #include <linux/thermal.h> 31 /* External cooling devices, allowed for binding to mlxsw thermal zones. */ 140 static int mlxsw_get_cooling_device_idx(struct mlxsw_thermal *thermal, in mlxsw_get_cooling_device_idx() argument 146 if (thermal->cdevs[i] == cdev) in mlxsw_get_cooling_device_idx() 149 /* Allow mlxsw thermal zone binding to an external cooling device */ in mlxsw_get_cooling_device_idx() 161 struct mlxsw_thermal *thermal = thermal_zone_device_priv(tzdev); in mlxsw_thermal_bind() local 162 struct device *dev = thermal->bus_info->dev; in mlxsw_thermal_bind() 166 if (mlxsw_get_cooling_device_idx(thermal, cdev) < 0) in mlxsw_thermal_bind() 170 const struct mlxsw_cooling_states *state = &thermal->cooling_states[i]; in mlxsw_thermal_bind() 187 struct mlxsw_thermal *thermal in mlxsw_thermal_unbind() local 209 struct mlxsw_thermal *thermal = thermal_zone_device_priv(tzdev); mlxsw_thermal_get_temp() local 242 struct mlxsw_thermal *thermal = tz->parent; mlxsw_thermal_module_bind() local 271 struct mlxsw_thermal *thermal = tz->parent; mlxsw_thermal_module_unbind() local 290 struct mlxsw_thermal *thermal = tz->parent; mlxsw_thermal_module_temp_get() local 315 struct mlxsw_thermal *thermal = tz->parent; mlxsw_thermal_gearbox_temp_get() local 351 struct mlxsw_thermal *thermal = cdev->devdata; mlxsw_thermal_get_cur_state() local 377 struct mlxsw_thermal *thermal = cdev->devdata; mlxsw_thermal_set_cur_state() local 446 mlxsw_thermal_module_init(struct device *dev, struct mlxsw_core *core, struct mlxsw_thermal *thermal, struct mlxsw_thermal_area *area, u8 module) mlxsw_thermal_module_init() argument 477 mlxsw_thermal_modules_init(struct device *dev, struct mlxsw_core *core, struct mlxsw_thermal *thermal, struct mlxsw_thermal_area *area) mlxsw_thermal_modules_init() argument 525 mlxsw_thermal_modules_fini(struct mlxsw_thermal *thermal, struct mlxsw_thermal_area *area) mlxsw_thermal_modules_fini() argument 572 mlxsw_thermal_gearboxes_init(struct device *dev, struct mlxsw_core *core, struct mlxsw_thermal *thermal, struct mlxsw_thermal_area *area) mlxsw_thermal_gearboxes_init() argument 625 mlxsw_thermal_gearboxes_fini(struct mlxsw_thermal *thermal, struct mlxsw_thermal_area *area) mlxsw_thermal_gearboxes_fini() argument 639 struct mlxsw_thermal *thermal = priv; mlxsw_thermal_got_active() local 677 struct mlxsw_thermal *thermal = priv; mlxsw_thermal_got_inactive() local 701 struct mlxsw_thermal *thermal; mlxsw_thermal_init() local 834 mlxsw_thermal_fini(struct mlxsw_thermal *thermal) mlxsw_thermal_fini() argument [all...] |
/kernel/linux/linux-5.10/drivers/thermal/ti-soc-thermal/ |
H A D | Makefile | 2 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 [all...] |
/kernel/linux/linux-6.6/drivers/thermal/ti-soc-thermal/ |
H A D | Makefile | 2 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 [all...] |
/kernel/linux/linux-6.6/tools/ |
H A D | Makefile | 34 @echo ' tmon - thermal monitoring and tuning tool' 36 @echo ' thermal-engine - thermal monitoring tool' 37 @echo ' thermal - thermal library' 98 thermal: FORCE 105 $(call descend,thermal/$@) 108 $(call descend,thermal/$@) 110 thermal-engine: FORCE thermal [all...] |
/kernel/linux/linux-5.10/drivers/thermal/broadcom/ |
H A D | bcm2711_thermal.c | 3 * Broadcom AVS RO thermal sensor driver 21 #include <linux/thermal.h> 31 struct thermal_zone_device *thermal; member 37 int slope = thermal_zone_get_slope(priv->thermal); in bcm2711_get_temp() 38 int offset = thermal_zone_get_offset(priv->thermal); in bcm2711_get_temp() 62 { .compatible = "brcm,bcm2711-thermal" }, 69 struct thermal_zone_device *thermal; in bcm2711_thermal_probe() local 91 thermal = devm_thermal_zone_of_sensor_register(dev, 0, priv, in bcm2711_thermal_probe() 93 if (IS_ERR(thermal)) { in bcm2711_thermal_probe() 94 ret = PTR_ERR(thermal); in bcm2711_thermal_probe() [all...] |
H A D | brcmstb_thermal.c | 3 * Broadcom STB AVS TMON thermal sensor driver 22 #include <linux/thermal.h> 114 struct thermal_zone_device *thermal; member 115 /* Process specific thermal parameters used for calculations */ 258 thermal_zone_device_update(priv->thermal, intr); in brcmstb_tmon_irq_thread() 270 * Disable low-temp if "low" is too small. As per thermal framework in brcmstb_set_trips() 322 struct thermal_zone_device *thermal; in brcmstb_thermal_probe() local 344 thermal = devm_thermal_zone_of_sensor_register(&pdev->dev, 0, priv, in brcmstb_thermal_probe() 346 if (IS_ERR(thermal)) { in brcmstb_thermal_probe() 347 ret = PTR_ERR(thermal); in brcmstb_thermal_probe() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/ |
H A D | thermal.c | 8 #include <linux/thermal.h> 31 *state = ar->thermal.throttle_state; in ath10k_thermal_get_cur_throttle_state() 49 ar->thermal.throttle_state = throttle_state; in ath10k_thermal_set_cur_throttle_state() 77 reinit_completion(&ar->thermal.wmi_sync); in ath10k_thermal_show_temp() 89 time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync, in ath10k_thermal_show_temp() 92 ath10k_warn(ar, "failed to synchronize thermal read\n"); in ath10k_thermal_show_temp() 98 temperature = ar->thermal.temperature; in ath10k_thermal_show_temp() 111 ar->thermal.temperature = temperature; in ath10k_thermal_event_temperature() 113 complete(&ar->thermal.wmi_sync); in ath10k_thermal_event_temperature() 141 period = ar->thermal in ath10k_thermal_set_throttling() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath10k/ |
H A D | thermal.c | 8 #include <linux/thermal.h> 31 *state = ar->thermal.throttle_state; in ath10k_thermal_get_cur_throttle_state() 49 ar->thermal.throttle_state = throttle_state; in ath10k_thermal_set_cur_throttle_state() 77 reinit_completion(&ar->thermal.wmi_sync); in ath10k_thermal_show_temp() 89 time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync, in ath10k_thermal_show_temp() 92 ath10k_warn(ar, "failed to synchronize thermal read\n"); in ath10k_thermal_show_temp() 98 temperature = ar->thermal.temperature; in ath10k_thermal_show_temp() 111 ar->thermal.temperature = temperature; in ath10k_thermal_event_temperature() 113 complete(&ar->thermal.wmi_sync); in ath10k_thermal_event_temperature() 141 period = ar->thermal in ath10k_thermal_set_throttling() [all...] |
/kernel/linux/linux-6.6/drivers/thermal/broadcom/ |
H A D | bcm2711_thermal.c | 3 * Broadcom AVS RO thermal sensor driver 21 #include <linux/thermal.h> 31 struct thermal_zone_device *thermal; member 62 { .compatible = "brcm,bcm2711-thermal" }, 69 struct thermal_zone_device *thermal; in bcm2711_thermal_probe() local 91 thermal = devm_thermal_of_zone_register(dev, 0, priv, in bcm2711_thermal_probe() 93 if (IS_ERR(thermal)) { in bcm2711_thermal_probe() 94 ret = PTR_ERR(thermal); in bcm2711_thermal_probe() 99 priv->thermal = thermal; in bcm2711_thermal_probe() [all...] |
H A D | brcmstb_thermal.c | 3 * Broadcom STB AVS TMON thermal sensor driver 22 #include <linux/thermal.h> 114 struct thermal_zone_device *thermal; member 115 /* Process specific thermal parameters used for calculations */ 256 thermal_zone_device_update(priv->thermal, intr); in brcmstb_tmon_irq_thread() 268 * Disable low-temp if "low" is too small. As per thermal framework in brcmstb_set_trips() 320 struct thermal_zone_device *thermal; in brcmstb_thermal_probe() local 339 thermal = devm_thermal_of_zone_register(&pdev->dev, 0, priv, in brcmstb_thermal_probe() 341 if (IS_ERR(thermal)) { in brcmstb_thermal_probe() 342 ret = PTR_ERR(thermal); in brcmstb_thermal_probe() [all...] |
/kernel/linux/linux-6.6/tools/thermal/thermal-engine/ |
H A D | Makefile | 2 # Makefile for thermal tools 12 CFLAGS += -I$(srctree)/tools/thermal/lib 13 CFLAGS += -I$(srctree)/tools/lib/thermal/include 15 LDFLAGS = -L$(srctree)/tools/thermal/lib 16 LDFLAGS += -L$(srctree)/tools/lib/thermal 24 all: thermal-engine 28 $(RM) thermal-engine
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/ |
H A D | thermal.c | 8 #include <linux/thermal.h> 30 *state = ar->thermal.throttle_state; in ath11k_thermal_get_cur_throttle_state() 51 ar->thermal.throttle_state = throttle_state; in ath11k_thermal_set_cur_throttle_state() 78 reinit_completion(&ar->thermal.wmi_sync); in ath11k_thermal_show_temp() 90 time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync, in ath11k_thermal_show_temp() 93 ath11k_warn(ar->ab, "failed to synchronize thermal read\n"); in ath11k_thermal_show_temp() 99 temperature = ar->thermal.temperature; in ath11k_thermal_show_temp() 112 ar->thermal.temperature = temperature; in ath11k_thermal_event_temperature() 114 complete(&ar->thermal.wmi_sync); in ath11k_thermal_event_temperature() 150 ath11k_warn(sc, "failed to send thermal mitigatio in ath11k_thermal_set_throttling() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath11k/ |
H A D | thermal.c | 8 #include <linux/thermal.h> 30 *state = ar->thermal.throttle_state; in ath11k_thermal_get_cur_throttle_state() 51 ar->thermal.throttle_state = throttle_state; in ath11k_thermal_set_cur_throttle_state() 78 reinit_completion(&ar->thermal.wmi_sync); in ath11k_thermal_show_temp() 90 time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync, in ath11k_thermal_show_temp() 93 ath11k_warn(ar->ab, "failed to synchronize thermal read\n"); in ath11k_thermal_show_temp() 99 temperature = ar->thermal.temperature; in ath11k_thermal_show_temp() 112 ar->thermal.temperature = temperature; in ath11k_thermal_event_temperature() 114 complete(&ar->thermal.wmi_sync); in ath11k_thermal_event_temperature() 150 ath11k_warn(sc, "failed to send thermal mitigatio in ath11k_thermal_set_throttling() [all...] |
/kernel/linux/linux-5.10/drivers/thermal/intel/int340x_thermal/ |
H A D | int3400_thermal.c | 3 * INT3400 thermal driver 12 #include <linux/thermal.h> 51 struct thermal_zone_device *thermal; member 399 thermal_prop[0] = kasprintf(GFP_KERNEL, "NAME=%s", priv->thermal->type); in int3400_notify() 400 thermal_prop[1] = kasprintf(GFP_KERNEL, "TEMP=%d", priv->thermal->temperature); in int3400_notify() 404 kobject_uevent_env(&priv->thermal->device.kobj, KOBJ_CHANGE, thermal_prop); in int3400_notify() 411 static int int3400_thermal_get_temp(struct thermal_zone_device *thermal, in int3400_thermal_get_temp() argument 418 static int int3400_thermal_change_mode(struct thermal_zone_device *thermal, in int3400_thermal_change_mode() argument 421 struct int3400_thermal_priv *priv = thermal->devdata; in int3400_thermal_change_mode() 427 if (mode != thermal in int3400_thermal_change_mode() [all...] |
/kernel/linux/linux-6.6/drivers/acpi/ |
H A D | thermal.c | 8 * This driver fully implements the ACPI thermal policy as described in the 16 #define pr_fmt(fmt) "ACPI: thermal: " fmt 28 #include <linux/thermal.h> 63 * We need to re-bind the cooling devices of a thermal zone when this occurs. 69 "ACPI thermal trip point %s changed\n" \ 87 MODULE_PARM_DESC(off, "Set to disable ACPI thermal support."); 418 static void acpi_thermal_adjust_thermal_zone(struct thermal_zone_device *thermal, in acpi_thermal_adjust_thermal_zone() argument 421 struct acpi_thermal *tz = thermal_zone_device_priv(thermal); in acpi_thermal_adjust_thermal_zone() 475 /* sys I/F for generic thermal sysfs support */ 477 static int thermal_get_temp(struct thermal_zone_device *thermal, in argument 494 thermal_get_trend(struct thermal_zone_device *thermal, const struct thermal_trip *trip, enum thermal_trend *trend) thermal_get_trend() argument 540 acpi_thermal_zone_device_hot(struct thermal_zone_device *thermal) acpi_thermal_zone_device_hot() argument 549 acpi_thermal_zone_device_critical(struct thermal_zone_device *thermal) acpi_thermal_zone_device_critical() argument 560 acpi_thermal_cooling_device_cb(struct thermal_zone_device *thermal, struct thermal_cooling_device *cdev, bool bind) acpi_thermal_cooling_device_cb() argument 634 acpi_thermal_bind_cooling_device(struct thermal_zone_device *thermal, struct thermal_cooling_device *cdev) acpi_thermal_bind_cooling_device() argument 641 acpi_thermal_unbind_cooling_device(struct thermal_zone_device *thermal, struct thermal_cooling_device *cdev) acpi_thermal_unbind_cooling_device() argument [all...] |
/kernel/linux/linux-5.10/drivers/acpi/ |
H A D | thermal.c | 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, in argument 519 thermal_get_trip_type(struct thermal_zone_device *thermal, int trip, enum thermal_trip_type *type) thermal_get_trip_type() argument 564 thermal_get_trip_temp(struct thermal_zone_device *thermal, int trip, int *temp) thermal_get_trip_temp() argument 617 thermal_get_crit_temp(struct thermal_zone_device *thermal, int *temperature) thermal_get_crit_temp() argument 631 thermal_get_trend(struct thermal_zone_device *thermal, int trip, enum thermal_trend *trend) thermal_get_trend() argument 675 thermal_notify(struct thermal_zone_device *thermal, int trip, enum thermal_trip_type trip_type) thermal_notify() argument 697 acpi_thermal_cooling_device_cb(struct thermal_zone_device *thermal, struct thermal_cooling_device *cdev, bool bind) acpi_thermal_cooling_device_cb() argument 788 acpi_thermal_bind_cooling_device(struct thermal_zone_device *thermal, struct thermal_cooling_device *cdev) acpi_thermal_bind_cooling_device() argument 795 acpi_thermal_unbind_cooling_device(struct thermal_zone_device *thermal, struct thermal_cooling_device *cdev) acpi_thermal_unbind_cooling_device() argument [all...] |