Searched refs:vdomain (Results 1 – 1 of 1) sorted by relevance
/Linux-v6.6/drivers/iommu/ |
D | virtio-iommu.c | 79 struct viommu_domain *vdomain; member 313 static int viommu_add_mapping(struct viommu_domain *vdomain, u64 iova, u64 end, in viommu_add_mapping() argument 328 spin_lock_irqsave(&vdomain->mappings_lock, irqflags); in viommu_add_mapping() 329 interval_tree_insert(&mapping->iova, &vdomain->mappings); in viommu_add_mapping() 330 spin_unlock_irqrestore(&vdomain->mappings_lock, irqflags); in viommu_add_mapping() 344 static size_t viommu_del_mappings(struct viommu_domain *vdomain, in viommu_del_mappings() argument 352 spin_lock_irqsave(&vdomain->mappings_lock, flags); in viommu_del_mappings() 353 next = interval_tree_iter_first(&vdomain->mappings, iova, end); in viommu_del_mappings() 369 interval_tree_remove(node, &vdomain->mappings); in viommu_del_mappings() 372 spin_unlock_irqrestore(&vdomain->mappings_lock, flags); in viommu_del_mappings() [all …]
|