Lines Matching refs:pdomain
3248 struct protection_domain *pdomain; in amd_iommu_domain_alloc() local
3254 pdomain = protection_domain_alloc(); in amd_iommu_domain_alloc()
3255 if (!pdomain) in amd_iommu_domain_alloc()
3258 pdomain->mode = PAGE_MODE_3_LEVEL; in amd_iommu_domain_alloc()
3259 pdomain->pt_root = (void *)get_zeroed_page(GFP_KERNEL); in amd_iommu_domain_alloc()
3260 if (!pdomain->pt_root) in amd_iommu_domain_alloc()
3263 pdomain->domain.geometry.aperture_start = 0; in amd_iommu_domain_alloc()
3264 pdomain->domain.geometry.aperture_end = ~0ULL; in amd_iommu_domain_alloc()
3265 pdomain->domain.geometry.force_aperture = true; in amd_iommu_domain_alloc()
3267 return &pdomain->domain; in amd_iommu_domain_alloc()
3270 protection_domain_free(pdomain); in amd_iommu_domain_alloc()
3769 struct protection_domain *pdomain; in amd_iommu_get_v2_domain() local
3771 pdomain = get_domain(&pdev->dev); in amd_iommu_get_v2_domain()
3772 if (IS_ERR(pdomain)) in amd_iommu_get_v2_domain()
3776 if (!(pdomain->flags & PD_IOMMUV2_MASK)) in amd_iommu_get_v2_domain()
3779 return &pdomain->domain; in amd_iommu_get_v2_domain()