• Home
  • Raw
  • Download

Lines Matching refs:xfeature_nr

119 static bool xfeature_is_supervisor(int xfeature_nr)  in xfeature_is_supervisor()  argument
128 cpuid_count(XSTATE_CPUID, xfeature_nr, &eax, &ebx, &ecx, &edx); in xfeature_is_supervisor()
254 static int xfeature_is_aligned(int xfeature_nr) in xfeature_is_aligned() argument
258 CHECK_XFEATURE(xfeature_nr); in xfeature_is_aligned()
260 if (!xfeature_enabled(xfeature_nr)) { in xfeature_is_aligned()
262 xfeature_nr); in xfeature_is_aligned()
266 cpuid_count(XSTATE_CPUID, xfeature_nr, &eax, &ebx, &ecx, &edx); in xfeature_is_aligned()
425 static int xfeature_uncompacted_offset(int xfeature_nr) in xfeature_uncompacted_offset() argument
434 if (XFEATURE_MASK_SUPERVISOR_ALL & BIT_ULL(xfeature_nr)) { in xfeature_uncompacted_offset()
435 WARN_ONCE(1, "No fixed offset for xstate %d\n", xfeature_nr); in xfeature_uncompacted_offset()
439 CHECK_XFEATURE(xfeature_nr); in xfeature_uncompacted_offset()
440 cpuid_count(XSTATE_CPUID, xfeature_nr, &eax, &ebx, &ecx, &edx); in xfeature_uncompacted_offset()
444 int xfeature_size(int xfeature_nr) in xfeature_size() argument
448 CHECK_XFEATURE(xfeature_nr); in xfeature_size()
449 cpuid_count(XSTATE_CPUID, xfeature_nr, &eax, &ebx, &ecx, &edx); in xfeature_size()
857 static void *__raw_xsave_addr(struct xregs_state *xsave, int xfeature_nr) in __raw_xsave_addr() argument
859 if (!xfeature_enabled(xfeature_nr)) { in __raw_xsave_addr()
864 return (void *)xsave + xstate_comp_offsets[xfeature_nr]; in __raw_xsave_addr()
884 void *get_xsave_addr(struct xregs_state *xsave, int xfeature_nr) in get_xsave_addr() argument
896 WARN_ONCE(!(xfeatures_mask_all & BIT_ULL(xfeature_nr)), in get_xsave_addr()
909 if (!(xsave->header.xfeatures & BIT_ULL(xfeature_nr))) in get_xsave_addr()
912 return __raw_xsave_addr(xsave, xfeature_nr); in get_xsave_addr()