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()
149 struct msm_iommu_pagetable *pagetable; in msm_iommu_pagetable_create() local
154 /* Get the pagetable configuration from the domain */ in msm_iommu_pagetable_create()
160 pagetable = kzalloc(sizeof(*pagetable), GFP_KERNEL); in msm_iommu_pagetable_create()
161 if (!pagetable) in msm_iommu_pagetable_create()
164 msm_mmu_init(&pagetable->base, parent->dev, &pagetable_funcs, in msm_iommu_pagetable_create()
174 pagetable->pgtbl_ops = alloc_io_pgtable_ops(ARM_64_LPAE_S1, in msm_iommu_pagetable_create()
177 if (!pagetable->pgtbl_ops) { in msm_iommu_pagetable_create()
178 kfree(pagetable); in msm_iommu_pagetable_create()
183 * If this is the first pagetable that we've allocated, send it back to in msm_iommu_pagetable_create()
189 free_io_pgtable_ops(pagetable->pgtbl_ops); in msm_iommu_pagetable_create()
190 kfree(pagetable); in msm_iommu_pagetable_create()
196 pagetable->parent = parent; in msm_iommu_pagetable_create()
197 pagetable->ttbr = ttbr0_cfg.arm_lpae_s1_cfg.ttbr; in msm_iommu_pagetable_create()
205 pagetable->asid = 0; in msm_iommu_pagetable_create()
207 return &pagetable->base; in msm_iommu_pagetable_create()