Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd.h294 #define drm_priv_to_vm(drm_priv) \ argument
296 ((struct drm_file *)(drm_priv))->driver_priv)->vm)
305 void *drm_priv);
306 uint64_t amdgpu_amdkfd_gpuvm_get_process_page_dir(void *drm_priv);
311 void *drm_priv, struct kgd_mem **mem,
314 struct amdgpu_device *adev, struct kgd_mem *mem, void *drm_priv,
317 struct kgd_mem *mem, void *drm_priv);
319 struct amdgpu_device *adev, struct kgd_mem *mem, void *drm_priv);
320 int amdgpu_amdkfd_gpuvm_dmaunmap_mem(struct kgd_mem *mem, void *drm_priv);
334 uint64_t va, void *drm_priv,
[all …]
Damdgpu_amdkfd_gpuvm.c1611 void *drm_priv) in amdgpu_amdkfd_gpuvm_release_process_vm() argument
1615 if (WARN_ON(!adev || !drm_priv)) in amdgpu_amdkfd_gpuvm_release_process_vm()
1618 avm = drm_priv_to_vm(drm_priv); in amdgpu_amdkfd_gpuvm_release_process_vm()
1631 uint64_t amdgpu_amdkfd_gpuvm_get_process_page_dir(void *drm_priv) in amdgpu_amdkfd_gpuvm_get_process_page_dir() argument
1633 struct amdgpu_vm *avm = drm_priv_to_vm(drm_priv); in amdgpu_amdkfd_gpuvm_get_process_page_dir()
1717 void *drm_priv, struct kgd_mem **mem, in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() argument
1720 struct amdgpu_vm *avm = drm_priv_to_vm(drm_priv); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1825 ret = drm_vma_node_allow(&gobj->vma_node, drm_priv); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1886 drm_vma_node_revoke(&gobj->vma_node, drm_priv); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1908 struct amdgpu_device *adev, struct kgd_mem *mem, void *drm_priv, in amdgpu_amdkfd_gpuvm_free_memory_of_gpu() argument
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/amdkfd/
Dkfd_process.c726 amdgpu_amdkfd_gpuvm_unmap_memory_from_gpu(dev->adev, mem, pdd->drm_priv); in kfd_process_free_gpuvm()
727 amdgpu_amdkfd_gpuvm_free_memory_of_gpu(dev->adev, mem, pdd->drm_priv, in kfd_process_free_gpuvm()
745 pdd->drm_priv, mem, NULL, in kfd_process_alloc_gpuvm()
751 pdd->drm_priv); in kfd_process_alloc_gpuvm()
773 amdgpu_amdkfd_gpuvm_unmap_memory_from_gpu(kdev->adev, *mem, pdd->drm_priv); in kfd_process_alloc_gpuvm()
776 amdgpu_amdkfd_gpuvm_free_memory_of_gpu(kdev->adev, *mem, pdd->drm_priv, in kfd_process_alloc_gpuvm()
997 if (!peer_pdd->drm_priv) in kfd_process_device_free_bos()
1000 peer_pdd->dev->adev, mem, peer_pdd->drm_priv); in kfd_process_device_free_bos()
1004 pdd->drm_priv, NULL); in kfd_process_device_free_bos()
1063 pdd->dev->adev, pdd->drm_priv); in kfd_process_destroy_pdds()
[all …]
Dkfd_chardev.c1133 pdd->drm_priv, (struct kgd_mem **) &mem, &offset, in kfd_ioctl_alloc_memory_of_gpu()
1170 pdd->drm_priv, NULL); in kfd_ioctl_alloc_memory_of_gpu()
1213 (struct kgd_mem *)mem, pdd->drm_priv, &size); in kfd_ioctl_free_memory_of_gpu()
1301 peer_pdd->drm_priv); 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()
1428 err = amdgpu_amdkfd_gpuvm_dmaunmap_mem(mem, peer_pdd->drm_priv); in kfd_ioctl_unmap_memory_from_gpu()
1571 args->va_addr, pdd->drm_priv, in kfd_ioctl_import_dmabuf()
1591 pdd->drm_priv, NULL); in kfd_ioctl_import_dmabuf()
1971 if (amdgpu_amdkfd_bo_mapped_to_dev(p->pdds[i]->drm_priv, kgd_mem)) in criu_checkpoint_bos()
2320 bo_bucket->size, pdd->drm_priv, kgd_mem, in criu_restore_memory_of_gpu()
[all …]
Dkfd_queue.c244 vm = drm_priv_to_vm(pdd->drm_priv); in kfd_queue_acquire_buffers()
370 vm = drm_priv_to_vm(pdd->drm_priv); in kfd_queue_unref_bo_vas()
Dkfd_svm.c1361 drm_priv_to_vm(pdd->drm_priv), in svm_range_unmap_from_gpus()
1386 struct amdgpu_vm *vm = drm_priv_to_vm(pdd->drm_priv); in svm_range_map_to_gpu()
1537 vm = drm_priv_to_vm(pdd->drm_priv); in svm_range_reserve_bos()
1557 drm_priv_to_vm(pdd->drm_priv), NULL, in svm_range_reserve_bos()
2782 if (!p->pdds[i]->drm_priv) in svm_range_check_vm_userptr()
2785 vm = drm_priv_to_vm(p->pdds[i]->drm_priv); in svm_range_check_vm_userptr()
3321 if (!p->pdds[i]->drm_priv) in svm_range_check_vm()
3324 vm = drm_priv_to_vm(p->pdds[i]->drm_priv); in svm_range_check_vm()
Dkfd_priv.h761 void *drm_priv; member
1502 struct amdgpu_vm *vm = drm_priv_to_vm(pdd->drm_priv); in kfd_flush_tlb()
Dkfd_device_queue_manager.c1169 if (!pdd->drm_priv) in evict_process_queues_cpsch()
1221 pd_base = amdgpu_amdkfd_gpuvm_get_process_page_dir(pdd->drm_priv); in restore_process_queues_nocpsch()
1312 if (!pdd->drm_priv) in restore_process_queues_cpsch()
1319 qpd->page_table_base = amdgpu_amdkfd_gpuvm_get_process_page_dir(pdd->drm_priv); in restore_process_queues_cpsch()
1368 pd_base = amdgpu_amdkfd_gpuvm_get_process_page_dir(pdd->drm_priv); in register_process()
Dkfd_process_queue_manager.c571 vm = drm_priv_to_vm(pdd->drm_priv); in pqm_update_queue_properties()
/linux-6.12.1/drivers/gpu/drm/mediatek/
Dmtk_drm_drv.c369 struct mtk_drm_private *drm_priv = dev_get_drvdata(dev); in mtk_drm_get_all_drm_priv() local
412 if (drm_priv->data->mmsys_dev_num == cnt) { in mtk_drm_get_all_drm_priv()