Home
last modified time | relevance | path

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

/Linux-v5.4/arch/x86/kernel/fpu/
Dxstate.c110 static int xfeature_is_supervisor(int xfeature_nr) in xfeature_is_supervisor() argument
122 cpuid_count(XSTATE_CPUID, xfeature_nr, &eax, &ebx, &ecx, &edx); in xfeature_is_supervisor()
126 static int xfeature_is_user(int xfeature_nr) in xfeature_is_user() argument
128 return !xfeature_is_supervisor(xfeature_nr); in xfeature_is_user()
324 static int xfeature_is_aligned(int xfeature_nr) in xfeature_is_aligned() argument
328 CHECK_XFEATURE(xfeature_nr); in xfeature_is_aligned()
329 cpuid_count(XSTATE_CPUID, xfeature_nr, &eax, &ebx, &ecx, &edx); in xfeature_is_aligned()
432 static int xfeature_uncompacted_offset(int xfeature_nr) in xfeature_uncompacted_offset() argument
441 if (XFEATURE_MASK_SUPERVISOR & BIT_ULL(xfeature_nr)) { in xfeature_uncompacted_offset()
442 WARN_ONCE(1, "No fixed offset for xstate %d\n", xfeature_nr); in xfeature_uncompacted_offset()
[all …]
/Linux-v5.4/arch/x86/include/asm/fpu/
Dxstate.h50 void *get_xsave_addr(struct xregs_state *xsave, int xfeature_nr);
51 const void *get_xsave_field_ptr(int xfeature_nr);
/Linux-v5.4/arch/x86/kvm/
Dx86.c3901 int xfeature_nr = fls64(xfeature_mask) - 1; in fill_xsave() local
3902 void *src = get_xsave_addr(xsave, xfeature_nr); in fill_xsave()
3906 cpuid_count(XSTATE_CPUID, xfeature_nr, in fill_xsave()
3908 if (xfeature_nr == XFEATURE_PKRU) in fill_xsave()
3944 int xfeature_nr = fls64(xfeature_mask) - 1; in load_xsave() local
3945 void *dest = get_xsave_addr(xsave, xfeature_nr); in load_xsave()
3949 cpuid_count(XSTATE_CPUID, xfeature_nr, in load_xsave()
3951 if (xfeature_nr == XFEATURE_PKRU) in load_xsave()