Lines Matching full:pagetable
35 struct msm_iommu_pagetable *pagetable = to_pagetable(mmu); in msm_iommu_pagetable_unmap() local
36 struct io_pgtable_ops *ops = pagetable->pgtbl_ops; in msm_iommu_pagetable_unmap()
46 iommu_flush_iotlb_all(to_msm_iommu(pagetable->parent)->domain); in msm_iommu_pagetable_unmap()
54 struct msm_iommu_pagetable *pagetable = to_pagetable(mmu); in msm_iommu_pagetable_map() local
55 struct io_pgtable_ops *ops = pagetable->pgtbl_ops; in msm_iommu_pagetable_map()
84 struct msm_iommu_pagetable *pagetable = to_pagetable(mmu); in msm_iommu_pagetable_destroy() local
85 struct msm_iommu *iommu = to_msm_iommu(pagetable->parent); in msm_iommu_pagetable_destroy()
87 dev_get_drvdata(pagetable->parent->dev); in msm_iommu_pagetable_destroy()
90 * If this is the last attached pagetable for the parent, in msm_iommu_pagetable_destroy()
96 free_io_pgtable_ops(pagetable->pgtbl_ops); in msm_iommu_pagetable_destroy()
97 kfree(pagetable); in msm_iommu_pagetable_destroy()
103 struct msm_iommu_pagetable *pagetable; in msm_iommu_pagetable_params() local
108 pagetable = to_pagetable(mmu); in msm_iommu_pagetable_params()
111 *ttbr = pagetable->ttbr; in msm_iommu_pagetable_params()
114 *asid = pagetable->asid; in msm_iommu_pagetable_params()
152 struct msm_iommu_pagetable *pagetable; in msm_iommu_pagetable_create() local
157 /* Get the pagetable configuration from the domain */ in msm_iommu_pagetable_create()
170 pagetable = kzalloc(sizeof(*pagetable), GFP_KERNEL); in msm_iommu_pagetable_create()
171 if (!pagetable) in msm_iommu_pagetable_create()
174 msm_mmu_init(&pagetable->base, parent->dev, &pagetable_funcs, in msm_iommu_pagetable_create()
184 pagetable->pgtbl_ops = alloc_io_pgtable_ops(ARM_64_LPAE_S1, in msm_iommu_pagetable_create()
187 if (!pagetable->pgtbl_ops) { in msm_iommu_pagetable_create()
188 kfree(pagetable); in msm_iommu_pagetable_create()
193 * If this is the first pagetable that we've allocated, send it back to in msm_iommu_pagetable_create()
202 free_io_pgtable_ops(pagetable->pgtbl_ops); in msm_iommu_pagetable_create()
203 kfree(pagetable); in msm_iommu_pagetable_create()
209 pagetable->parent = parent; in msm_iommu_pagetable_create()
210 pagetable->ttbr = ttbr0_cfg.arm_lpae_s1_cfg.ttbr; in msm_iommu_pagetable_create()
218 pagetable->asid = 0; in msm_iommu_pagetable_create()
220 return &pagetable->base; in msm_iommu_pagetable_create()