Lines Matching refs:pgtable

177 static sysmmu_pte_t *section_entry(sysmmu_pte_t *pgtable, sysmmu_iova_t iova)  in section_entry()  argument
179 return pgtable + lv1ent_offset(iova); in section_entry()
247 sysmmu_pte_t *pgtable; /* lv1 page table, 16KB */ member
297 phys_addr_t pgtable; /* assigned page table structure */ member
554 dev_dbg(data->sysmmu, "Page table base: %pa\n", &data->pgtable); in show_fault_information()
555 ent = section_entry(phys_to_virt(data->pgtable), fault->addr); in show_fault_information()
653 __sysmmu_set_ptbase(data, data->pgtable); in __sysmmu_enable()
913 domain->pgtable = (sysmmu_pte_t *)__get_free_pages(GFP_KERNEL, 2); in exynos_iommu_domain_alloc()
914 if (!domain->pgtable) in exynos_iommu_domain_alloc()
923 domain->pgtable[i] = ZERO_LV2LINK; in exynos_iommu_domain_alloc()
925 handle = dma_map_single(dma_dev, domain->pgtable, LV1TABLE_SIZE, in exynos_iommu_domain_alloc()
928 BUG_ON(handle != virt_to_phys(domain->pgtable)); in exynos_iommu_domain_alloc()
945 free_pages((unsigned long)domain->pgtable, 2); in exynos_iommu_domain_alloc()
965 data->pgtable = 0; in exynos_iommu_domain_free()
973 dma_unmap_single(dma_dev, virt_to_phys(domain->pgtable), LV1TABLE_SIZE, in exynos_iommu_domain_free()
977 if (lv1ent_page(domain->pgtable + i)) { in exynos_iommu_domain_free()
978 phys_addr_t base = lv2table_base(domain->pgtable + i); in exynos_iommu_domain_free()
986 free_pages((unsigned long)domain->pgtable, 2); in exynos_iommu_domain_free()
996 phys_addr_t pagetable = virt_to_phys(domain->pgtable); in exynos_iommu_detach_device()
1015 data->pgtable = 0; in exynos_iommu_detach_device()
1035 phys_addr_t pagetable = virt_to_phys(domain->pgtable); in exynos_iommu_attach_device()
1049 data->pgtable = pagetable; in exynos_iommu_attach_device()
1238 BUG_ON(domain->pgtable == NULL); in exynos_iommu_map()
1243 entry = section_entry(domain->pgtable, iova); in exynos_iommu_map()
1294 BUG_ON(domain->pgtable == NULL); in exynos_iommu_unmap()
1298 ent = section_entry(domain->pgtable, iova); in exynos_iommu_unmap()
1374 entry = section_entry(domain->pgtable, iova); in exynos_iommu_iova_to_phys()