Home
last modified time | relevance | path

Searched refs:vtcr (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/iommu/
A Dio-pgtable-arm.c933 typeof(&cfg->arm_lpae_s2_cfg.vtcr) vtcr = &cfg->arm_lpae_s2_cfg.vtcr; in arm_64_lpae_alloc_pgtable_s2()
959 vtcr->sh = ARM_LPAE_TCR_SH_IS; in arm_64_lpae_alloc_pgtable_s2()
963 vtcr->sh = ARM_LPAE_TCR_SH_OS; in arm_64_lpae_alloc_pgtable_s2()
964 vtcr->irgn = ARM_LPAE_TCR_RGN_NC; in arm_64_lpae_alloc_pgtable_s2()
965 vtcr->orgn = ARM_LPAE_TCR_RGN_NC; in arm_64_lpae_alloc_pgtable_s2()
972 vtcr->tg = ARM_LPAE_TCR_TG0_4K; in arm_64_lpae_alloc_pgtable_s2()
976 vtcr->tg = ARM_LPAE_TCR_TG0_16K; in arm_64_lpae_alloc_pgtable_s2()
979 vtcr->tg = ARM_LPAE_TCR_TG0_64K; in arm_64_lpae_alloc_pgtable_s2()
985 vtcr->ps = ARM_LPAE_TCR_PS_32_BIT; in arm_64_lpae_alloc_pgtable_s2()
988 vtcr->ps = ARM_LPAE_TCR_PS_36_BIT; in arm_64_lpae_alloc_pgtable_s2()
[all …]
/linux/drivers/iommu/arm/arm-smmu/
A Darm-smmu.h414 FIELD_PREP(ARM_SMMU_VTCR_PS, cfg->arm_lpae_s2_cfg.vtcr.ps) | in arm_smmu_lpae_vtcr()
415 FIELD_PREP(ARM_SMMU_VTCR_TG0, cfg->arm_lpae_s2_cfg.vtcr.tg) | in arm_smmu_lpae_vtcr()
416 FIELD_PREP(ARM_SMMU_VTCR_SH0, cfg->arm_lpae_s2_cfg.vtcr.sh) | in arm_smmu_lpae_vtcr()
417 FIELD_PREP(ARM_SMMU_VTCR_ORGN0, cfg->arm_lpae_s2_cfg.vtcr.orgn) | in arm_smmu_lpae_vtcr()
418 FIELD_PREP(ARM_SMMU_VTCR_IRGN0, cfg->arm_lpae_s2_cfg.vtcr.irgn) | in arm_smmu_lpae_vtcr()
419 FIELD_PREP(ARM_SMMU_VTCR_SL0, cfg->arm_lpae_s2_cfg.vtcr.sl) | in arm_smmu_lpae_vtcr()
420 FIELD_PREP(ARM_SMMU_VTCR_T0SZ, cfg->arm_lpae_s2_cfg.vtcr.tsz); in arm_smmu_lpae_vtcr()
/linux/arch/arm64/include/asm/
A Dkvm_arm.h197 #define VTCR_EL2_LVLS(vtcr) \ argument
198 VTCR_EL2_SL0_TO_LVLS(((vtcr) & VTCR_EL2_SL0_MASK) >> VTCR_EL2_SL0_SHIFT)
201 #define VTCR_EL2_IPA(vtcr) (64 - ((vtcr) & VTCR_EL2_T0SZ_MASK)) argument
A Dkvm_mmu.h146 #define kvm_phys_shift(kvm) VTCR_EL2_IPA(kvm->arch.vtcr)
278 write_sysreg(arch->vtcr, vtcr_el2);
A Dstage2_pgtable.h31 #define kvm_stage2_levels(kvm) VTCR_EL2_LVLS(kvm->arch.vtcr)
A Dkvm_asm.h174 unsigned long vtcr; member
A Dkvm_host.h109 u64 vtcr; member
/linux/arch/arm64/kvm/hyp/
A Dpgtable.c522 u64 vtcr = VTCR_EL2_FLAGS; in kvm_get_vtcr() local
525 vtcr |= kvm_get_parange(mmfr0) << VTCR_EL2_PS_SHIFT; in kvm_get_vtcr()
526 vtcr |= VTCR_EL2_T0SZ(phys_shift); in kvm_get_vtcr()
534 vtcr |= VTCR_EL2_LVLS_TO_SL0(lvls); in kvm_get_vtcr()
541 vtcr |= VTCR_EL2_HA; in kvm_get_vtcr()
544 vtcr |= (get_vmid_bits(mmfr1) == 16) ? in kvm_get_vtcr()
548 return vtcr; in kvm_get_vtcr()
1125 u64 vtcr = arch->vtcr; in __kvm_pgtable_stage2_init() local
1126 u32 ia_bits = VTCR_EL2_IPA(vtcr); in __kvm_pgtable_stage2_init()
1127 u32 sl0 = FIELD_GET(VTCR_EL2_SL0_MASK, vtcr); in __kvm_pgtable_stage2_init()
/linux/arch/arm64/kvm/hyp/nvhe/
A Dmem_protect.c93 host_kvm.arch.vtcr = kvm_get_vtcr(id_aa64mmfr0_el1_sys_val, in prepare_host_vtcr()
135 params->vtcr = host_kvm.arch.vtcr; in __pkvm_prot_finalize()
/linux/drivers/iommu/arm/arm-smmu-v3/
A Darm-smmu-v3.c1357 FIELD_PREP(STRTAB_STE_2_VTCR, s2_cfg->vtcr) | in arm_smmu_write_strtab_ent()
2134 typeof(&pgtbl_cfg->arm_lpae_s2_cfg.vtcr) vtcr; in arm_smmu_domain_finalise_s2()
2140 vtcr = &pgtbl_cfg->arm_lpae_s2_cfg.vtcr; in arm_smmu_domain_finalise_s2()
2143 cfg->vtcr = FIELD_PREP(STRTAB_STE_2_VTCR_S2T0SZ, vtcr->tsz) | in arm_smmu_domain_finalise_s2()
2144 FIELD_PREP(STRTAB_STE_2_VTCR_S2SL0, vtcr->sl) | in arm_smmu_domain_finalise_s2()
2145 FIELD_PREP(STRTAB_STE_2_VTCR_S2IR0, vtcr->irgn) | in arm_smmu_domain_finalise_s2()
2146 FIELD_PREP(STRTAB_STE_2_VTCR_S2OR0, vtcr->orgn) | in arm_smmu_domain_finalise_s2()
2147 FIELD_PREP(STRTAB_STE_2_VTCR_S2SH0, vtcr->sh) | in arm_smmu_domain_finalise_s2()
2148 FIELD_PREP(STRTAB_STE_2_VTCR_S2TG, vtcr->tg) | in arm_smmu_domain_finalise_s2()
2149 FIELD_PREP(STRTAB_STE_2_VTCR_S2PS, vtcr->ps); in arm_smmu_domain_finalise_s2()
A Darm-smmu-v3.h605 u64 vtcr; member
/linux/include/linux/
A Dio-pgtable.h121 } vtcr; member
/linux/arch/arm64/kvm/
A Dreset.c384 kvm->arch.vtcr = kvm_get_vtcr(mmfr0, mmfr1, phys_shift); in kvm_arm_setup_stage2()
A Darm.c1508 params->vttbr = params->vtcr = 0; in cpu_prepare_hyp_mode()
/linux/arch/arm64/kernel/
A Dasm-offsets.c133 DEFINE(NVHE_INIT_VTCR, offsetof(struct kvm_nvhe_init_params, vtcr)); in main()

Completed in 37 milliseconds