Searched refs:vtcr (Results 1 – 11 of 11) sorted by relevance
/kernel/linux/linux-5.10/arch/arm64/kvm/ |
D | reset.c | 432 u64 vtcr = VTCR_EL2_FLAGS, mmfr0; in kvm_arm_setup_stage2() local 458 vtcr |= parange << VTCR_EL2_PS_SHIFT; in kvm_arm_setup_stage2() 460 vtcr |= VTCR_EL2_T0SZ(phys_shift); in kvm_arm_setup_stage2() 468 vtcr |= VTCR_EL2_LVLS_TO_SL0(lvls); in kvm_arm_setup_stage2() 475 vtcr |= VTCR_EL2_HA; in kvm_arm_setup_stage2() 478 vtcr |= (kvm_get_vmid_bits() == 16) ? in kvm_arm_setup_stage2() 481 kvm->arch.vtcr = vtcr; in kvm_arm_setup_stage2()
|
/kernel/linux/linux-5.10/drivers/iommu/ |
D | io-pgtable-arm.c | 865 typeof(&cfg->arm_lpae_s2_cfg.vtcr) vtcr = &cfg->arm_lpae_s2_cfg.vtcr; in arm_64_lpae_alloc_pgtable_s2() local 891 vtcr->sh = ARM_LPAE_TCR_SH_IS; in arm_64_lpae_alloc_pgtable_s2() 892 vtcr->irgn = ARM_LPAE_TCR_RGN_WBWA; in arm_64_lpae_alloc_pgtable_s2() 893 vtcr->orgn = ARM_LPAE_TCR_RGN_WBWA; in arm_64_lpae_alloc_pgtable_s2() 895 vtcr->sh = ARM_LPAE_TCR_SH_OS; in arm_64_lpae_alloc_pgtable_s2() 896 vtcr->irgn = ARM_LPAE_TCR_RGN_NC; in arm_64_lpae_alloc_pgtable_s2() 897 vtcr->orgn = ARM_LPAE_TCR_RGN_NC; in arm_64_lpae_alloc_pgtable_s2() 904 vtcr->tg = ARM_LPAE_TCR_TG0_4K; in arm_64_lpae_alloc_pgtable_s2() 908 vtcr->tg = ARM_LPAE_TCR_TG0_16K; in arm_64_lpae_alloc_pgtable_s2() 911 vtcr->tg = ARM_LPAE_TCR_TG0_64K; in arm_64_lpae_alloc_pgtable_s2() [all …]
|
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
D | kvm_arm.h | 189 #define VTCR_EL2_LVLS(vtcr) \ argument 190 VTCR_EL2_SL0_TO_LVLS(((vtcr) & VTCR_EL2_SL0_MASK) >> VTCR_EL2_SL0_SHIFT) 193 #define VTCR_EL2_IPA(vtcr) (64 - ((vtcr) & VTCR_EL2_T0SZ_MASK)) argument
|
D | kvm_mmu.h | 107 #define kvm_phys_shift(kvm) VTCR_EL2_IPA(kvm->arch.vtcr) 277 write_sysreg(kern_hyp_va(mmu->kvm)->arch.vtcr, vtcr_el2); in __load_guest_stage2()
|
D | stage2_pgtable.h | 31 #define kvm_stage2_levels(kvm) VTCR_EL2_LVLS(kvm->arch.vtcr)
|
D | kvm_host.h | 96 u64 vtcr; member
|
/kernel/linux/linux-5.10/drivers/iommu/arm/arm-smmu/ |
D | arm-smmu.h | 410 FIELD_PREP(ARM_SMMU_VTCR_PS, cfg->arm_lpae_s2_cfg.vtcr.ps) | in arm_smmu_lpae_vtcr() 411 FIELD_PREP(ARM_SMMU_VTCR_TG0, cfg->arm_lpae_s2_cfg.vtcr.tg) | in arm_smmu_lpae_vtcr() 412 FIELD_PREP(ARM_SMMU_VTCR_SH0, cfg->arm_lpae_s2_cfg.vtcr.sh) | in arm_smmu_lpae_vtcr() 413 FIELD_PREP(ARM_SMMU_VTCR_ORGN0, cfg->arm_lpae_s2_cfg.vtcr.orgn) | in arm_smmu_lpae_vtcr() 414 FIELD_PREP(ARM_SMMU_VTCR_IRGN0, cfg->arm_lpae_s2_cfg.vtcr.irgn) | in arm_smmu_lpae_vtcr() 415 FIELD_PREP(ARM_SMMU_VTCR_SL0, cfg->arm_lpae_s2_cfg.vtcr.sl) | in arm_smmu_lpae_vtcr() 416 FIELD_PREP(ARM_SMMU_VTCR_T0SZ, cfg->arm_lpae_s2_cfg.vtcr.tsz); in arm_smmu_lpae_vtcr()
|
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/ |
D | pgtable.c | 859 u64 vtcr = kvm->arch.vtcr; in kvm_pgtable_stage2_init() local 860 u32 ia_bits = VTCR_EL2_IPA(vtcr); in kvm_pgtable_stage2_init() 861 u32 sl0 = FIELD_GET(VTCR_EL2_SL0_MASK, vtcr); in kvm_pgtable_stage2_init()
|
/kernel/linux/linux-5.10/include/linux/ |
D | io-pgtable.h | 129 } vtcr; member
|
/kernel/linux/linux-5.10/drivers/iommu/arm/arm-smmu-v3/ |
D | arm-smmu-v3.c | 1289 FIELD_PREP(STRTAB_STE_2_VTCR, s2_cfg->vtcr) | in arm_smmu_write_strtab_ent() 1911 typeof(&pgtbl_cfg->arm_lpae_s2_cfg.vtcr) vtcr; in arm_smmu_domain_finalise_s2() local 1917 vtcr = &pgtbl_cfg->arm_lpae_s2_cfg.vtcr; in arm_smmu_domain_finalise_s2() 1920 cfg->vtcr = FIELD_PREP(STRTAB_STE_2_VTCR_S2T0SZ, vtcr->tsz) | in arm_smmu_domain_finalise_s2() 1921 FIELD_PREP(STRTAB_STE_2_VTCR_S2SL0, vtcr->sl) | in arm_smmu_domain_finalise_s2() 1922 FIELD_PREP(STRTAB_STE_2_VTCR_S2IR0, vtcr->irgn) | in arm_smmu_domain_finalise_s2() 1923 FIELD_PREP(STRTAB_STE_2_VTCR_S2OR0, vtcr->orgn) | in arm_smmu_domain_finalise_s2() 1924 FIELD_PREP(STRTAB_STE_2_VTCR_S2SH0, vtcr->sh) | in arm_smmu_domain_finalise_s2() 1925 FIELD_PREP(STRTAB_STE_2_VTCR_S2TG, vtcr->tg) | in arm_smmu_domain_finalise_s2() 1926 FIELD_PREP(STRTAB_STE_2_VTCR_S2PS, vtcr->ps); in arm_smmu_domain_finalise_s2()
|
D | arm-smmu-v3.h | 570 u64 vtcr; member
|