Searched refs:vtcr (Results 1 – 15 of 15) sorted by relevance
/linux/drivers/iommu/ |
A D | io-pgtable-arm.c | 933 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 D | arm-smmu.h | 414 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 D | kvm_arm.h | 197 #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 D | kvm_mmu.h | 146 #define kvm_phys_shift(kvm) VTCR_EL2_IPA(kvm->arch.vtcr) 278 write_sysreg(arch->vtcr, vtcr_el2);
|
A D | stage2_pgtable.h | 31 #define kvm_stage2_levels(kvm) VTCR_EL2_LVLS(kvm->arch.vtcr)
|
A D | kvm_asm.h | 174 unsigned long vtcr; member
|
A D | kvm_host.h | 109 u64 vtcr; member
|
/linux/arch/arm64/kvm/hyp/ |
A D | pgtable.c | 522 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 D | mem_protect.c | 93 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 D | arm-smmu-v3.c | 1357 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 D | arm-smmu-v3.h | 605 u64 vtcr; member
|
/linux/include/linux/ |
A D | io-pgtable.h | 121 } vtcr; member
|
/linux/arch/arm64/kvm/ |
A D | reset.c | 384 kvm->arch.vtcr = kvm_get_vtcr(mmfr0, mmfr1, phys_shift); in kvm_arm_setup_stage2()
|
A D | arm.c | 1508 params->vttbr = params->vtcr = 0; in cpu_prepare_hyp_mode()
|
/linux/arch/arm64/kernel/ |
A D | asm-offsets.c | 133 DEFINE(NVHE_INIT_VTCR, offsetof(struct kvm_nvhe_init_params, vtcr)); in main()
|
Completed in 34 milliseconds