Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_hwmon_show_power_cap_generic() -> amdgpu_dpm_get_power_limit()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 0 adev->dev->power.child_count.counter 1-s32max
PARAM_VALUE 0 adev->dev->power.ignore_children 0
PARAM_VALUE 0 adev->in_suspend 0
PARAM_VALUE 0 adev->init_lvl 4096-ptr_max
PARAM_VALUE 0 adev->init_lvl->level 0
PARAM_VALUE 0 adev->reset_domain 4096-ptr_max
PARAM_VALUE 1 limit 5731809601363980288
PARAM_VALUE 2 pp_limit_level (-1)-2
BUF_SIZE 0 adev s32min-(-2),1-s32max
BUF_SIZE 0 adev s32min-(-2),1-s32max
DATA_SOURCE 2 pp_limit_level $3
HARD_MAX 2 pp_limit_level 2
RX_PATH
TASK_NOT_RUNNING
UNITS 0 adev unit_byte
UNITS 3 power_type unit_array_size
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c hwmon_attributes_visible() -> amdgpu_dpm_get_power_limit()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 0 adev->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 adev->flags 131072-u64max
PARAM_VALUE 0 adev->init_lvl 4096-ptr_max
PARAM_VALUE 0 adev->init_lvl->level 0-2
PARAM_VALUE 0 adev->powerplay.pp_funcs 4096-ptr_max
PARAM_VALUE 0 adev->powerplay.pp_funcs->get_fan_control_mode 0,269902989626343424,6799924949047029760,8965680090050658304
PARAM_VALUE 0 adev->powerplay.pp_funcs->get_fan_speed_pwm 0,949052965584723968,8684434810990202880,8782241162523725824
PARAM_VALUE 0 adev->powerplay.pp_funcs->get_fan_speed_rpm 0,564470365470998528,646471993693171712
PARAM_VALUE 0 adev->powerplay.pp_funcs->set_fan_control_mode 0,2054862503527694336,6269073642420400128,9140711355158667264
PARAM_VALUE 0 adev->powerplay.pp_funcs->set_fan_speed_pwm 0,3365152260725776384,3958417287569940480,7034998035647074304
PARAM_VALUE 0 adev->powerplay.pp_funcs->set_fan_speed_rpm 0,1869929291142197248,4303623251682213888
PARAM_VALUE 0 adev->reset_domain 4096-ptr_max
PARAM_VALUE 1 limit 5482216760148684800
PARAM_VALUE 2 pp_limit_level 2
PARAM_VALUE 3 power_type 1
BUF_SIZE 0 adev s32min-(-2),1-s32max
BUF_SIZE 0 adev s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 adev unit_byte