Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_psr_test.c dm_test_psr_is_active_allowed_any_stream() -> amdgpu_dm_psr_is_active_allowed()

Type Parameter Key Value
PARAM_VALUE 0 dm 4096-ptr_max
PARAM_VALUE 0 dm->dc 4096-ptr_max
PARAM_VALUE 0 dm->dc->current_state 4096-ptr_max
PARAM_VALUE 0 dm->dc->current_state->stream_count 1-255
DATA_SOURCE 0 dm r dm_kunit_alloc_dm

drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_psr_test.c dm_test_psr_is_active_allowed_no_streams() -> amdgpu_dm_psr_is_active_allowed()

Type Parameter Key Value
PARAM_VALUE 0 dm 4096-ptr_max
DATA_SOURCE 0 dm r dm_kunit_alloc_dm

drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_psr_test.c dm_test_psr_is_active_allowed_null_link() -> amdgpu_dm_psr_is_active_allowed()

Type Parameter Key Value
PARAM_VALUE 0 dm 4096-ptr_max
PARAM_VALUE 0 dm->dc 4096-ptr_max
PARAM_VALUE 0 dm->dc->current_state 4096-ptr_max
PARAM_VALUE 0 dm->dc->current_state->stream_count 1-255
DATA_SOURCE 0 dm r dm_kunit_alloc_dm

drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_psr_test.c dm_test_psr_is_active_allowed_requires_enabled_and_allowed() -> amdgpu_dm_psr_is_active_allowed()

Type Parameter Key Value
PARAM_VALUE 0 dm 4096-ptr_max
PARAM_VALUE 0 dm->dc 4096-ptr_max
PARAM_VALUE 0 dm->dc->current_state 4096-ptr_max
PARAM_VALUE 0 dm->dc->current_state->stream_count 1-255
DATA_SOURCE 0 dm r dm_kunit_alloc_dm

drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_psr_test.c dm_test_psr_is_active_allowed_requires_enabled_and_allowed() -> amdgpu_dm_psr_is_active_allowed()

Type Parameter Key Value
PARAM_VALUE 0 dm 4096-ptr_max
PARAM_VALUE 0 dm->dc 4096-ptr_max
PARAM_VALUE 0 dm->dc->current_state 4096-ptr_max
PARAM_VALUE 0 dm->dc->current_state->stream_count 1-255
CAPPED_DATA 0 dm->dc->current_state->stream_count 1
DATA_SOURCE 0 dm r dm_kunit_alloc_dm

drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_crtc.c amdgpu_dm_idle_worker() -> amdgpu_dm_psr_is_active_allowed()

Type Parameter Key Value
PARAM_VALUE 0 dm 4096-ptr_max
PARAM_VALUE 0 dm->dc 4096-ptr_max
CAPPED_DATA 0 &dm->dc_lock 1
LOCK2 0 &dm->dc_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct amdgpu_display_manager)->dc_lock