Home
last modified time | relevance | path

Searched refs:drm_priv (Results 1 – 7 of 7) sorted by relevance

/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd.h264 #define drm_priv_to_vm(drm_priv) \ argument
266 ((struct drm_file *)(drm_priv))->driver_priv)->vm)
275 void *drm_priv);
276 uint64_t amdgpu_amdkfd_gpuvm_get_process_page_dir(void *drm_priv);
280 void *drm_priv, struct kgd_mem **mem,
283 struct amdgpu_device *adev, struct kgd_mem *mem, void *drm_priv,
286 struct kgd_mem *mem, void *drm_priv);
288 struct amdgpu_device *adev, struct kgd_mem *mem, void *drm_priv);
303 uint64_t va, void *drm_priv,
Damdgpu_amdkfd_gpuvm.c1568 void *drm_priv) in amdgpu_amdkfd_gpuvm_release_process_vm() argument
1572 if (WARN_ON(!adev || !drm_priv)) in amdgpu_amdkfd_gpuvm_release_process_vm()
1575 avm = drm_priv_to_vm(drm_priv); in amdgpu_amdkfd_gpuvm_release_process_vm()
1588 uint64_t amdgpu_amdkfd_gpuvm_get_process_page_dir(void *drm_priv) in amdgpu_amdkfd_gpuvm_get_process_page_dir() argument
1590 struct amdgpu_vm *avm = drm_priv_to_vm(drm_priv); in amdgpu_amdkfd_gpuvm_get_process_page_dir()
1646 void *drm_priv, struct kgd_mem **mem, in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() argument
1649 struct amdgpu_vm *avm = drm_priv_to_vm(drm_priv); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1730 ret = drm_vma_node_allow(&gobj->vma_node, drm_priv); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1775 drm_vma_node_revoke(&gobj->vma_node, drm_priv); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1796 struct amdgpu_device *adev, struct kgd_mem *mem, void *drm_priv, in amdgpu_amdkfd_gpuvm_free_memory_of_gpu() argument
[all …]
/drivers/gpu/drm/amd/amdkfd/
Dkfd_process.c701 amdgpu_amdkfd_gpuvm_unmap_memory_from_gpu(dev->adev, mem, pdd->drm_priv); in kfd_process_free_gpuvm()
702 amdgpu_amdkfd_gpuvm_free_memory_of_gpu(dev->adev, mem, pdd->drm_priv, in kfd_process_free_gpuvm()
720 pdd->drm_priv, mem, NULL, in kfd_process_alloc_gpuvm()
726 pdd->drm_priv); in kfd_process_alloc_gpuvm()
748 amdgpu_amdkfd_gpuvm_unmap_memory_from_gpu(kdev->adev, *mem, pdd->drm_priv); in kfd_process_alloc_gpuvm()
751 amdgpu_amdkfd_gpuvm_free_memory_of_gpu(kdev->adev, *mem, pdd->drm_priv, in kfd_process_alloc_gpuvm()
966 if (!peer_pdd->drm_priv) in kfd_process_device_free_bos()
969 peer_pdd->dev->adev, mem, peer_pdd->drm_priv); in kfd_process_device_free_bos()
973 pdd->drm_priv, NULL); in kfd_process_device_free_bos()
1032 pdd->dev->adev, pdd->drm_priv); in kfd_process_destroy_pdds()
[all …]
Dkfd_chardev.c345 wptr_vm = drm_priv_to_vm(pdd->drm_priv); in kfd_ioctl_create_queue()
1117 pdd->drm_priv, (struct kgd_mem **) &mem, &offset, in kfd_ioctl_alloc_memory_of_gpu()
1154 pdd->drm_priv, NULL); in kfd_ioctl_alloc_memory_of_gpu()
1197 (struct kgd_mem *)mem, pdd->drm_priv, &size); in kfd_ioctl_free_memory_of_gpu()
1285 peer_pdd->drm_priv); in kfd_ioctl_map_memory_to_gpu()
1385 peer_pdd->dev->adev, (struct kgd_mem *)mem, peer_pdd->drm_priv); in kfd_ioctl_unmap_memory_from_gpu()
1551 args->va_addr, pdd->drm_priv, in kfd_ioctl_import_dmabuf()
1572 pdd->drm_priv, NULL); in kfd_ioctl_import_dmabuf()
2227 bo_bucket->size, pdd->drm_priv, kgd_mem, in criu_restore_memory_of_gpu()
2243 amdgpu_amdkfd_gpuvm_free_memory_of_gpu(pdd->dev->adev, *kgd_mem, pdd->drm_priv, in criu_restore_memory_of_gpu()
[all …]
Dkfd_svm.c1272 drm_priv_to_vm(pdd->drm_priv), in svm_range_unmap_from_gpus()
1297 struct amdgpu_vm *vm = drm_priv_to_vm(pdd->drm_priv); in svm_range_map_to_gpu()
1446 vm = drm_priv_to_vm(pdd->drm_priv); in svm_range_reserve_bos()
1469 drm_priv_to_vm(pdd->drm_priv), in svm_range_reserve_bos()
2619 if (!p->pdds[i]->drm_priv) in svm_range_check_vm_userptr()
2622 vm = drm_priv_to_vm(p->pdds[i]->drm_priv); in svm_range_check_vm_userptr()
3117 if (!p->pdds[i]->drm_priv) in svm_range_check_vm()
3120 vm = drm_priv_to_vm(p->pdds[i]->drm_priv); in svm_range_check_vm()
Dkfd_device_queue_manager.c1030 pd_base = amdgpu_amdkfd_gpuvm_get_process_page_dir(pdd->drm_priv); in restore_process_queues_nocpsch()
1109 pd_base = amdgpu_amdkfd_gpuvm_get_process_page_dir(pdd->drm_priv); in restore_process_queues_cpsch()
1171 pd_base = amdgpu_amdkfd_gpuvm_get_process_page_dir(pdd->drm_priv); in register_process()
Dkfd_priv.h717 void *drm_priv; member