Lines Matching refs:nvidia_smmu
34 struct nvidia_smmu { struct
41 static inline struct nvidia_smmu *to_nvidia_smmu(struct arm_smmu_device *smmu) in to_nvidia_smmu() argument
43 return container_of(smmu, struct nvidia_smmu, smmu); in to_nvidia_smmu()
49 struct nvidia_smmu *nvidia_smmu; in nvidia_smmu_page() local
51 nvidia_smmu = container_of(smmu, struct nvidia_smmu, smmu); in nvidia_smmu_page()
52 return nvidia_smmu->bases[inst] + (page << smmu->pgshift); in nvidia_smmu_page()
66 struct nvidia_smmu *nvidia = to_nvidia_smmu(smmu); in nvidia_smmu_write_reg()
87 struct nvidia_smmu *nvidia = to_nvidia_smmu(smmu); in nvidia_smmu_write_reg64()
100 struct nvidia_smmu *nvidia = to_nvidia_smmu(smmu); in nvidia_smmu_tlb_sync()
134 struct nvidia_smmu *nvidia = to_nvidia_smmu(smmu); in nvidia_smmu_reset()
180 struct nvidia_smmu *nvidia = to_nvidia_smmu(smmu); in nvidia_smmu_global_fault()
225 struct nvidia_smmu *nvidia; in nvidia_smmu_context_fault()
250 struct nvidia_smmu *nvidia = to_nvidia_smmu(smmu); in nvidia_smmu_probe_finalize()
309 struct nvidia_smmu *nvidia_smmu; in nvidia_smmu_impl_init() local
313 nvidia_smmu = devm_krealloc(dev, smmu, sizeof(*nvidia_smmu), GFP_KERNEL); in nvidia_smmu_impl_init()
314 if (!nvidia_smmu) in nvidia_smmu_impl_init()
317 nvidia_smmu->mc = devm_tegra_memory_controller_get(dev); in nvidia_smmu_impl_init()
318 if (IS_ERR(nvidia_smmu->mc)) in nvidia_smmu_impl_init()
319 return ERR_CAST(nvidia_smmu->mc); in nvidia_smmu_impl_init()
322 nvidia_smmu->bases[0] = smmu->base; in nvidia_smmu_impl_init()
323 nvidia_smmu->num_instances++; in nvidia_smmu_impl_init()
330 nvidia_smmu->bases[i] = devm_ioremap_resource(dev, res); in nvidia_smmu_impl_init()
331 if (IS_ERR(nvidia_smmu->bases[i])) in nvidia_smmu_impl_init()
332 return ERR_CAST(nvidia_smmu->bases[i]); in nvidia_smmu_impl_init()
334 nvidia_smmu->num_instances++; in nvidia_smmu_impl_init()
337 if (nvidia_smmu->num_instances == 1) in nvidia_smmu_impl_init()
338 nvidia_smmu->smmu.impl = &nvidia_smmu_single_impl; in nvidia_smmu_impl_init()
340 nvidia_smmu->smmu.impl = &nvidia_smmu_impl; in nvidia_smmu_impl_init()
342 return &nvidia_smmu->smmu; in nvidia_smmu_impl_init()