/linux-6.1.9/arch/arm64/include/asm/ |
D | mmu_context.h | 43 unsigned long ttbr = phys_to_ttbr(__pa_symbol(reserved_pg_dir)); in cpu_set_reserved_ttbr0() local 45 write_sysreg(ttbr, ttbr0_el1); in cpu_set_reserved_ttbr0() 202 u64 ttbr; in update_saved_ttbr0() local 208 ttbr = phys_to_ttbr(__pa_symbol(reserved_pg_dir)); in update_saved_ttbr0() 210 ttbr = phys_to_ttbr(virt_to_phys(mm->pgd)) | ASID(mm) << 48; in update_saved_ttbr0() 212 WRITE_ONCE(task_thread_info(tsk)->ttbr0, ttbr); in update_saved_ttbr0()
|
D | assembler.h | 612 .macro offset_ttbr1, ttbr, tmp 617 orr \ttbr, \ttbr, #TTBR1_BADDR_4852_OFFSET 627 .macro restore_ttbr1, ttbr 629 bic \ttbr, \ttbr, #TTBR1_BADDR_4852_OFFSET 640 .macro phys_to_ttbr, ttbr, phys 642 orr \ttbr, \phys, \phys, lsr #46 643 and \ttbr, \ttbr, #TTBR_BADDR_MASK_52 645 mov \ttbr, \phys
|
D | uaccess.h | 61 unsigned long flags, ttbr; in __uaccess_ttbr0_disable() local 64 ttbr = read_sysreg(ttbr1_el1); in __uaccess_ttbr0_disable() 65 ttbr &= ~TTBR_ASID_MASK; in __uaccess_ttbr0_disable() 67 write_sysreg(ttbr - RESERVED_SWAPPER_OFFSET, ttbr0_el1); in __uaccess_ttbr0_disable() 70 write_sysreg(ttbr, ttbr1_el1); in __uaccess_ttbr0_disable()
|
/linux-6.1.9/drivers/gpu/drm/msm/ |
D | msm_iommu.c | 25 phys_addr_t ttbr; member 171 phys_addr_t *ttbr, int *asid) in msm_iommu_pagetable_params() argument 180 if (ttbr) in msm_iommu_pagetable_params() 181 *ttbr = pagetable->ttbr; in msm_iommu_pagetable_params() 281 pagetable->ttbr = ttbr0_cfg.arm_lpae_s1_cfg.ttbr; in msm_iommu_pagetable_create()
|
D | msm_mmu.h | 59 int msm_iommu_pagetable_params(struct msm_mmu *mmu, phys_addr_t *ttbr,
|
/linux-6.1.9/arch/arm/include/asm/ |
D | proc-fns.h | 160 u64 ttbr; \ 162 : "=r" (ttbr)); \ 163 ttbr; \
|
/linux-6.1.9/include/linux/ |
D | io-pgtable.h | 106 u64 ttbr; member 132 u32 ttbr; member 144 u64 ttbr[4]; member
|
/linux-6.1.9/drivers/iommu/arm/arm-smmu/ |
D | arm-smmu-qcom.c | 156 cb->ttbr[0] = FIELD_PREP(ARM_SMMU_TTBRn_ASID, cb->cfg->asid); 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() 169 cb->ttbr[0] |= FIELD_PREP(ARM_SMMU_TTBRn_ASID, cb->cfg->asid); in qcom_adreno_smmu_set_ttbr0_cfg()
|
D | arm-smmu.c | 483 cb->ttbr[0] = pgtbl_cfg->arm_v7s_cfg.ttbr; in arm_smmu_init_context_bank() 484 cb->ttbr[1] = 0; in arm_smmu_init_context_bank() 486 cb->ttbr[0] = FIELD_PREP(ARM_SMMU_TTBRn_ASID, in arm_smmu_init_context_bank() 488 cb->ttbr[1] = FIELD_PREP(ARM_SMMU_TTBRn_ASID, 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() 572 arm_smmu_cb_write(smmu, idx, ARM_SMMU_CB_TTBR0, cb->ttbr[0]); in arm_smmu_write_context_bank() 573 arm_smmu_cb_write(smmu, idx, ARM_SMMU_CB_TTBR1, cb->ttbr[1]); in arm_smmu_write_context_bank() 575 arm_smmu_cb_writeq(smmu, idx, ARM_SMMU_CB_TTBR0, cb->ttbr[0]); in arm_smmu_write_context_bank() [all …]
|
D | arm-smmu.h | 354 u64 ttbr[2]; member
|
D | qcom_iommu.c | 278 pgtbl_cfg.arm_lpae_s1_cfg.ttbr | in qcom_iommu_init_domain()
|
/linux-6.1.9/drivers/iommu/ |
D | ipmmu-vmsa.c | 371 u64 ttbr; in ipmmu_domain_setup_context() local 375 ttbr = domain->cfg.arm_lpae_s1_cfg.ttbr; in ipmmu_domain_setup_context() 376 ipmmu_ctx_write_root(domain, IMTTLBR0, ttbr); in ipmmu_domain_setup_context() 377 ipmmu_ctx_write_root(domain, IMTTUBR0, ttbr >> 32); in ipmmu_domain_setup_context()
|
D | io-pgtable-dart.c | 426 cfg->apple_dart_cfg.ttbr[i] = virt_to_phys(data->pgd[i]); in apple_dart_alloc_pgtable()
|
D | io-pgtable-arm-v7s.c | 888 cfg->arm_v7s_cfg.ttbr = paddr | upper_32_bits(paddr); in arm_v7s_alloc_pgtable() 890 cfg->arm_v7s_cfg.ttbr = paddr | ARM_V7S_TTBR_S | in arm_v7s_alloc_pgtable()
|
D | mtk_iommu.c | 692 writel(dom->cfg.arm_v7s_cfg.ttbr, bank->base + REG_MMU_PT_BASE_ADDR); in mtk_iommu_attach_device() 1383 writel(m4u_dom->cfg.arm_v7s_cfg.ttbr, base + REG_MMU_PT_BASE_ADDR); in mtk_iommu_runtime_resume()
|
D | msm_iommu.c | 274 SET_TTBR0(base, ctx, priv->cfg.arm_v7s_cfg.ttbr); in __program_context()
|
D | apple-dart.c | 401 pgtbl_cfg->apple_dart_cfg.ttbr[i]); in apple_dart_setup_translation()
|
D | io-pgtable-arm.c | 908 cfg->arm_lpae_s1_cfg.ttbr = virt_to_phys(data->pgd); in arm_64_lpae_alloc_pgtable_s1()
|
/linux-6.1.9/drivers/gpu/drm/msm/adreno/ |
D | a6xx_gpu.c | 106 phys_addr_t ttbr; in a6xx_set_pagetable() local 113 if (msm_iommu_pagetable_params(ctx->aspace->mmu, &ttbr, &asid)) in a6xx_set_pagetable() 127 OUT_RING(ring, CP_SMMU_TABLE_UPDATE_0_TTBR0_LO(lower_32_bits(ttbr))); in a6xx_set_pagetable() 130 CP_SMMU_TABLE_UPDATE_1_TTBR0_HI(upper_32_bits(ttbr)) | in a6xx_set_pagetable() 141 OUT_RING(ring, lower_32_bits(ttbr)); in a6xx_set_pagetable() 142 OUT_RING(ring, (asid << 16) | upper_32_bits(ttbr)); in a6xx_set_pagetable()
|
/linux-6.1.9/drivers/iommu/arm/arm-smmu-v3/ |
D | arm-smmu-v3-sva.c | 156 cd->ttbr = virt_to_phys(mm->pgd); in arm_smmu_alloc_shared_cd()
|
D | arm-smmu-v3.h | 574 u64 ttbr; member
|
D | arm-smmu-v3.c | 1078 cdptr[1] = cpu_to_le64(cd->ttbr & CTXDESC_CD_1_TTB0_MASK); in arm_smmu_write_ctx_desc() 2107 cfg->cd.ttbr = pgtbl_cfg->arm_lpae_s1_cfg.ttbr; in arm_smmu_domain_finalise_s1()
|