Lines Matching refs:pasid_array
51 struct xarray pasid_array; member
973 xa_init(&group->pasid_array); in iommu_group_alloc()
3117 !xa_empty(&group->pasid_array)) { in iommu_device_use_default_domain()
3147 if (!WARN_ON(!group->owner_cnt || !xa_empty(&group->pasid_array))) in iommu_device_unuse_default_domain()
3180 !xa_empty(&group->pasid_array)) in __iommu_take_dma_ownership()
3266 !xa_empty(&group->pasid_array))) in __iommu_release_dma_ownership()
3405 ret = xa_insert(&group->pasid_array, pasid, handle, GFP_KERNEL); in iommu_attach_device_pasid()
3411 xa_erase(&group->pasid_array, pasid); in iommu_attach_device_pasid()
3435 xa_erase(&group->pasid_array, pasid); in iommu_detach_device_pasid()
3486 xa_lock(&group->pasid_array); in iommu_attach_handle_get()
3487 handle = xa_load(&group->pasid_array, pasid); in iommu_attach_handle_get()
3492 xa_unlock(&group->pasid_array); in iommu_attach_handle_get()
3520 ret = xa_insert(&group->pasid_array, IOMMU_NO_PASID, handle, GFP_KERNEL); in iommu_attach_group_handle()
3531 xa_erase(&group->pasid_array, IOMMU_NO_PASID); in iommu_attach_group_handle()
3551 xa_erase(&group->pasid_array, IOMMU_NO_PASID); in iommu_detach_group_handle()
3578 ret = xa_reserve(&group->pasid_array, IOMMU_NO_PASID, GFP_KERNEL); in iommu_replace_group_handle()
3588 curr = xa_store(&group->pasid_array, IOMMU_NO_PASID, handle, GFP_KERNEL); in iommu_replace_group_handle()
3595 xa_release(&group->pasid_array, IOMMU_NO_PASID); in iommu_replace_group_handle()