Home
last modified time | relevance | path

Searched refs:smmu_domain (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/iommu/arm/arm-smmu/
A Darm-smmu.c263 arm_smmu_cb_write(smmu_domain->smmu, smmu_domain->cfg.cbndx, in arm_smmu_tlb_inv_context_s1()
642 if (smmu_domain->smmu) in arm_smmu_init_domain_context()
647 smmu_domain->smmu = smmu; in arm_smmu_init_domain_context()
751 smmu_domain->smmu = smmu; in arm_smmu_init_domain_context()
833 smmu_domain->smmu = NULL; in arm_smmu_init_domain_context()
885 smmu_domain = kzalloc(sizeof(*smmu_domain), GFP_KERNEL); in arm_smmu_domain_alloc()
886 if (!smmu_domain) in arm_smmu_domain_alloc()
904 kfree(smmu_domain); in arm_smmu_domain_free()
1242 smmu_domain->flush_ops->tlb_flush_all(smmu_domain); in arm_smmu_flush_iotlb_all()
1516 if (smmu_domain->smmu) in arm_smmu_enable_nesting()
[all …]
A Darm-smmu-qcom.c45 struct arm_smmu_domain *smmu_domain = (void *)cookie; in qcom_adreno_smmu_get_fault_info() local
46 struct arm_smmu_cfg *cfg = &smmu_domain->cfg; in qcom_adreno_smmu_get_fault_info()
47 struct arm_smmu_device *smmu = smmu_domain->smmu; in qcom_adreno_smmu_get_fault_info()
61 struct arm_smmu_cfg *cfg = &smmu_domain->cfg; in qcom_adreno_smmu_set_stall()
73 struct arm_smmu_cfg *cfg = &smmu_domain->cfg; in qcom_adreno_smmu_resume_translation()
74 struct arm_smmu_device *smmu = smmu_domain->smmu; in qcom_adreno_smmu_resume_translation()
109 io_pgtable_ops_to_pgtable(smmu_domain->pgtbl_ops); in qcom_adreno_smmu_get_ttbr1_cfg()
124 struct arm_smmu_cfg *cfg = &smmu_domain->cfg; in qcom_adreno_smmu_set_ttbr0_cfg()
207 if (qcom_adreno_can_do_ttbr1(smmu_domain->smmu) && in qcom_adreno_smmu_init_context()
208 (smmu_domain->stage == ARM_SMMU_DOMAIN_S1) && in qcom_adreno_smmu_init_context()
[all …]
A Darm-smmu-impl.c71 static int cavium_init_context(struct arm_smmu_domain *smmu_domain, in cavium_init_context() argument
74 struct cavium_smmu *cs = container_of(smmu_domain->smmu, in cavium_init_context()
77 if (smmu_domain->stage == ARM_SMMU_DOMAIN_S2) in cavium_init_context()
78 smmu_domain->cfg.vmid += cs->id_base; in cavium_init_context()
80 smmu_domain->cfg.asid += cs->id_base; in cavium_init_context()
A Darm-smmu-nvidia.c225 struct arm_smmu_domain *smmu_domain; in nvidia_smmu_context_fault() local
228 smmu_domain = container_of(domain, struct arm_smmu_domain, domain); in nvidia_smmu_context_fault()
229 smmu = smmu_domain->smmu; in nvidia_smmu_context_fault()
A Darm-smmu.h433 int (*init_context)(struct arm_smmu_domain *smmu_domain,
440 int (*alloc_context_bank)(struct arm_smmu_domain *smmu_domain,
/linux/drivers/iommu/arm/arm-smmu-v3/
A Darm-smmu-v3-sva.c50 struct arm_smmu_domain *smmu_domain; in arm_smmu_share_asid() local
65 smmu = smmu_domain->smmu; in arm_smmu_share_asid()
82 arm_smmu_write_ctx_desc(smmu_domain, 0, cd); in arm_smmu_share_asid()
185 struct arm_smmu_domain *smmu_domain = smmu_mn->domain; in arm_smmu_mm_invalidate_range() local
190 PAGE_SIZE, false, smmu_domain); in arm_smmu_mm_invalidate_range()
197 struct arm_smmu_domain *smmu_domain = smmu_mn->domain; in arm_smmu_mm_release() local
212 arm_smmu_atc_inv_domain(smmu_domain, mm->pasid, 0, 0); in arm_smmu_mm_release()
257 smmu_mn->domain = smmu_domain; in arm_smmu_mmu_notifier_get()
270 list_add(&smmu_mn->list, &smmu_domain->mmu_notifiers); in arm_smmu_mmu_notifier_get()
298 arm_smmu_tlb_inv_asid(smmu_domain->smmu, cd->asid); in arm_smmu_mmu_notifier_put()
[all …]
A Darm-smmu-v3.c1278 if (smmu_domain) { in arm_smmu_write_strtab_ent()
2012 smmu_domain = kzalloc(sizeof(*smmu_domain), GFP_KERNEL); in arm_smmu_domain_alloc()
2013 if (!smmu_domain) in arm_smmu_domain_alloc()
2021 return &smmu_domain->domain; in arm_smmu_domain_alloc()
2065 kfree(smmu_domain); in arm_smmu_domain_free()
2371 if (!smmu_domain) in arm_smmu_detach_dev()
2414 if (!smmu_domain->smmu) { in arm_smmu_attach_dev()
2415 smmu_domain->smmu = smmu; in arm_smmu_attach_dev()
2418 smmu_domain->smmu = NULL; in arm_smmu_attach_dev()
2490 if (smmu_domain->smmu) in arm_smmu_flush_iotlb_all()
[all …]
A Darm-smmu-v3.h741 int arm_smmu_write_ctx_desc(struct arm_smmu_domain *smmu_domain, int ssid,
746 struct arm_smmu_domain *smmu_domain);
748 int arm_smmu_atc_inv_domain(struct arm_smmu_domain *smmu_domain, int ssid,

Completed in 29 milliseconds