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/modules/power/power.c mod_power_notify_mode_change() -> map_index_from_stream()

Type Parameter Key Value
PARAM_VALUE 0 core_power 4096-ptr_max
PARAM_VALUE 0 core_power->num_entities 1-u32max
PARAM_VALUE 1 stream 4096-ptr_max
DATA_SOURCE 1 stream $1

drivers/gpu/drm/amd/amdgpu/../display/modules/power/power.c mod_power_remove_stream() -> map_index_from_stream()

Type Parameter Key Value
PARAM_VALUE 0 core_power 4096-ptr_max
PARAM_VALUE 0 core_power->num_entities 1-u32max
PARAM_VALUE 1 stream 0,4096-ptr_max
DATA_SOURCE 1 stream $1
LOCK2 _T->lock

drivers/gpu/drm/amd/amdgpu/../display/modules/power/power.c mod_power_replace_stream() -> map_index_from_stream()

Type Parameter Key Value
PARAM_VALUE 0 core_power 4096-ptr_max
PARAM_VALUE 0 core_power->num_entities 1-u32max
PARAM_VALUE 1 stream 0,4096-ptr_max
DATA_SOURCE 1 stream $1
LOCK2 _T->lock

drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_psr.c mod_power_get_psr_enabled_status() -> map_index_from_stream()

Type Parameter Key Value
PARAM_VALUE 0 core_power 4096-ptr_max
PARAM_VALUE 0 core_power->num_entities 1-u32max
DATA_SOURCE 1 stream $1

drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_psr.c mod_power_get_psr_event() -> map_index_from_stream()

Type Parameter Key Value
PARAM_VALUE 0 core_power 4096-ptr_max
PARAM_VALUE 0 core_power->num_entities 1-u32max
PARAM_VALUE 1 stream 4096-ptr_max
BUF_SIZE 1 stream (-1),26528,26544
BUF_SIZE 1 stream (-1),26528,26544
BUF_SIZE 1 stream->link (-1),1616
DATA_SOURCE 1 stream $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &adev->dm.dc_lock
HALF_LOCKED2 &attr->mutex
HALF_LOCKED2 &crtc->mutex.mutex
HALF_LOCKED2 &dm->dc_lock
HALF_LOCKED2 _T->lock

drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_psr.c mod_power_psr_get_active_psr_events() -> map_index_from_stream()

Type Parameter Key Value
PARAM_VALUE 0 core_power 4096-ptr_max
PARAM_VALUE 0 core_power->num_entities 1-u32max
PARAM_VALUE 1 stream 1-u64max
DATA_SOURCE 1 stream $1

drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_psr.c mod_power_psr_set_power_opt() -> map_index_from_stream()

Type Parameter Key Value
PARAM_VALUE 0 core_power 1-u64max
PARAM_VALUE 1 stream 4096-ptr_max
BUF_SIZE 1 stream->link (-1),1616
CAPPED_DATA 1 stream 1
CAPPED_DATA 1 stream->link 1
DATA_SOURCE 1 stream $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dm->dc_lock

drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_psr.c mod_power_psr_set_sink_vtotal_in_psr_active() -> map_index_from_stream()

Type Parameter Key Value
PARAM_VALUE 0 core_power 4096-ptr_max
PARAM_VALUE 0 core_power->num_entities 1-u32max
PARAM_VALUE 1 stream 1-u64max
DATA_SOURCE 1 stream $1

drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_psr.c mod_power_set_psr_event() -> map_index_from_stream()

Type Parameter Key Value
PARAM_VALUE 0 core_power 1-u64max
PARAM_VALUE 1 stream 4096-ptr_max
BUF_SIZE 1 stream (-1),26528,26544
BUF_SIZE 1 stream (-1),26528,26544
BUF_SIZE 1 stream->link (-1),1616
CAPPED_DATA 1 stream 1
CAPPED_DATA 1 stream->link 1
DATA_SOURCE 1 stream $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dm->dc_lock

drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_replay.c mod_power_get_replay_event() -> map_index_from_stream()

Type Parameter Key Value
PARAM_VALUE 0 core_power 4096-ptr_max
PARAM_VALUE 0 core_power->num_entities 1-u32max
PARAM_VALUE 1 stream 4096-ptr_max
DATA_SOURCE 1 stream $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &adev->dm.dc_lock
HALF_LOCKED2 &attr->mutex
HALF_LOCKED2 &crtc->mutex.mutex
HALF_LOCKED2 &dm->dc_lock
HALF_LOCKED2 _T->lock

drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_replay.c mod_power_replay_disabled_adaptive_sync_sdp() -> map_index_from_stream()

Type Parameter Key Value
PARAM_VALUE 0 core_power 4096-ptr_max
PARAM_VALUE 0 core_power->num_entities 1-u32max
PARAM_VALUE 1 stream 1-u64max
DATA_SOURCE 1 stream $1

drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_replay.c mod_power_replay_set_general_cmd() -> map_index_from_stream()

Type Parameter Key Value
PARAM_VALUE 0 core_power 4096-ptr_max
PARAM_VALUE 0 core_power->num_entities 1-u32max
PARAM_VALUE 1 stream 1-u64max
DATA_SOURCE 1 stream $1
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_replay.c mod_power_replay_set_pseudo_vtotal() -> map_index_from_stream()

Type Parameter Key Value
PARAM_VALUE 0 core_power 4096-ptr_max
PARAM_VALUE 0 core_power->num_entities 1-u32max
PARAM_VALUE 1 stream 4096-ptr_max
CAPPED_DATA 1 stream 1
CAPPED_DATA 1 stream->link 1
DATA_SOURCE 1 stream $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dm->dc_lock

drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_replay.c mod_power_replay_set_timing_sync_supported() -> map_index_from_stream()

Type Parameter Key Value
PARAM_VALUE 0 core_power 4096-ptr_max
PARAM_VALUE 0 core_power->num_entities 1-u32max
PARAM_VALUE 1 stream 4096-ptr_max
CAPPED_DATA 1 stream 1
CAPPED_DATA 1 stream->link 1
DATA_SOURCE 1 stream $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dm->dc_lock

drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_replay.c mod_power_set_replay_event() -> map_index_from_stream()

Type Parameter Key Value
PARAM_VALUE 0 core_power 4096-ptr_max
PARAM_VALUE 0 core_power->num_entities 1-u32max
PARAM_VALUE 1 stream 4096-ptr_max
CAPPED_DATA 1 stream 1
CAPPED_DATA 1 stream->link 1
DATA_SOURCE 1 stream $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dm->dc_lock