Lines Matching refs:kgd_mem
1133 pdd->drm_priv, (struct kgd_mem **) &mem, &offset, in kfd_ioctl_alloc_memory_of_gpu()
1169 amdgpu_amdkfd_gpuvm_free_memory_of_gpu(dev->adev, (struct kgd_mem *)mem, in kfd_ioctl_alloc_memory_of_gpu()
1213 (struct kgd_mem *)mem, pdd->drm_priv, &size); in kfd_ioctl_free_memory_of_gpu()
1300 peer_pdd->dev->adev, (struct kgd_mem *)mem, in kfd_ioctl_map_memory_to_gpu()
1311 ((struct kgd_mem *)mem)->domain); in kfd_ioctl_map_memory_to_gpu()
1317 err = amdgpu_amdkfd_gpuvm_sync_memory(dev->adev, (struct kgd_mem *) mem, true); in kfd_ioctl_map_memory_to_gpu()
1401 peer_pdd->dev->adev, (struct kgd_mem *)mem, peer_pdd->drm_priv); in kfd_ioctl_unmap_memory_from_gpu()
1412 (struct kgd_mem *) mem, true); in kfd_ioctl_unmap_memory_from_gpu()
1572 (struct kgd_mem **)&mem, &size, in kfd_ioctl_import_dmabuf()
1590 amdgpu_amdkfd_gpuvm_free_memory_of_gpu(pdd->dev->adev, (struct kgd_mem *)mem, in kfd_ioctl_import_dmabuf()
1827 struct kgd_mem *kgd_mem = (struct kgd_mem *)mem; in get_process_num_bos() local
1829 if (!kgd_mem->va || kgd_mem->va > pdd->gpuvm_base) in get_process_num_bos()
1836 static int criu_get_prime_handle(struct kgd_mem *mem, in criu_get_prime_handle()
1914 struct kgd_mem *kgd_mem; in criu_checkpoint_bos() local
1921 kgd_mem = (struct kgd_mem *)mem; in criu_checkpoint_bos()
1922 dumper_bo = kgd_mem->bo; in criu_checkpoint_bos()
1928 if (kgd_mem->va && kgd_mem->va <= pdd->gpuvm_base) in criu_checkpoint_bos()
1935 bo_bucket->addr = (uint64_t)kgd_mem->va; in criu_checkpoint_bos()
1937 bo_bucket->alloc_flags = (uint32_t)kgd_mem->alloc_flags; in criu_checkpoint_bos()
1950 ret = criu_get_prime_handle(kgd_mem, in criu_checkpoint_bos()
1971 if (amdgpu_amdkfd_bo_mapped_to_dev(p->pdds[i]->drm_priv, kgd_mem)) in criu_checkpoint_bos()
2289 struct kgd_mem **kgd_mem) in criu_restore_memory_of_gpu() argument
2320 bo_bucket->size, pdd->drm_priv, kgd_mem, in criu_restore_memory_of_gpu()
2331 idr_handle = idr_alloc(&pdd->alloc_idr, *kgd_mem, bo_priv->idr_handle, in criu_restore_memory_of_gpu()
2336 amdgpu_amdkfd_gpuvm_free_memory_of_gpu(pdd->dev->adev, *kgd_mem, pdd->drm_priv, in criu_restore_memory_of_gpu()
2361 struct kgd_mem *kgd_mem; in criu_restore_bo() local
2375 ret = criu_restore_memory_of_gpu(pdd, bo_bucket, bo_priv, &kgd_mem); in criu_restore_bo()
2397 ret = amdgpu_amdkfd_gpuvm_map_memory_to_gpu(peer->adev, kgd_mem, in criu_restore_bo()
2409 ret = criu_get_prime_handle(kgd_mem, DRM_RDWR, in criu_restore_bo()