Lines Matching refs:pdom
240 struct protection_domain *pdom = io_pgtable_ops_to_domain(ops); in iommu_v2_map_pages() local
241 struct io_pgtable_cfg *cfg = &pdom->iop.iop.cfg; in iommu_v2_map_pages()
259 pte = v2_alloc_pte(pdom->nid, pdom->iop.pgd, in iommu_v2_map_pages()
277 amd_iommu_flush_tlb(&pdom->domain, 0); in iommu_v2_map_pages()
279 amd_iommu_flush_page(&pdom->domain, 0, o_iova); in iommu_v2_map_pages()
359 struct protection_domain *pdom; in v2_free_pgtable() local
362 pdom = container_of(pgtable, struct protection_domain, iop); in v2_free_pgtable()
363 if (!(pdom->flags & PD_IOMMUV2_MASK)) in v2_free_pgtable()
370 amd_iommu_domain_update(pdom); in v2_free_pgtable()
379 struct protection_domain *pdom = (struct protection_domain *)cookie; in v2_alloc_pgtable() local
383 pgtable->pgd = alloc_pgtable_page(pdom->nid, GFP_ATOMIC); in v2_alloc_pgtable()
387 ret = amd_iommu_domain_set_gcr3(&pdom->domain, 0, iommu_virt_to_phys(pgtable->pgd)); in v2_alloc_pgtable()