Searched refs:vtcr (Results 1 – 11 of 11) sorted by relevance
/Linux-v5.10/arch/arm64/kvm/ |
D | reset.c | 394 u64 vtcr = VTCR_EL2_FLAGS, mmfr0; in kvm_arm_setup_stage2() local 415 vtcr |= parange << VTCR_EL2_PS_SHIFT; in kvm_arm_setup_stage2() 417 vtcr |= VTCR_EL2_T0SZ(phys_shift); in kvm_arm_setup_stage2() 425 vtcr |= VTCR_EL2_LVLS_TO_SL0(lvls); in kvm_arm_setup_stage2() 432 vtcr |= VTCR_EL2_HA; in kvm_arm_setup_stage2() 435 vtcr |= (kvm_get_vmid_bits() == 16) ? in kvm_arm_setup_stage2() 438 kvm->arch.vtcr = vtcr; in kvm_arm_setup_stage2()
|
/Linux-v5.10/drivers/iommu/ |
D | io-pgtable-arm.c | 858 typeof(&cfg->arm_lpae_s2_cfg.vtcr) vtcr = &cfg->arm_lpae_s2_cfg.vtcr; in arm_64_lpae_alloc_pgtable_s2() 884 vtcr->sh = ARM_LPAE_TCR_SH_IS; in arm_64_lpae_alloc_pgtable_s2() 885 vtcr->irgn = ARM_LPAE_TCR_RGN_WBWA; in arm_64_lpae_alloc_pgtable_s2() 886 vtcr->orgn = ARM_LPAE_TCR_RGN_WBWA; in arm_64_lpae_alloc_pgtable_s2() 888 vtcr->sh = ARM_LPAE_TCR_SH_OS; in arm_64_lpae_alloc_pgtable_s2() 889 vtcr->irgn = ARM_LPAE_TCR_RGN_NC; in arm_64_lpae_alloc_pgtable_s2() 890 vtcr->orgn = ARM_LPAE_TCR_RGN_NC; in arm_64_lpae_alloc_pgtable_s2() 897 vtcr->tg = ARM_LPAE_TCR_TG0_4K; in arm_64_lpae_alloc_pgtable_s2() 901 vtcr->tg = ARM_LPAE_TCR_TG0_16K; in arm_64_lpae_alloc_pgtable_s2() 904 vtcr->tg = ARM_LPAE_TCR_TG0_64K; in arm_64_lpae_alloc_pgtable_s2() [all …]
|
/Linux-v5.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) 276 write_sysreg(kern_hyp_va(mmu->kvm)->arch.vtcr, vtcr_el2);
|
D | stage2_pgtable.h | 31 #define kvm_stage2_levels(kvm) VTCR_EL2_LVLS(kvm->arch.vtcr)
|
D | kvm_host.h | 96 u64 vtcr; member
|
/Linux-v5.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()
|
/Linux-v5.10/arch/arm64/kvm/hyp/ |
D | pgtable.c | 858 u64 vtcr = kvm->arch.vtcr; in kvm_pgtable_stage2_init() local 859 u32 ia_bits = VTCR_EL2_IPA(vtcr); in kvm_pgtable_stage2_init() 860 u32 sl0 = FIELD_GET(VTCR_EL2_SL0_MASK, vtcr); in kvm_pgtable_stage2_init()
|
/Linux-v5.10/include/linux/ |
D | io-pgtable.h | 129 } vtcr; member
|
/Linux-v5.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() 1910 typeof(&pgtbl_cfg->arm_lpae_s2_cfg.vtcr) vtcr; in arm_smmu_domain_finalise_s2() 1916 vtcr = &pgtbl_cfg->arm_lpae_s2_cfg.vtcr; in arm_smmu_domain_finalise_s2() 1919 cfg->vtcr = FIELD_PREP(STRTAB_STE_2_VTCR_S2T0SZ, vtcr->tsz) | in arm_smmu_domain_finalise_s2() 1920 FIELD_PREP(STRTAB_STE_2_VTCR_S2SL0, vtcr->sl) | in arm_smmu_domain_finalise_s2() 1921 FIELD_PREP(STRTAB_STE_2_VTCR_S2IR0, vtcr->irgn) | in arm_smmu_domain_finalise_s2() 1922 FIELD_PREP(STRTAB_STE_2_VTCR_S2OR0, vtcr->orgn) | in arm_smmu_domain_finalise_s2() 1923 FIELD_PREP(STRTAB_STE_2_VTCR_S2SH0, vtcr->sh) | in arm_smmu_domain_finalise_s2() 1924 FIELD_PREP(STRTAB_STE_2_VTCR_S2TG, vtcr->tg) | in arm_smmu_domain_finalise_s2() 1925 FIELD_PREP(STRTAB_STE_2_VTCR_S2PS, vtcr->ps); in arm_smmu_domain_finalise_s2()
|
D | arm-smmu-v3.h | 570 u64 vtcr; member
|