Home
last modified time | relevance | path

Searched refs:bo_adev (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_xgmi.h70 struct amdgpu_device *bo_adev) in amdgpu_xgmi_same_hive() argument
73 adev != bo_adev && in amdgpu_xgmi_same_hive()
75 adev->gmc.xgmi.hive_id == bo_adev->gmc.xgmi.hive_id); in amdgpu_xgmi_same_hive()
H A Damdgpu_amdkfd_gpuvm.c102 static bool reuse_dmamap(struct amdgpu_device *adev, struct amdgpu_device *bo_adev) in reuse_dmamap() argument
104 return (adev->ram_is_direct_mapped && bo_adev->ram_is_direct_mapped) || in reuse_dmamap()
105 (adev->dev->iommu_group == bo_adev->dev->iommu_group); in reuse_dmamap()
818 struct amdgpu_device *bo_adev; in kfd_mem_export_dmabuf() local
821 bo_adev = amdgpu_ttm_adev(mem->bo->tbo.bdev); in kfd_mem_export_dmabuf()
822 dmabuf = drm_gem_prime_handle_to_dmabuf(&bo_adev->ddev, bo_adev->kfd.client.file, in kfd_mem_export_dmabuf()
871 struct amdgpu_device *bo_adev = amdgpu_ttm_adev(mem->bo->tbo.bdev); in kfd_mem_attach() local
893 if ((adev != bo_adev && !(adev->flags & AMD_IS_APU)) && in kfd_mem_attach()
898 same_hive = amdgpu_xgmi_same_hive(adev, bo_adev); in kfd_mem_attach()
899 if (!same_hive && !amdgpu_device_is_peer_accessible(bo_adev, adev)) in kfd_mem_attach()
[all …]
H A Dgmc_v12_0.c501 struct amdgpu_device *bo_adev; in gmc_v12_0_get_vm_pte() local
526 bo_adev = amdgpu_ttm_adev(bo->tbo.bdev); in gmc_v12_0_get_vm_pte()
535 if (is_system || ((bo_adev != adev) && coherent)) in gmc_v12_0_get_vm_pte()
H A Dgmc_v9_0.c1126 struct amdgpu_device *bo_adev = amdgpu_ttm_adev(bo->tbo.bdev); in gmc_v9_0_get_coherence_flags() local
1140 if (bo_adev == adev) { in gmc_v9_0_get_coherence_flags()
1195 (is_vram && adev == bo_adev && in gmc_v9_0_get_coherence_flags()
H A Damdgpu_vm.c1203 struct amdgpu_device *bo_adev; in amdgpu_vm_bo_update() local
1210 bo_adev = amdgpu_ttm_adev(bo->tbo.bdev); in amdgpu_vm_bo_update()
1211 vram_base = bo_adev->vm_manager.vram_base_offset; in amdgpu_vm_bo_update()
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_svm.c183 struct amdgpu_device *bo_adev = prange->svm_bo->node->adev; in svm_range_dma_map_dev() local
186 bo_adev->vm_manager.vram_base_offset - in svm_range_dma_map_dev()
187 bo_adev->kfd.pgmap.range.start; in svm_range_dma_map_dev()
1382 dma_addr_t *dma_addr, struct amdgpu_device *bo_adev, in svm_range_map_to_gpu() argument
1429 bo_adev ? bo_adev->vm_manager.vram_base_offset : 0, in svm_range_map_to_gpu()
1462 struct amdgpu_device *bo_adev = NULL; in svm_range_map_to_gpus() local
1469 bo_adev = prange->svm_bo->node->adev; in svm_range_map_to_gpus()
1484 if (bo_adev && pdd->dev->adev != bo_adev && in svm_range_map_to_gpus()
1485 !amdgpu_xgmi_same_hive(pdd->dev->adev, bo_adev)) { in svm_range_map_to_gpus()
1492 bo_adev, wait ? &fence : NULL, in svm_range_map_to_gpus()