Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c amdgpu_pmops_runtime_suspend() -> amdgpu_device_cache_pci_state()

Type Parameter Key Value
PARAM_VALUE 0 pdev 4096-ptr_max
NOCHECK_CALL

drivers/gpu/drm/amd/amdgpu/nv.c nv_asic_mode2_reset() -> amdgpu_device_cache_pci_state()

Type Parameter Key Value
PARAM_VALUE 0 pdev 4096-ptr_max
PARAM_VALUE 0 pdev->error_state 0-2,4-u32max
PARAM_VALUE 0 pdev->is_busmaster 0
BUF_SIZE 0 pdev (-1),1-s32max
BUF_SIZE 0 pdev (-1),1-s32max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &adev->reset_domain->sem
HALF_LOCKED2 &hive->tb.enter_turnstile
HALF_LOCKED2 &hive->tb.exit_turnstile

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c amdgpu_device_mode1_reset() -> amdgpu_device_cache_pci_state()

Type Parameter Key Value
BUF_SIZE 0 pdev (-1),1-s32max
BUF_SIZE 0 pdev (-1),1-s32max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &adev->reset_domain->sem
HALF_LOCKED2 &hive->tb.enter_turnstile
HALF_LOCKED2 &hive->tb.exit_turnstile

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c amdgpu_pci_slot_reset() -> amdgpu_device_cache_pci_state()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &hive->hive_lock
HALF_LOCKED2 &pdev->dev.mutex

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c amdgpu_switcheroo_set_state() -> amdgpu_device_cache_pci_state()

Type Parameter Key Value
PARAM_VALUE 0 pdev 4096-ptr_max
PARAM_VALUE 0 pdev->dev.bus 0,4096-ptr_max
PARAM_VALUE 0 pdev->dev.class 0,4096-ptr_max
PARAM_VALUE 0 pdev->dev.driver 0,4096-ptr_max
DATA_SOURCE 0 pdev $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 global &vgasr_mutex