Lines Matching refs:pagetable
35 struct msm_iommu_pagetable *pagetable = to_pagetable(mmu);
36 struct io_pgtable_ops *ops = pagetable->pgtbl_ops;
46 iommu_flush_iotlb_all(to_msm_iommu(pagetable->parent)->domain);
54 struct msm_iommu_pagetable *pagetable = to_pagetable(mmu);
55 struct io_pgtable_ops *ops = pagetable->pgtbl_ops;
84 struct msm_iommu_pagetable *pagetable = to_pagetable(mmu);
85 struct msm_iommu *iommu = to_msm_iommu(pagetable->parent);
87 dev_get_drvdata(pagetable->parent->dev);
90 * If this is the last attached pagetable for the parent,
96 free_io_pgtable_ops(pagetable->pgtbl_ops);
97 kfree(pagetable);
103 struct msm_iommu_pagetable *pagetable;
108 pagetable = to_pagetable(mmu);
111 *ttbr = pagetable->ttbr;
114 *asid = pagetable->asid;
150 struct msm_iommu_pagetable *pagetable;
155 /* Get the pagetable configuration from the domain */
166 pagetable = kzalloc(sizeof(*pagetable), GFP_KERNEL);
167 if (!pagetable)
170 msm_mmu_init(&pagetable->base, parent->dev, &pagetable_funcs,
180 pagetable->pgtbl_ops = alloc_io_pgtable_ops(ARM_64_LPAE_S1,
183 if (!pagetable->pgtbl_ops) {
184 kfree(pagetable);
189 * If this is the first pagetable that we've allocated, send it back to
195 free_io_pgtable_ops(pagetable->pgtbl_ops);
196 kfree(pagetable);
202 pagetable->parent = parent;
203 pagetable->ttbr = ttbr0_cfg.arm_lpae_s1_cfg.ttbr;
211 pagetable->asid = 0;
213 return &pagetable->base;