Lines Matching refs:pgtable
141 static sysmmu_pte_t *section_entry(sysmmu_pte_t *pgtable, sysmmu_iova_t iova) in section_entry() argument
143 return pgtable + lv1ent_offset(iova); in section_entry()
206 sysmmu_pte_t *pgtable; /* lv1 page table, 16KB */ member
230 phys_addr_t pgtable; /* assigned page table structure */ member
401 data->pgtable = 0; in __sysmmu_disable()
449 __sysmmu_set_ptbase(data->sfrbase, data->pgtable); in __sysmmu_enable_nocount()
457 static int __sysmmu_enable(struct sysmmu_drvdata *data, phys_addr_t pgtable, in __sysmmu_enable() argument
465 data->pgtable = pgtable; in __sysmmu_enable()
472 ret = (pgtable == data->pgtable) ? 1 : -EBUSY; in __sysmmu_enable()
672 domain->pgtable = (sysmmu_pte_t *)__get_free_pages(GFP_KERNEL, 2); in exynos_iommu_domain_alloc()
673 if (!domain->pgtable) in exynos_iommu_domain_alloc()
682 domain->pgtable[i + 0] = ZERO_LV2LINK; in exynos_iommu_domain_alloc()
683 domain->pgtable[i + 1] = ZERO_LV2LINK; in exynos_iommu_domain_alloc()
684 domain->pgtable[i + 2] = ZERO_LV2LINK; in exynos_iommu_domain_alloc()
685 domain->pgtable[i + 3] = ZERO_LV2LINK; in exynos_iommu_domain_alloc()
686 domain->pgtable[i + 4] = ZERO_LV2LINK; in exynos_iommu_domain_alloc()
687 domain->pgtable[i + 5] = ZERO_LV2LINK; in exynos_iommu_domain_alloc()
688 domain->pgtable[i + 6] = ZERO_LV2LINK; in exynos_iommu_domain_alloc()
689 domain->pgtable[i + 7] = ZERO_LV2LINK; in exynos_iommu_domain_alloc()
692 pgtable_flush(domain->pgtable, domain->pgtable + NUM_LV1ENTRIES); in exynos_iommu_domain_alloc()
705 free_pages((unsigned long)domain->pgtable, 2); in exynos_iommu_domain_alloc()
731 if (lv1ent_page(domain->pgtable + i)) in exynos_iommu_domain_free()
733 phys_to_virt(lv2table_base(domain->pgtable + i))); in exynos_iommu_domain_free()
735 free_pages((unsigned long)domain->pgtable, 2); in exynos_iommu_domain_free()
746 phys_addr_t pagetable = virt_to_phys(domain->pgtable); in exynos_iommu_attach_device()
781 phys_addr_t pagetable = virt_to_phys(domain->pgtable); in exynos_iommu_detach_device()
967 BUG_ON(domain->pgtable == NULL); in exynos_iommu_map()
971 entry = section_entry(domain->pgtable, iova); in exynos_iommu_map()
1021 BUG_ON(domain->pgtable == NULL); in exynos_iommu_unmap()
1025 ent = section_entry(domain->pgtable, iova); in exynos_iommu_unmap()
1099 entry = section_entry(domain->pgtable, iova); in exynos_iommu_iova_to_phys()