Lines Matching refs:leaf

406     struct cpuid_leaf leaf;  in read_xsave_state_info()  local
407 if (!x86_get_cpuid_subleaf(X86_CPUID_XSAVE, 0, &leaf)) { in read_xsave_state_info()
411 xcr0_component_bitmap = ((uint64_t)leaf.d << 32) | leaf.a; in read_xsave_state_info()
414 x86_get_cpuid_subleaf(X86_CPUID_XSAVE, 1, &leaf); in read_xsave_state_info()
415 xgetbv_1_supported = !!(leaf.a & (1 << 2)); in read_xsave_state_info()
416 xsaves_supported = !!(leaf.a & (1 << 3)); in read_xsave_state_info()
417 xsaveopt_supported = !!(leaf.a & (1 << 0)); in read_xsave_state_info()
418 xss_component_bitmap = ((uint64_t)leaf.d << 32) | leaf.c; in read_xsave_state_info()
440 x86_get_cpuid_subleaf(X86_CPUID_XSAVE, i, &leaf); in read_xsave_state_info()
442 bool align64 = !!(leaf.c & 0x2); in read_xsave_state_info()
444 state_components[i].size = leaf.a; in read_xsave_state_info()
453 max_area += leaf.a; in read_xsave_state_info()
485 struct cpuid_leaf leaf; in recompute_state_size() local
486 x86_get_cpuid_subleaf(X86_CPUID_XSAVE, 0, &leaf); in recompute_state_size()
487 new_size = leaf.b; in recompute_state_size()
603 cpuid_leaf leaf; in x86_get_extended_register_state_component() local
604 x86_get_cpuid_subleaf(X86_CPUID_XSAVE, component, &leaf); in x86_get_extended_register_state_component()
605 *size = leaf.a; in x86_get_extended_register_state_component()
606 if (leaf.a == 0) { in x86_get_extended_register_state_component()
609 uint8_t* component_begin = static_cast<uint8_t*>(register_state) + leaf.b; in x86_get_extended_register_state_component()