Home
last modified time | relevance | path

Searched refs:xfeature_nr (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/arch/x86/kernel/fpu/
Dxstate.c114 static bool xfeature_is_supervisor(int xfeature_nr) in xfeature_is_supervisor() argument
123 cpuid_count(XSTATE_CPUID, xfeature_nr, &eax, &ebx, &ecx, &edx); in xfeature_is_supervisor()
339 static int xfeature_is_aligned(int xfeature_nr) in xfeature_is_aligned() argument
343 CHECK_XFEATURE(xfeature_nr); in xfeature_is_aligned()
345 if (!xfeature_enabled(xfeature_nr)) { in xfeature_is_aligned()
347 xfeature_nr); in xfeature_is_aligned()
351 cpuid_count(XSTATE_CPUID, xfeature_nr, &eax, &ebx, &ecx, &edx); in xfeature_is_aligned()
510 static int xfeature_uncompacted_offset(int xfeature_nr) in xfeature_uncompacted_offset() argument
519 if (XFEATURE_MASK_SUPERVISOR_ALL & BIT_ULL(xfeature_nr)) { in xfeature_uncompacted_offset()
520 WARN_ONCE(1, "No fixed offset for xstate %d\n", xfeature_nr); in xfeature_uncompacted_offset()
[all …]
/kernel/linux/linux-5.10/arch/x86/include/asm/fpu/
Dxstate.h103 void *get_xsave_addr(struct xregs_state *xsave, int xfeature_nr);
104 const void *get_xsave_field_ptr(int xfeature_nr);
106 int xfeature_size(int xfeature_nr);
/kernel/linux/linux-5.10/arch/x86/kvm/
Dx86.c4497 int xfeature_nr = fls64(xfeature_mask) - 1; in fill_xsave() local
4498 void *src = get_xsave_addr(xsave, xfeature_nr); in fill_xsave()
4502 cpuid_count(XSTATE_CPUID, xfeature_nr, in fill_xsave()
4504 if (xfeature_nr == XFEATURE_PKRU) in fill_xsave()
4540 int xfeature_nr = fls64(xfeature_mask) - 1; in load_xsave() local
4541 void *dest = get_xsave_addr(xsave, xfeature_nr); in load_xsave()
4545 cpuid_count(XSTATE_CPUID, xfeature_nr, in load_xsave()
4547 if (xfeature_nr == XFEATURE_PKRU) in load_xsave()