Searched refs:gdomid_array (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/iommu/amd/ |
| H A D | nested.c | 142 xa_lock_irqsave(&aviommu->gdomid_array, irqflags); in amd_iommu_alloc_domain_nested() 144 gdom_info = gdom_info_load_or_alloc_locked(&aviommu->gdomid_array, in amd_iommu_alloc_domain_nested() 147 xa_unlock_irqrestore(&aviommu->gdomid_array, irqflags); in amd_iommu_alloc_domain_nested() 155 xa_unlock_irqrestore(&aviommu->gdomid_array, irqflags); in amd_iommu_alloc_domain_nested() 166 __xa_cmpxchg(&aviommu->gdomid_array, in amd_iommu_alloc_domain_nested() 168 xa_unlock_irqrestore(&aviommu->gdomid_array, irqflags); in amd_iommu_alloc_domain_nested() 177 xa_unlock_irqrestore(&aviommu->gdomid_array, irqflags); in amd_iommu_alloc_domain_nested() 270 xa_lock_irqsave(&aviommu->gdomid_array, irqflags); in nested_domain_free() 273 xa_unlock_irqrestore(&aviommu->gdomid_array, irqflags); in nested_domain_free() 281 curr = __xa_cmpxchg(&aviommu->gdomid_array, ndom->gdom_id, in nested_domain_free() [all …]
|
| H A D | iommufd.c | 47 xa_init_flags(&aviommu->gdomid_array, XA_FLAGS_ALLOC1); in amd_iommufd_viommu_init() 68 xa_destroy(&aviommu->gdomid_array); in amd_iommufd_viommu_destroy()
|
| H A D | amd_iommu_types.h | 500 struct xarray gdomid_array; member
|
| H A D | iommu.c | 1600 xa_lock(&aviommu->gdomid_array); in iommu_flush_pages_v1_hdom_ids() 1601 xa_for_each(&aviommu->gdomid_array, i, gdom_info) { in iommu_flush_pages_v1_hdom_ids() 1610 xa_unlock(&aviommu->gdomid_array); in iommu_flush_pages_v1_hdom_ids()
|