Home
last modified time | relevance | path

Searched refs:pgtbl_cfg (Results 1 – 11 of 11) sorted by relevance

/linux-6.1.9/drivers/iommu/arm/arm-smmu/
Darm-smmu-qcom.c137 const struct io_pgtable_cfg *pgtbl_cfg) in qcom_adreno_smmu_set_ttbr0_cfg() argument
149 if (!pgtbl_cfg) { in qcom_adreno_smmu_set_ttbr0_cfg()
164 tcr |= arm_smmu_lpae_tcr(pgtbl_cfg); in qcom_adreno_smmu_set_ttbr0_cfg()
168 cb->ttbr[0] = pgtbl_cfg->arm_lpae_s1_cfg.ttbr; in qcom_adreno_smmu_set_ttbr0_cfg()
209 struct io_pgtable_cfg *pgtbl_cfg, struct device *dev) in qcom_adreno_smmu_init_context() argument
227 pgtbl_cfg->quirks |= IO_PGTABLE_QUIRK_ARM_TTBR1; in qcom_adreno_smmu_init_context()
260 struct io_pgtable_cfg *pgtbl_cfg, struct device *dev) in qcom_smmu_init_context() argument
Dqcom_iommu.c233 struct io_pgtable_cfg pgtbl_cfg; in qcom_iommu_init_domain() local
241 pgtbl_cfg = (struct io_pgtable_cfg) { in qcom_iommu_init_domain()
252 pgtbl_ops = alloc_io_pgtable_ops(ARM_32_LPAE_S1, &pgtbl_cfg, qcom_domain); in qcom_iommu_init_domain()
260 domain->pgsize_bitmap = pgtbl_cfg.pgsize_bitmap; in qcom_iommu_init_domain()
261 domain->geometry.aperture_end = (1ULL << pgtbl_cfg.ias) - 1; in qcom_iommu_init_domain()
278 pgtbl_cfg.arm_lpae_s1_cfg.ttbr | in qcom_iommu_init_domain()
284 arm_smmu_lpae_tcr2(&pgtbl_cfg)); in qcom_iommu_init_domain()
286 arm_smmu_lpae_tcr(&pgtbl_cfg) | ARM_SMMU_TCR_EAE); in qcom_iommu_init_domain()
290 pgtbl_cfg.arm_lpae_s1_cfg.mair); in qcom_iommu_init_domain()
292 pgtbl_cfg.arm_lpae_s1_cfg.mair >> 32); in qcom_iommu_init_domain()
Darm-smmu.c456 struct io_pgtable_cfg *pgtbl_cfg) in arm_smmu_init_context_bank() argument
467 cb->tcr[0] = pgtbl_cfg->arm_v7s_cfg.tcr; in arm_smmu_init_context_bank()
469 cb->tcr[0] = arm_smmu_lpae_tcr(pgtbl_cfg); in arm_smmu_init_context_bank()
470 cb->tcr[1] = arm_smmu_lpae_tcr2(pgtbl_cfg); in arm_smmu_init_context_bank()
477 cb->tcr[0] = arm_smmu_lpae_vtcr(pgtbl_cfg); in arm_smmu_init_context_bank()
483 cb->ttbr[0] = pgtbl_cfg->arm_v7s_cfg.ttbr; in arm_smmu_init_context_bank()
491 if (pgtbl_cfg->quirks & IO_PGTABLE_QUIRK_ARM_TTBR1) in arm_smmu_init_context_bank()
492 cb->ttbr[1] |= pgtbl_cfg->arm_lpae_s1_cfg.ttbr; in arm_smmu_init_context_bank()
494 cb->ttbr[0] |= pgtbl_cfg->arm_lpae_s1_cfg.ttbr; in arm_smmu_init_context_bank()
497 cb->ttbr[0] = pgtbl_cfg->arm_lpae_s2_cfg.vttbr; in arm_smmu_init_context_bank()
[all …]
Darm-smmu-nvidia.c262 struct io_pgtable_cfg *pgtbl_cfg, in nvidia_smmu_init_context() argument
283 pgtbl_cfg->pgsize_bitmap = smmu->pgsize_bitmap; in nvidia_smmu_init_context()
Darm-smmu-impl.c72 struct io_pgtable_cfg *pgtbl_cfg, struct device *dev) in cavium_init_context() argument
/linux-6.1.9/drivers/iommu/
Dapple-dart.c396 struct io_pgtable_cfg *pgtbl_cfg = in apple_dart_setup_translation() local
399 for (i = 0; i < pgtbl_cfg->apple_dart_cfg.n_ttbrs; ++i) in apple_dart_setup_translation()
401 pgtbl_cfg->apple_dart_cfg.ttbr[i]); in apple_dart_setup_translation()
414 struct io_pgtable_cfg pgtbl_cfg; in apple_dart_finalize_domain() local
429 pgtbl_cfg = (struct io_pgtable_cfg){ in apple_dart_finalize_domain()
438 alloc_io_pgtable_ops(dart->hw->fmt, &pgtbl_cfg, domain); in apple_dart_finalize_domain()
444 domain->pgsize_bitmap = pgtbl_cfg.pgsize_bitmap; in apple_dart_finalize_domain()
/linux-6.1.9/drivers/iommu/arm/arm-smmu-v3/
Darm-smmu-v3.c2081 struct io_pgtable_cfg *pgtbl_cfg) in arm_smmu_domain_finalise_s1() argument
2087 typeof(&pgtbl_cfg->arm_lpae_s1_cfg.tcr) tcr = &pgtbl_cfg->arm_lpae_s1_cfg.tcr; in arm_smmu_domain_finalise_s1()
2107 cfg->cd.ttbr = pgtbl_cfg->arm_lpae_s1_cfg.ttbr; in arm_smmu_domain_finalise_s1()
2115 cfg->cd.mair = pgtbl_cfg->arm_lpae_s1_cfg.mair; in arm_smmu_domain_finalise_s1()
2140 struct io_pgtable_cfg *pgtbl_cfg) in arm_smmu_domain_finalise_s2() argument
2145 typeof(&pgtbl_cfg->arm_lpae_s2_cfg.vtcr) vtcr; in arm_smmu_domain_finalise_s2()
2151 vtcr = &pgtbl_cfg->arm_lpae_s2_cfg.vtcr; in arm_smmu_domain_finalise_s2()
2153 cfg->vttbr = pgtbl_cfg->arm_lpae_s2_cfg.vttbr; in arm_smmu_domain_finalise_s2()
2170 struct io_pgtable_cfg pgtbl_cfg; in arm_smmu_domain_finalise() local
2208 pgtbl_cfg = (struct io_pgtable_cfg) { in arm_smmu_domain_finalise()
[all …]
/linux-6.1.9/drivers/gpu/drm/panfrost/
Dpanfrost_device.h128 struct io_pgtable_cfg pgtbl_cfg; member
Dpanfrost_mmu.c127 struct io_pgtable_cfg *cfg = &mmu->pgtbl_cfg; in panfrost_mmu_enable()
624 mmu->pgtbl_cfg = (struct io_pgtable_cfg) { in panfrost_mmu_ctx_create()
633 mmu->pgtbl_ops = alloc_io_pgtable_ops(ARM_MALI_LPAE, &mmu->pgtbl_cfg, in panfrost_mmu_ctx_create()
/linux-6.1.9/drivers/iommu/amd/
Damd_iommu_types.h529 container_of((x), struct amd_io_pgtable, pgtbl_cfg)
532 struct io_pgtable_cfg pgtbl_cfg; member
Diommu.c1987 if (domain->iop.pgtbl_cfg.tlb) in protection_domain_free()
2076 pgtbl_ops = alloc_io_pgtable_ops(pgtable, &domain->iop.pgtbl_cfg, domain); in protection_domain_alloc()
2468 if (domain->iop.pgtbl_cfg.tlb) in amd_iommu_domain_direct_map()