Home
last modified time | relevance | path

Searched refs:vmid_bits (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.6/arch/riscv/kvm/
Dvmid.c20 static unsigned long vmid_bits __ro_after_init;
30 vmid_bits = csr_read(CSR_HGATP); in kvm_riscv_gstage_vmid_detect()
31 vmid_bits = (vmid_bits & HGATP_VMID) >> HGATP_VMID_SHIFT; in kvm_riscv_gstage_vmid_detect()
32 vmid_bits = fls_long(vmid_bits); in kvm_riscv_gstage_vmid_detect()
39 if ((1UL << vmid_bits) < num_possible_cpus()) in kvm_riscv_gstage_vmid_detect()
40 vmid_bits = 0; in kvm_riscv_gstage_vmid_detect()
45 return vmid_bits; in kvm_riscv_gstage_vmid_bits()
59 if (!vmid_bits) in kvm_riscv_gstage_vmid_ver_changed()
115 vmid_next &= (1 << vmid_bits) - 1; in kvm_riscv_gstage_vmid_update()
/Linux-v6.6/arch/arm64/include/asm/
Dcpufeature.h897 int vmid_bits; in get_vmid_bits() local
899 vmid_bits = cpuid_feature_extract_unsigned_field(mmfr1, in get_vmid_bits()
901 if (vmid_bits == ID_AA64MMFR1_EL1_VMIDBits_16) in get_vmid_bits()
/Linux-v6.6/drivers/iommu/arm/arm-smmu-v3/
Darm-smmu-v3.h672 unsigned int vmid_bits; member
Darm-smmu-v3.c2158 vmid = ida_alloc_range(&smmu->vmid_map, 1, (1 << smmu->vmid_bits) - 1, in arm_smmu_domain_finalise_s2()
3571 smmu->vmid_bits = reg & IDR0_VMID16 ? 16 : 8; in arm_smmu_device_hw_probe()
/Linux-v6.6/arch/arm64/kernel/
Dcpufeature.c3192 unsigned int safe_vmid_bits, vmid_bits; in verify_hyp_capabilities() local
3203 vmid_bits = get_vmid_bits(mmfr1); in verify_hyp_capabilities()
3204 if (vmid_bits < safe_vmid_bits) { in verify_hyp_capabilities()