Lines Matching refs:pdom
246 struct protection_domain *pdom = io_pgtable_ops_to_domain(ops); in iommu_v2_map_pages() local
247 struct io_pgtable_cfg *cfg = &pdom->iop.iop.cfg; in iommu_v2_map_pages()
265 pte = v2_alloc_pte(pdom->iop.pgd, iova, map_size, &updated); in iommu_v2_map_pages()
282 amd_iommu_flush_tlb(&pdom->domain, 0); in iommu_v2_map_pages()
284 amd_iommu_flush_page(&pdom->domain, 0, o_iova); in iommu_v2_map_pages()
364 struct protection_domain *pdom; in v2_free_pgtable() local
367 pdom = container_of(pgtable, struct protection_domain, iop); in v2_free_pgtable()
368 if (!(pdom->flags & PD_IOMMUV2_MASK)) in v2_free_pgtable()
375 amd_iommu_domain_update(pdom); in v2_free_pgtable()
384 struct protection_domain *pdom = (struct protection_domain *)cookie; in v2_alloc_pgtable() local
391 ret = amd_iommu_domain_set_gcr3(&pdom->domain, 0, iommu_virt_to_phys(pgtable->pgd)); in v2_alloc_pgtable()