Lines Matching refs:pgtable
180 static sysmmu_pte_t *section_entry(sysmmu_pte_t *pgtable, sysmmu_iova_t iova) in section_entry() argument
182 return pgtable + lv1ent_offset(iova); in section_entry()
250 sysmmu_pte_t *pgtable; /* lv1 page table, 16KB */ member
300 phys_addr_t pgtable; /* assigned page table structure */ member
557 dev_dbg(data->sysmmu, "Page table base: %pa\n", &data->pgtable); in show_fault_information()
558 ent = section_entry(phys_to_virt(data->pgtable), fault->addr); in show_fault_information()
656 __sysmmu_set_ptbase(data, data->pgtable); in __sysmmu_enable()
905 domain->pgtable = iommu_alloc_pages(GFP_KERNEL, 2); in exynos_iommu_domain_alloc_paging()
906 if (!domain->pgtable) in exynos_iommu_domain_alloc_paging()
915 domain->pgtable[i] = ZERO_LV2LINK; in exynos_iommu_domain_alloc_paging()
917 handle = dma_map_single(dma_dev, domain->pgtable, LV1TABLE_SIZE, in exynos_iommu_domain_alloc_paging()
920 BUG_ON(handle != virt_to_phys(domain->pgtable)); in exynos_iommu_domain_alloc_paging()
937 iommu_free_pages(domain->pgtable, 2); in exynos_iommu_domain_alloc_paging()
957 data->pgtable = 0; in exynos_iommu_domain_free()
965 dma_unmap_single(dma_dev, virt_to_phys(domain->pgtable), LV1TABLE_SIZE, in exynos_iommu_domain_free()
969 if (lv1ent_page(domain->pgtable + i)) { in exynos_iommu_domain_free()
970 phys_addr_t base = lv2table_base(domain->pgtable + i); in exynos_iommu_domain_free()
978 iommu_free_pages(domain->pgtable, 2); in exynos_iommu_domain_free()
996 pagetable = virt_to_phys(domain->pgtable); in exynos_iommu_identity_attach()
1010 data->pgtable = 0; in exynos_iommu_identity_attach()
1040 phys_addr_t pagetable = virt_to_phys(domain->pgtable); in exynos_iommu_attach_device()
1053 data->pgtable = pagetable; in exynos_iommu_attach_device()
1242 BUG_ON(domain->pgtable == NULL); in exynos_iommu_map()
1247 entry = section_entry(domain->pgtable, iova); in exynos_iommu_map()
1300 BUG_ON(domain->pgtable == NULL); in exynos_iommu_unmap()
1304 ent = section_entry(domain->pgtable, iova); in exynos_iommu_unmap()
1380 entry = section_entry(domain->pgtable, iova); in exynos_iommu_iova_to_phys()