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_get_pwm1() -> amdgpu_dpm_get_fan_speed_pwm()

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 speed 6505972083964768256
PARAM_VALUE 1 *speed 0
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
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_fan_speed_pwm()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 0 adev->flags 131072-u64max
PARAM_VALUE 1 speed 0
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

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

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->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->reset_domain 4096-ptr_max
PARAM_VALUE 1 speed 0
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