Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu15/smu_v15_0_8_ppt.c smu_v15_0_8_get_xcp_metrics() -> amdgpu_get_next_xcp()

Type Parameter Key Value
PARAM_VALUE 0 xcp_mgr 1-u64max
PARAM_VALUE 1 from 3622671931175559168
PARAM_VALUE 1 *from 0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &adev->pm.mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct amdgpu_pm)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu15/smu_v15_0_8_ppt.c smu_v15_0_8_get_xcp_metrics() -> amdgpu_get_next_xcp()

Type Parameter Key Value
PARAM_VALUE 0 xcp_mgr 4096-ptr_max
PARAM_VALUE 1 from 3622671931175559168
PARAM_VALUE 1 *from 1-s32max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &adev->pm.mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct amdgpu_pm)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_6_ppt.c smu_v13_0_6_get_xcp_metrics() -> amdgpu_get_next_xcp()

Type Parameter Key Value
PARAM_VALUE 0 xcp_mgr 1-u64max
PARAM_VALUE 1 from 5100592636671188992
PARAM_VALUE 1 *from 0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &adev->pm.mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct amdgpu_pm)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_6_ppt.c smu_v13_0_6_get_xcp_metrics() -> amdgpu_get_next_xcp()

Type Parameter Key Value
PARAM_VALUE 0 xcp_mgr 4096-ptr_max
PARAM_VALUE 1 from 5100592636671188992
PARAM_VALUE 1 *from 1-s32max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &adev->pm.mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct amdgpu_pm)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device.c kgd2kfd_device_init() -> amdgpu_get_next_xcp()

Type Parameter Key Value
PARAM_VALUE 1 from 4180038848017547264
PARAM_VALUE 1 *from 0-s32max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &xcp_mgr->xcp_lock