Lines Matching refs:adev
84 int (*req_full_gpu)(struct amdgpu_device *adev, bool init);
85 int (*rel_full_gpu)(struct amdgpu_device *adev, bool init);
86 int (*req_init_data)(struct amdgpu_device *adev);
87 int (*reset_gpu)(struct amdgpu_device *adev);
88 int (*wait_reset)(struct amdgpu_device *adev);
89 void (*trans_msg)(struct amdgpu_device *adev, enum idh_request req,
267 #define amdgpu_sriov_enabled(adev) \ argument
268 ((adev)->virt.caps & AMDGPU_SRIOV_CAPS_ENABLE_IOV)
270 #define amdgpu_sriov_vf(adev) \ argument
271 ((adev)->virt.caps & AMDGPU_SRIOV_CAPS_IS_VF)
273 #define amdgpu_sriov_bios(adev) \ argument
274 ((adev)->virt.caps & AMDGPU_SRIOV_CAPS_SRIOV_VBIOS)
276 #define amdgpu_sriov_runtime(adev) \ argument
277 ((adev)->virt.caps & AMDGPU_SRIOV_CAPS_RUNTIME)
279 #define amdgpu_sriov_fullaccess(adev) \ argument
280 (amdgpu_sriov_vf((adev)) && !amdgpu_sriov_runtime((adev)))
282 #define amdgpu_sriov_reg_indirect_en(adev) \ argument
283 (amdgpu_sriov_vf((adev)) && \
284 ((adev)->virt.gim_feature & (AMDGIM_FEATURE_INDIRECT_REG_ACCESS)))
286 #define amdgpu_sriov_reg_indirect_ih(adev) \ argument
287 (amdgpu_sriov_vf((adev)) && \
288 ((adev)->virt.reg_access & (AMDGIM_FEATURE_IH_REG_PSP_EN)))
290 #define amdgpu_sriov_reg_indirect_mmhub(adev) \ argument
291 (amdgpu_sriov_vf((adev)) && \
292 ((adev)->virt.reg_access & (AMDGIM_FEATURE_MMHUB_REG_RLC_EN)))
294 #define amdgpu_sriov_reg_indirect_gc(adev) \ argument
295 (amdgpu_sriov_vf((adev)) && \
296 ((adev)->virt.reg_access & (AMDGIM_FEATURE_GC_REG_RLC_EN)))
298 #define amdgpu_sriov_rlcg_error_report_enabled(adev) \ argument
299 (amdgpu_sriov_reg_indirect_mmhub(adev) || amdgpu_sriov_reg_indirect_gc(adev))
301 #define amdgpu_passthrough(adev) \ argument
302 ((adev)->virt.caps & AMDGPU_PASSTHROUGH_MODE)
304 #define amdgpu_sriov_vf_mmio_access_protection(adev) \ argument
305 ((adev)->virt.caps & AMDGPU_VF_MMIO_ACCESS_PROTECT)
318 #define amdgpu_sriov_is_pp_one_vf(adev) \ argument
319 ((adev)->virt.gim_feature & AMDGIM_FEATURE_PP_ONE_VF)
320 #define amdgpu_sriov_is_debug(adev) \ argument
321 ((!amdgpu_in_reset(adev)) && adev->virt.tdr_debug)
322 #define amdgpu_sriov_is_normal(adev) \ argument
323 ((!amdgpu_in_reset(adev)) && (!adev->virt.tdr_debug))
324 bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev);
325 void amdgpu_virt_init_setting(struct amdgpu_device *adev);
326 void amdgpu_virt_kiq_reg_write_reg_wait(struct amdgpu_device *adev,
329 int amdgpu_virt_request_full_gpu(struct amdgpu_device *adev, bool init);
330 int amdgpu_virt_release_full_gpu(struct amdgpu_device *adev, bool init);
331 int amdgpu_virt_reset_gpu(struct amdgpu_device *adev);
332 void amdgpu_virt_request_init_data(struct amdgpu_device *adev);
333 int amdgpu_virt_wait_reset(struct amdgpu_device *adev);
334 int amdgpu_virt_alloc_mm_table(struct amdgpu_device *adev);
335 void amdgpu_virt_free_mm_table(struct amdgpu_device *adev);
336 void amdgpu_virt_release_ras_err_handler_data(struct amdgpu_device *adev);
337 void amdgpu_virt_init_data_exchange(struct amdgpu_device *adev);
338 void amdgpu_virt_exchange_data(struct amdgpu_device *adev);
339 void amdgpu_virt_fini_data_exchange(struct amdgpu_device *adev);
340 void amdgpu_detect_virtualization(struct amdgpu_device *adev);
342 bool amdgpu_virt_can_access_debugfs(struct amdgpu_device *adev);
343 int amdgpu_virt_enable_access_debugfs(struct amdgpu_device *adev);
344 void amdgpu_virt_disable_access_debugfs(struct amdgpu_device *adev);
346 enum amdgpu_sriov_vf_mode amdgpu_virt_get_sriov_vf_mode(struct amdgpu_device *adev);
348 void amdgpu_virt_update_sriov_video_codec(struct amdgpu_device *adev,
351 void amdgpu_sriov_wreg(struct amdgpu_device *adev,
354 u32 amdgpu_sriov_rreg(struct amdgpu_device *adev,
356 bool amdgpu_virt_fw_load_skip_check(struct amdgpu_device *adev,