Searched refs:pasids (Results 1 – 6 of 6) sorted by relevance
/linux-6.1.9/drivers/iommu/amd/ |
D | iommu_v2.c | 731 int amd_iommu_init_device(struct pci_dev *pdev, int pasids) in amd_iommu_init_device() argument 751 if (pasids <= 0 || pasids > (PASID_MASK + 1)) in amd_iommu_init_device() 765 tmp = pasids; in amd_iommu_init_device() 770 dev_state->max_pasids = pasids; in amd_iommu_init_device() 785 ret = amd_iommu_domain_enable_v2(dev_state->domain, pasids); in amd_iommu_init_device()
|
D | amd_iommu.h | 54 extern int amd_iommu_domain_enable_v2(struct iommu_domain *dom, int pasids);
|
D | iommu.c | 82 static int domain_enable_v2(struct protection_domain *domain, int pasids); 2476 static int domain_enable_v2(struct protection_domain *domain, int pasids) in domain_enable_v2() argument 2481 for (levels = 0; (pasids - 1) & ~0x1ff; pasids >>= 9) in domain_enable_v2() 2499 int amd_iommu_domain_enable_v2(struct iommu_domain *dom, int pasids) in amd_iommu_domain_enable_v2() argument 2517 ret = domain_enable_v2(pdom, pasids); in amd_iommu_domain_enable_v2()
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_vm.c | 126 r = xa_err(xa_erase_irq(&adev->vm_manager.pasids, vm->pasid)); in amdgpu_vm_set_pasid() 134 r = xa_err(xa_store_irq(&adev->vm_manager.pasids, pasid, vm, in amdgpu_vm_set_pasid() 2330 xa_init_flags(&adev->vm_manager.pasids, XA_FLAGS_LOCK_IRQ); in amdgpu_vm_manager_init() 2342 WARN_ON(!xa_empty(&adev->vm_manager.pasids)); in amdgpu_vm_manager_fini() 2343 xa_destroy(&adev->vm_manager.pasids); in amdgpu_vm_manager_fini() 2412 xa_lock_irqsave(&adev->vm_manager.pasids, flags); in amdgpu_vm_get_task_info() 2414 vm = xa_load(&adev->vm_manager.pasids, pasid); in amdgpu_vm_get_task_info() 2418 xa_unlock_irqrestore(&adev->vm_manager.pasids, flags); in amdgpu_vm_get_task_info() 2461 xa_lock_irqsave(&adev->vm_manager.pasids, irqflags); in amdgpu_vm_handle_fault() 2462 vm = xa_load(&adev->vm_manager.pasids, pasid); in amdgpu_vm_handle_fault() [all …]
|
D | amdgpu_vm.h | 370 struct xarray pasids; member
|
/linux-6.1.9/include/linux/ |
D | amd-iommu.h | 46 extern int amd_iommu_init_device(struct pci_dev *pdev, int pasids);
|