Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
- drivers/thermal/thermal_core.c, line 1075 (as a function)
- include/linux/thermal.h, line 344 (as a function)
Referenced in 18 files:
- drivers/acpi/acpi_video.c, line 1746
- drivers/acpi/fan_core.c, line 570
- drivers/acpi/processor_thermal.c, line 316
- drivers/net/ethernet/mellanox/mlxsw/core_thermal.c, line 693
- drivers/net/wireless/ath/ath10k/thermal.c, line 164
- drivers/net/wireless/ath/ath11k/thermal.c, line 175
- drivers/net/wireless/ath/ath12k/thermal.c, line 211
- drivers/net/wireless/intel/iwlwifi/mld/thermal.c, line 370
- drivers/net/wireless/intel/iwlwifi/mvm/tt.c, line 747
- drivers/net/wireless/mediatek/mt76/mt7915/init.c, line 222
- drivers/net/wireless/mediatek/mt76/mt7996/init.c, line 265
- drivers/platform/x86/acerhdf.c, line 653
- drivers/thermal/intel/int340x_thermal/int3403_thermal.c, line 181
- drivers/thermal/intel/int340x_thermal/int3406_thermal.c, line 160
- drivers/thermal/intel/intel_powerclamp.c, line 781
- drivers/thermal/intel/intel_tcc_cooling.c, line 109
- drivers/thermal/pcie_cooling.c, line 64
- drivers/thermal/thermal_core.c
Smatch caller information:
drivers/net/wireless/ath/ath12k/thermal.c ath12k_thermal_setup_radio() -> thermal_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | type | 7977328921452658688 |
| PARAM_VALUE | 1 | devdata | 1-u64max |
| PARAM_VALUE | 2 | ops | 904583274619301888 |
| BUF_SIZE | 0 | type | 15 |
| STR_LEN | 0 | type | 14 |
| TERMINATED | 0 | type | 1 |
| LOCK2 | &ag->mutex | ||
| LOCK2 | &pool->lock | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct ath12k_hw_group)->mutex |
drivers/acpi/acpi_video.c acpi_video_dev_register_backlight() -> thermal_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | type | 8071633825329717248 |
| PARAM_VALUE | 1 | devdata | 4096-ptr_max |
| PARAM_VALUE | 2 | ops | 4402106397544050688 |
| BUF_SIZE | 0 | type | 4 |
| DATA_SOURCE | 1 | devdata | $0 |
| STR_LEN | 0 | type | 3 |
| TERMINATED | 0 | type | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &video->device_list_lock | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &video_list_lock | ||
| TYPE_LOCK | (struct acpi_video_bus)->device_list_lock |
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c mlxsw_thermal_init() -> thermal_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | type | 2854984568868638720 |
| PARAM_VALUE | 1 | devdata | 4096-ptr_max |
| PARAM_VALUE | 2 | ops | 4879285926087524352 |
| BUF_SIZE | 0 | type | 10 |
| STR_LEN | 0 | type | 9 |
| TERMINATED | 0 | type | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &devlink->lock |
drivers/thermal/intel/int340x_thermal/int3406_thermal.c int3406_thermal_probe() -> thermal_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | devdata | 4096-ptr_max |
| PARAM_VALUE | 2 | ops | 6031272673693286400 |
| BUF_SIZE | 0 | type | 8 |
| BUF_SIZE | 1 | devdata | 40 |
| DATA_SOURCE | 1 | devdata | r devm_kzalloc |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/thermal/pcie_cooling.c pcie_cooling_device_register() -> thermal_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | type | 1-u64max |
| PARAM_VALUE | 1 | devdata | 4096-ptr_max |
| PARAM_VALUE | 2 | ops | 5644284446378102784 |
| BUF_SIZE | 0 | type | 0-s32max |
| BUF_SIZE | 0 | type | 0-s32max |
| CAPPED_DATA | 0 | type | 1 |
| DATA_SOURCE | 0 | type | r kasprintf |
| DATA_SOURCE | 1 | devdata | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock |
drivers/net/wireless/ath/ath11k/thermal.c ath11k_thermal_register() -> thermal_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | type | 7746910958032199680 |
| PARAM_VALUE | 1 | devdata | 1-u64max |
| PARAM_VALUE | 2 | ops | 604115047638282240 |
| BUF_SIZE | 0 | type | 15 |
| STR_LEN | 0 | type | 14 |
| TERMINATED | 0 | type | 1 |
| LOCK2 | &ab->core_lock | ||
| LOCK2 | &pool->lock | ||
| TYPE_LOCK | (struct ath11k_base)->core_lock |
drivers/thermal/thermal_core.c devm_thermal_cooling_device_register() -> thermal_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | devdata | 4096-ptr_max |
| PARAM_VALUE | 2 | ops | 1859479708497125376,8572279326132285440,8829085497588162560 |
| BUF_SIZE | 0 | type | (-1)-s32max |
| BUF_SIZE | 0 | type | (-1)-s32max |
| BUF_SIZE | 1 | devdata | (-1),16 |
| BUF_SIZE | 1 | devdata | (-1),16 |
| DATA_SOURCE | 0 | type | $1 |
| DATA_SOURCE | 1 | devdata | $2 |
| DATA_SOURCE | 2 | ops | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/wireless/ath/ath10k/thermal.c ath10k_thermal_register() -> thermal_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | type | 2135744657689755648 |
| PARAM_VALUE | 1 | devdata | 4096-ptr_max |
| PARAM_VALUE | 2 | ops | 6587058949196275712 |
| BUF_SIZE | 0 | type | 15 |
| DATA_SOURCE | 1 | devdata | $0 |
| STR_LEN | 0 | type | 14 |
| TERMINATED | 0 | type | 1 |
| HALF_LOCKED2 | &pool->lock |
drivers/net/wireless/intel/iwlwifi/mld/thermal.c iwl_mld_cooling_device_register() -> thermal_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | type | 5877803082757947392 |
| PARAM_VALUE | 1 | devdata | 4096-ptr_max |
| PARAM_VALUE | 2 | ops | 7902961279474520064 |
| BUF_SIZE | 0 | type | 8 |
| DATA_SOURCE | 1 | devdata | $0 |
| STR_LEN | 0 | type | 7 |
| TERMINATED | 0 | type | 1 |
| LOCK2 | global &iwlwifi_opmode_table_mtx | ||
| HALF_LOCKED2 | &pool->lock |
drivers/platform/x86/acerhdf.c acerhdf_register_thermal() -> thermal_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | type | 7762424282263384064 |
| PARAM_VALUE | 1 | devdata | 0 |
| PARAM_VALUE | 2 | ops | 6900626464824766464 |
| BUF_SIZE | 0 | type | 12 |
| STR_LEN | 0 | type | 11 |
| TERMINATED | 0 | type | 1 |
drivers/net/wireless/mediatek/mt76/mt7996/init.c mt7996_thermal_init() -> thermal_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | type | 1-u64max |
| PARAM_VALUE | 1 | devdata | 4096-ptr_max |
| PARAM_VALUE | 2 | ops | 8127446828516175872 |
| BUF_SIZE | 0 | type | 0-s32max |
| BUF_SIZE | 0 | type | 0-s32max |
| CAPPED_DATA | 0 | type | 1 |
| DATA_SOURCE | 0 | type | r devm_kasprintf |
| DATA_SOURCE | 1 | devdata | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
drivers/acpi/processor_thermal.c acpi_processor_thermal_init() -> thermal_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | type | 6731771828530778112 |
| PARAM_VALUE | 1 | devdata | 4096-ptr_max |
| PARAM_VALUE | 2 | ops | 7476786560681222144 |
| BUF_SIZE | 0 | type | 10 |
| DATA_SOURCE | 1 | devdata | $1 |
| STR_LEN | 0 | type | 9 |
| TERMINATED | 0 | type | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &cpuhp_state_mutex | ||
| HALF_LOCKED2 | irq |
drivers/net/wireless/mediatek/mt76/mt7915/init.c mt7915_thermal_init() -> thermal_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | type | 1-u64max |
| PARAM_VALUE | 1 | devdata | 4096-ptr_max |
| PARAM_VALUE | 2 | ops | 2645194489592258560 |
| BUF_SIZE | 0 | type | 0-s32max |
| BUF_SIZE | 0 | type | 0-s32max |
| BUF_SIZE | 1 | devdata | (-1),680,13440,13480,13952 |
| CAPPED_DATA | 0 | type | 1 |
| DATA_SOURCE | 0 | type | r devm_kasprintf |
| DATA_SOURCE | 1 | devdata | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/acpi/fan_core.c acpi_fan_probe() -> thermal_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | devdata | 4096-ptr_max |
| PARAM_VALUE | 2 | ops | 3771333073641250816 |
| BUF_SIZE | 0 | type | 4,8 |
| BUF_SIZE | 0 | type | 4,8 |
| STR_LEN | 0 | type | (-1),3 |
| STR_LEN | 0 | type | (-1),3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | devdata | unit_byte |
drivers/net/wireless/intel/iwlwifi/mvm/tt.c iwl_mvm_cooling_device_register() -> thermal_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | type | 5778293835573870592 |
| PARAM_VALUE | 1 | devdata | 4096-ptr_max |
| PARAM_VALUE | 2 | ops | 7437686943351152640 |
| BUF_SIZE | 0 | type | 8 |
| DATA_SOURCE | 1 | devdata | $0 |
| STR_LEN | 0 | type | 7 |
| TERMINATED | 0 | type | 1 |
| LOCK2 | global &iwlwifi_opmode_table_mtx | ||
| HALF_LOCKED2 | &pool->lock |
drivers/thermal/intel/int340x_thermal/int3403_thermal.c int3403_cdev_add() -> thermal_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | devdata | 4096-ptr_max |
| PARAM_VALUE | 2 | ops | 1965361121106944000 |
| BUF_SIZE | 0 | type | 8 |
| BUF_SIZE | 1 | devdata | 32 |
| DATA_SOURCE | 1 | devdata | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/thermal/intel/intel_powerclamp.c powerclamp_init() -> thermal_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | type | 4639122241925705728 |
| PARAM_VALUE | 1 | devdata | 0 |
| PARAM_VALUE | 2 | ops | 4788865595346653184 |
| BUF_SIZE | 0 | type | 17 |
| STR_LEN | 0 | type | 16 |
| TERMINATED | 0 | type | 1 |
drivers/thermal/intel/intel_tcc_cooling.c tcc_cooling_init() -> thermal_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | type | 2739122238045065216 |
| PARAM_VALUE | 1 | devdata | 0 |
| PARAM_VALUE | 2 | ops | 8554669000029597696 |
| BUF_SIZE | 0 | type | 11 |
| STR_LEN | 0 | type | 10 |
| TERMINATED | 0 | type | 1 |