Searched refs:vls (Results 1 – 2 of 2) sorted by relevance
225 uint64_t vls = 0; in resp_get_sve_vls() local245 vls |= BIT_ULL((bits / 128) - 1); in resp_get_sve_vls()253 return vls; in resp_get_sve_vls()516 uint64_t vls; in test_query_cpu_model_expansion_kvm() local556 vls = resp_get_sve_vls(resp); in test_query_cpu_model_expansion_kvm()566 g_assert(vls != 0); in test_query_cpu_model_expansion_kvm()567 max_vq = 64 - __builtin_clzll(vls); in test_query_cpu_model_expansion_kvm()574 vq = 64 - __builtin_clzll(vls & ~BIT_ULL(max_vq - 1)); in test_query_cpu_model_expansion_kvm()600 vq = __builtin_ffsll(vls); in test_query_cpu_model_expansion_kvm()608 if (!(vls & BIT_ULL(vq - 1))) { in test_query_cpu_model_expansion_kvm()[all …]
1801 static uint64_t vls[KVM_ARM64_SVE_VLS_WORDS]; in kvm_arm_sve_get_vls() local1818 .addr = (uint64_t)&vls[0], in kvm_arm_sve_get_vls()1837 if (vls[i]) { in kvm_arm_sve_get_vls()1838 vq = 64 - clz64(vls[i]) + i * 64; in kvm_arm_sve_get_vls()1845 vls[0] &= MAKE_64BIT_MASK(0, ARM_MAX_VQ); in kvm_arm_sve_get_vls()1849 return vls[0]; in kvm_arm_sve_get_vls()1854 uint64_t vls[KVM_ARM64_SVE_VLS_WORDS] = { cpu->sve_vq.map }; in kvm_arm_sve_set_vls() local1858 return kvm_set_one_reg(CPU(cpu), KVM_REG_ARM64_SVE_VLS, &vls[0]); in kvm_arm_sve_set_vls()