Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 15 files:
- drivers/gpu/drm/amd/pm/amdgpu_pm.c, line 4743
- drivers/gpu/drm/radeon/radeon_pm.c, line 853
- drivers/hwmon/asus_atk0110.c, line 1190
- drivers/hwmon/coretemp.c, line 693
- drivers/hwmon/hwmon.c
- drivers/hwmon/max31722.c, line 92
- drivers/hwmon/occ/common.c, line 1174
- drivers/hwmon/xgene-hwmon.c, line 689
- drivers/net/ethernet/broadcom/tg3.c, line 10950
- drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c
- drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c, line 1298
- drivers/net/ethernet/sfc/mcdi_mon.c, line 504
- drivers/net/ethernet/sfc/siena/mcdi_mon.c, line 504
- drivers/net/wireless/ath/ath12k/thermal.c, line 233
- drivers/platform/mips/cpu_hwmon.c, line 148
Smatch caller information:
drivers/net/wireless/ath/ath12k/thermal.c ath12k_thermal_setup_radio() -> hwmon_device_register_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | name | 8616064682724847616 |
| PARAM_VALUE | 2 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 3 | groups | 5182468396630994944 |
| BUF_SIZE | 1 | name | 13 |
| BUF_SIZE | 3 | groups | 16 |
| STR_LEN | 0 | dev | 12 |
| TERMINATED | 1 | name | 1 |
| LOCK2 | &ag->mutex | ||
| LOCK2 | &pool->lock | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct ath12k_hw_group)->mutex |
drivers/hwmon/asus_atk0110.c atk_register_hwmon() -> hwmon_device_register_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->bus | 0 |
| PARAM_VALUE | 0 | dev->class | 0 |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver | 0 |
| PARAM_VALUE | 1 | name | 5516512289044725760 |
| PARAM_VALUE | 2 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 3 | groups | 0 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 1 | name | 8 |
| BUF_SIZE | 2 | drvdata | 192 |
| BUF_SIZE | 3 | groups | 16 |
| DATA_SOURCE | 2 | drvdata | $0 |
| STR_LEN | 0 | dev | 7 |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/hwmon/xgene-hwmon.c xgene_hwmon_probe() -> hwmon_device_register_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | name | 8966208505628442624 |
| PARAM_VALUE | 2 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 3 | groups | 6970396637314342912 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 1 | name | 10 |
| BUF_SIZE | 2 | drvdata | 544 |
| BUF_SIZE | 3 | groups | 16 |
| DATA_SOURCE | 2 | drvdata | r devm_kzalloc |
| STR_LEN | 0 | dev | 9 |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/ethernet/sfc/mcdi_mon.c efx_mcdi_mon_probe() -> hwmon_device_register_with_groups()
| 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->dma_uses_io_tlb | 1 |
| PARAM_VALUE | 0 | dev->driver_data | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->power.request | 0-4 |
| PARAM_VALUE | 0 | dev->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 1 | name | 4784364832234774528 |
| PARAM_VALUE | 2 | drvdata | 0 |
| PARAM_VALUE | 3 | groups | 4096-ptr_max |
| BUF_SIZE | 1 | name | 4 |
| BUF_SIZE | 3 | groups | 16 |
| STR_LEN | 0 | dev | 3 |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c qlcnic_register_hwmon_dev() -> hwmon_device_register_with_groups()
| 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->dma_mask | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver | 0,4096-ptr_max |
| PARAM_VALUE | 1 | name | 6808483200760815616 |
| PARAM_VALUE | 2 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 3 | groups | 5011966008624066560 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 1 | name | 7 |
| BUF_SIZE | 3 | groups | 16 |
| DATA_SOURCE | 2 | drvdata | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/hwmon/hwmon.c devm_hwmon_device_register_with_groups() -> hwmon_device_register_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 1-u64max |
| PARAM_VALUE | 0 | dev->cma_area->nranges | s32min-s32max |
| BUF_SIZE | 0 | dev | (-1),1616 |
| BUF_SIZE | 0 | dev | (-1),1616 |
| BUF_SIZE | 1 | name | (-1)-s32max |
| BUF_SIZE | 1 | name | (-1)-s32max |
| BUF_SIZE | 2 | drvdata | s32min-(-1),1-s32max |
| BUF_SIZE | 2 | drvdata | s32min-(-1),1-s32max |
| BUF_SIZE | 3 | groups | (-1)-0,16,24,32,40,48,56,80 |
| BUF_SIZE | 3 | groups | (-1)-0,16,24,32,40,48,56,80 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | name | $1 |
| DATA_SOURCE | 2 | drvdata | $2 |
| DATA_SOURCE | 3 | groups | $3 |
| STR_LEN | 0 | dev | (-1),4-6,8-10,12,14,16,21 |
| STR_LEN | 0 | dev | (-1),4-6,8-10,12,14,16,21 |
| STR_LEN | 1 | name | (-1),9 |
| STR_LEN | 1 | name | (-1),9 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | drvdata | unit_byte |
| HALF_LOCKED2 | &ab->core_lock | ||
| HALF_LOCKED2 | &pool->lock |
drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_got_active() -> hwmon_device_register_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 3 | groups | 4096-ptr_max |
| BUF_SIZE | 1 | name | 16 |
| BUF_SIZE | 3 | groups | 16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &linecard->lock | ||
| HALF_LOCKED2 | &linecards->event_ops_list_lock |
drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_init() -> hwmon_device_register_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 7869096366164398080 |
| PARAM_VALUE | 2 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 3 | groups | 4096-ptr_max |
| BUF_SIZE | 0 | dev | (-1),1616 |
| BUF_SIZE | 0 | dev | (-1),1616 |
| BUF_SIZE | 1 | name | 6 |
| BUF_SIZE | 3 | groups | 16 |
| STR_LEN | 0 | dev | 5 |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &devlink->lock |
drivers/gpu/drm/radeon/radeon_pm.c radeon_hwmon_init() -> hwmon_device_register_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver | 0,4096-ptr_max |
| PARAM_VALUE | 1 | name | 2808717541079810048 |
| PARAM_VALUE | 2 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 3 | groups | 1728941164934098944 |
| BUF_SIZE | 1 | name | 7 |
| BUF_SIZE | 2 | drvdata | s32min-(-2),1-s32max |
| BUF_SIZE | 3 | groups | 16 |
| DATA_SOURCE | 2 | drvdata | $0 |
| STR_LEN | 0 | dev | 6 |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/hwmon/max31722.c max31722_probe() -> hwmon_device_register_with_groups()
| 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 | 2 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 3 | groups | 6998109795976040448 |
| BUF_SIZE | 1 | name | 32 |
| BUF_SIZE | 2 | drvdata | 24 |
| BUF_SIZE | 3 | groups | 16 |
| DATA_SOURCE | 2 | drvdata | r devm_kzalloc |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_pm_sysfs_init() -> hwmon_device_register_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->iommu_group | 0,4096-ptr_max |
| PARAM_VALUE | 1 | name | 2405331238444593152 |
| PARAM_VALUE | 2 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 3 | groups | 6392307069799424000 |
| BUF_SIZE | 0 | dev | (-1),1616 |
| BUF_SIZE | 0 | dev | (-1),1616 |
| BUF_SIZE | 1 | name | 7 |
| BUF_SIZE | 3 | groups | 16 |
| DATA_SOURCE | 2 | drvdata | $0 |
| STR_LEN | 0 | dev | 6 |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | dev | unit_byte |
| HALF_LOCKED2 | &pool->lock |
drivers/net/ethernet/broadcom/tg3.c tg3_hwmon_open() -> hwmon_device_register_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dma_io_tlb_pools.next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dma_uses_io_tlb | 1 |
| PARAM_VALUE | 1 | name | 3253609483320778752 |
| PARAM_VALUE | 2 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 3 | groups | 4328143624463278080 |
| BUF_SIZE | 1 | name | 4 |
| BUF_SIZE | 3 | groups | 16 |
| DATA_SOURCE | 2 | drvdata | $0 |
| STR_LEN | 0 | dev | 3 |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/ethernet/sfc/siena/mcdi_mon.c efx_siena_mcdi_mon_probe() -> hwmon_device_register_with_groups()
| 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->dma_uses_io_tlb | 1 |
| PARAM_VALUE | 0 | dev->driver_data | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->power.request | 0-4 |
| PARAM_VALUE | 0 | dev->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 1 | name | 9028446301481918464 |
| PARAM_VALUE | 2 | drvdata | 0 |
| PARAM_VALUE | 3 | groups | 4096-ptr_max |
| BUF_SIZE | 1 | name | 10 |
| BUF_SIZE | 3 | groups | 16 |
| STR_LEN | 0 | dev | 9 |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/hwmon/coretemp.c coretemp_cpu_online() -> hwmon_device_register_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | name | 430407174721990656 |
| PARAM_VALUE | 2 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 3 | groups | 0 |
| BUF_SIZE | 1 | name | 9 |
| BUF_SIZE | 2 | drvdata | s32min-(-2),1-s32max |
| STR_LEN | 0 | dev | 8 |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | drvdata | unit_byte |
| HALF_LOCKED2 | global &cpuhp_state_mutex | ||
| HALF_LOCKED2 | irq |
drivers/hwmon/occ/common.c occ_active() -> hwmon_device_register_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 0,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 | 1 | name | 2390125113527910400 |
| PARAM_VALUE | 2 | drvdata | 4096-ptr_max |
| BUF_SIZE | 0 | dev | (-1),1616 |
| BUF_SIZE | 0 | dev | (-1),1616 |
| BUF_SIZE | 1 | name | 4 |
| BUF_SIZE | 2 | drvdata | s32min-(-2),1-s32max |
| BUF_SIZE | 3 | groups | 16 |
| DATA_SOURCE | 2 | drvdata | $0 |
| STR_LEN | 0 | dev | 3 |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | drvdata | unit_byte |
| LOCK2 | &occ->hwmon_lock | ||
| LOCK2 | &occ->lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct occ)->hwmon_lock | ||
| TYPE_LOCK | (struct occ)->lock |