Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
- drivers/thermal/thermal_of.c, line 645 (as a function)
- include/linux/thermal.h, line 250 (as a function)
Referenced in 15 files:
- drivers/hwmon/amc6821.c, line 1079
- drivers/hwmon/aspeed-pwm-tacho.c, line 844
- drivers/hwmon/emc2305.c, line 315
- drivers/hwmon/gpio-fan.c, line 595
- drivers/hwmon/max6650.c, line 797
- drivers/hwmon/npcm750-pwm-fan.c, line 865
- drivers/hwmon/pwm-fan.c, line 683
- drivers/hwmon/qnap-mcu-hwmon.c, line 340
- drivers/hwmon/tc654.c, line 544
- drivers/memory/tegra/tegra210-emc-core.c, line 1968
- drivers/platform/arm64/qcom-hamoa-ec.c, line 394
- drivers/soc/qcom/qcom_aoss.c, line 384
- drivers/thermal/khadas_mcu_fan.c, line 93
- drivers/thermal/tegra/soctherm.c, line 1710
- drivers/thermal/thermal_of.c, line 652
Smatch caller information:
drivers/hwmon/gpio-fan.c gpio_fan_probe() -> devm_thermal_of_child_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->power.entry.prev->next | 4096-ptr_max |
| PARAM_VALUE | 2 | type | 5299148652651802624 |
| PARAM_VALUE | 3 | devdata | 4096-ptr_max |
| PARAM_VALUE | 4 | ops | 1967765805329743872 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 2 | type | 9 |
| BUF_SIZE | 3 | devdata | 320 |
| DATA_SOURCE | 3 | devdata | r devm_kzalloc |
| STR_LEN | 0 | dev | 8 |
| TERMINATED | 2 | type | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | np | unit_byte |
drivers/hwmon/qnap-mcu-hwmon.c qnap_mcu_hwmon_probe() -> devm_thermal_of_child_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | np | 0,4096-ptr_max |
| PARAM_VALUE | 2 | type | 329847736655314944 |
| PARAM_VALUE | 3 | devdata | 4096-ptr_max |
| PARAM_VALUE | 4 | ops | 2744758601045237760 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 2 | type | 15 |
| BUF_SIZE | 3 | devdata | 72 |
| DATA_SOURCE | 3 | devdata | r devm_kzalloc |
| STR_LEN | 0 | dev | 14 |
| TERMINATED | 2 | type | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/soc/qcom/qcom_aoss.c qmp_cooling_device_add() -> devm_thermal_of_child_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->of_node | 1-u64max |
| PARAM_VALUE | 0 | dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 1 | np | 4096-ptr_max |
| PARAM_VALUE | 1 | np->properties | 4096-ptr_max |
| PARAM_VALUE | 3 | devdata | 4096-ptr_max |
| PARAM_VALUE | 4 | ops | 8960822444467916800 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 2 | type | 7 |
| BUF_SIZE | 2 | type | 7 |
| DATA_SOURCE | 1 | np | $2 |
| DATA_SOURCE | 3 | devdata | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/thermal/khadas_mcu_fan.c khadas_mcu_fan_probe() -> devm_thermal_of_child_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 2 | type | 113335459194077184 |
| PARAM_VALUE | 3 | devdata | 4096-ptr_max |
| PARAM_VALUE | 4 | ops | 7455617909354917888 |
| BUF_SIZE | 2 | type | 15 |
| BUF_SIZE | 3 | devdata | 24 |
| DATA_SOURCE | 3 | devdata | r devm_kzalloc |
| STR_LEN | 0 | dev | 14 |
| TERMINATED | 2 | type | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | dev | unit_byte |
| UNITS | 1 | np | unit_byte |
drivers/hwmon/tc654.c tc654_probe() -> devm_thermal_of_child_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 2 | type | 1-u64max |
| PARAM_VALUE | 3 | devdata | 4096-ptr_max |
| PARAM_VALUE | 4 | ops | 7741023665308233728 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 2 | type | 20 |
| BUF_SIZE | 3 | devdata | 1616 |
| DATA_SOURCE | 3 | devdata | r devm_hwmon_device_register_with_groups |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | np | unit_byte |
drivers/hwmon/pwm-fan.c pwm_fan_probe() -> devm_thermal_of_child_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->power.entry.prev->next | 4096-ptr_max |
| PARAM_VALUE | 2 | type | 4531626200295002112 |
| PARAM_VALUE | 3 | devdata | 4096-ptr_max |
| PARAM_VALUE | 4 | ops | 4605603583060901888 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 2 | type | 8 |
| BUF_SIZE | 3 | devdata | 408 |
| DATA_SOURCE | 3 | devdata | r devm_kzalloc |
| STR_LEN | 0 | dev | 7 |
| TERMINATED | 2 | type | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | np | unit_byte |
drivers/hwmon/npcm750-pwm-fan.c npcm7xx_create_pwm_cooling() -> devm_thermal_of_child_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | *dev->p->deferred_probe_reason | 0-255 |
| PARAM_VALUE | 1 | np | 4096-ptr_max |
| PARAM_VALUE | 1 | np->properties | 4096-ptr_max |
| PARAM_VALUE | 2 | type | 0 |
| PARAM_VALUE | 3 | devdata | 4096-ptr_max |
| PARAM_VALUE | 4 | ops | 6539111091571093504 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 2 | type | 20 |
| BUF_SIZE | 3 | devdata | 64 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | np | $1 |
| DATA_SOURCE | 3 | devdata | r devm_kzalloc |
| STR_LEN | 0 | dev | 19 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/hwmon/amc6821.c amc6821_probe() -> devm_thermal_of_child_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | np | 4096-ptr_max |
| PARAM_VALUE | 1 | np->fwnode.ops->get | 0,4096-ptr_max |
| PARAM_VALUE | 3 | devdata | 4096-ptr_max |
| PARAM_VALUE | 4 | ops | 3876231003198418944 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 2 | type | 20 |
| BUF_SIZE | 3 | devdata | 192 |
| DATA_SOURCE | 1 | np | r of_get_child_by_name |
| DATA_SOURCE | 3 | devdata | r devm_kzalloc |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/hwmon/aspeed-pwm-tacho.c aspeed_create_pwm_cooling() -> devm_thermal_of_child_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | np | 4096-ptr_max |
| PARAM_VALUE | 1 | np->properties | 4096-ptr_max |
| PARAM_VALUE | 2 | type | 0 |
| PARAM_VALUE | 3 | devdata | 4096-ptr_max |
| PARAM_VALUE | 4 | ops | 282786637204316160 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 2 | type | 16 |
| BUF_SIZE | 3 | devdata | 56 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | np | $1 |
| DATA_SOURCE | 3 | devdata | r devm_kzalloc |
| STR_LEN | 0 | dev | 15 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/memory/tegra/tegra210-emc-core.c tegra210_emc_probe() -> devm_thermal_of_child_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 0 |
| PARAM_VALUE | 0 | dev->dma_io_tlb_mem | 0 |
| PARAM_VALUE | 0 | dev->dma_mem | 0 |
| PARAM_VALUE | 0 | dev->driver_data | 0 |
| PARAM_VALUE | 1 | np | 4096-ptr_max |
| PARAM_VALUE | 1 | np->fwnode.ops->get | 0,4096-ptr_max |
| PARAM_VALUE | 1 | np->properties | 4096-ptr_max |
| PARAM_VALUE | 2 | type | 8213573606272856064 |
| PARAM_VALUE | 3 | devdata | 4096-ptr_max |
| PARAM_VALUE | 4 | ops | 2180936426528829440 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 2 | type | 4 |
| BUF_SIZE | 3 | devdata | 496 |
| DATA_SOURCE | 3 | devdata | r devm_kzalloc |
| STR_LEN | 0 | dev | 3 |
| TERMINATED | 2 | type | 1 |
| MEM_ZERO | 0 | dev | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | np | unit_byte |
drivers/hwmon/max6650.c max6650_probe() -> devm_thermal_of_child_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 3 | devdata | 4096-ptr_max |
| PARAM_VALUE | 4 | ops | 8480998471911837696 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 2 | type | 20 |
| BUF_SIZE | 3 | devdata | 200 |
| DATA_SOURCE | 3 | devdata | r devm_kzalloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | np | unit_byte |
drivers/platform/arm64/qcom-hamoa-ec.c qcom_ec_probe() -> devm_thermal_of_child_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | np | 0 |
| PARAM_VALUE | 2 | type | 4673735791706841088 |
| PARAM_VALUE | 3 | devdata | 4096-ptr_max |
| PARAM_VALUE | 4 | ops | 8200469686219825152 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 2 | type | 20 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/thermal/tegra/soctherm.c soctherm_init_hw_throt_cdev() -> devm_thermal_of_child_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver_data | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->of_node | 1-u64max |
| PARAM_VALUE | 1 | np | 4096-ptr_max |
| PARAM_VALUE | 1 | np->properties | 4096-ptr_max |
| PARAM_VALUE | 3 | devdata | 4096-ptr_max |
| PARAM_VALUE | 4 | ops | 8809695222304874496 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 2 | type | 7 |
| BUF_SIZE | 2 | type | 7 |
| BUF_SIZE | 3 | devdata | s32min-(-2),1-s32max |
| PARAM_COMPARE | 0 | dev->driver_data | == $3 |
| PARAM_COMPARE | 3 | devdata | == $0->driver_data |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 3 | devdata | unit_byte |
drivers/hwmon/emc2305.c emc2305_set_single_tz() -> devm_thermal_of_child_cooling_device_register()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver_data->pwm_output_mask | 0-255 |
| PARAM_VALUE | 0 | dev->driver_data->pwm_polarity_mask | 0-255 |
| PARAM_VALUE | 0 | *dev->driver_data->pwm_freq | 0-u16max |
| PARAM_VALUE | 0 | *dev->driver_data->pwm_shutdown | 0-255 |
| PARAM_VALUE | 3 | devdata | 4096-ptr_max |
| PARAM_VALUE | 4 | ops | 632071565934792704 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 3 | devdata | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | np | $1 |
| PARAM_COMPARE | 3 | devdata | == $0->driver_data |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | np | unit_byte |
| UNITS | 3 | devdata | unit_byte |