Home
last modified time | relevance | path

Searched refs:pasids (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vm.c149 r = xa_err(xa_erase_irq(&adev->vm_manager.pasids, vm->pasid)); in amdgpu_vm_set_pasid()
157 r = xa_err(xa_store_irq(&adev->vm_manager.pasids, pasid, vm, in amdgpu_vm_set_pasid()
2317 xa_lock_irqsave(&adev->vm_manager.pasids, flags); in amdgpu_vm_get_vm_from_pasid()
2318 vm = xa_load(&adev->vm_manager.pasids, pasid); in amdgpu_vm_get_vm_from_pasid()
2319 xa_unlock_irqrestore(&adev->vm_manager.pasids, flags); in amdgpu_vm_get_vm_from_pasid()
2712 xa_init_flags(&adev->vm_manager.pasids, XA_FLAGS_LOCK_IRQ); in amdgpu_vm_manager_init()
2724 WARN_ON(!xa_empty(&adev->vm_manager.pasids)); in amdgpu_vm_manager_fini()
2725 xa_destroy(&adev->vm_manager.pasids); in amdgpu_vm_manager_fini()
2797 xa_lock_irqsave(&adev->vm_manager.pasids, irqflags); in amdgpu_vm_handle_fault()
2798 vm = xa_load(&adev->vm_manager.pasids, pasid); in amdgpu_vm_handle_fault()
[all …]
Damdgpu_vm.h459 struct xarray pasids; member
Damdgpu_kms.c1275 xa_lock_irqsave(&adev->vm_manager.pasids, flags); in amdgpu_info_ioctl()
1279 xa_unlock_irqrestore(&adev->vm_manager.pasids, flags); in amdgpu_info_ioctl()
/linux-6.12.1/drivers/iommu/amd/
Diommu.c1722 static int get_gcr3_levels(int pasids) in get_gcr3_levels() argument
1726 if (pasids == -1) in get_gcr3_levels()
1729 levels = get_count_order(pasids); in get_gcr3_levels()
1735 struct amd_iommu *iommu, int pasids) in setup_gcr3_table() argument
1737 int levels = get_gcr3_levels(pasids); in setup_gcr3_table()