Lines Matching defs:dom
2463 void amd_iommu_domain_free(struct iommu_domain *dom)
2468 if (!dom)
2471 domain = to_pdomain(dom);
2482 static int amd_iommu_attach_device(struct iommu_domain *dom,
2486 struct protection_domain *domain = to_pdomain(dom);
2503 if (dom->dirty_ops && !amd_iommu_hd_support(iommu))
2513 if (dom->type == IOMMU_DOMAIN_UNMANAGED)
2525 static int amd_iommu_iotlb_sync_map(struct iommu_domain *dom,
2528 struct protection_domain *domain = to_pdomain(dom);
2536 static int amd_iommu_map_pages(struct iommu_domain *dom, unsigned long iova,
2540 struct protection_domain *domain = to_pdomain(dom);
2583 static size_t amd_iommu_unmap_pages(struct iommu_domain *dom, unsigned long iova,
2587 struct protection_domain *domain = to_pdomain(dom);
2598 amd_iommu_iotlb_gather_add_page(dom, gather, iova, r);
2603 static phys_addr_t amd_iommu_iova_to_phys(struct iommu_domain *dom,
2606 struct protection_domain *domain = to_pdomain(dom);
2769 struct protection_domain *dom = to_pdomain(domain);
2772 spin_lock_irqsave(&dom->lock, flags);
2773 amd_iommu_domain_flush_all(dom);
2774 spin_unlock_irqrestore(&dom->lock, flags);
2780 struct protection_domain *dom = to_pdomain(domain);
2783 spin_lock_irqsave(&dom->lock, flags);
2784 amd_iommu_domain_flush_pages(dom, gather->start,
2786 spin_unlock_irqrestore(&dom->lock, flags);