Lines Matching refs:xfeatures

156 	u64 xfeatures;  in fpstate_sanitize_xstate()  local
161 xfeatures = fpu->state.xsave.header.xfeatures; in fpstate_sanitize_xstate()
167 if ((xfeatures & xfeatures_mask) == xfeatures_mask) in fpstate_sanitize_xstate()
173 if (!(xfeatures & XFEATURE_MASK_FP)) { in fpstate_sanitize_xstate()
186 if (!(xfeatures & XFEATURE_MASK_SSE)) in fpstate_sanitize_xstate()
194 xfeatures = (xfeatures_mask & ~xfeatures) >> 2; in fpstate_sanitize_xstate()
201 while (xfeatures) { in fpstate_sanitize_xstate()
202 if (xfeatures & 0x1) { in fpstate_sanitize_xstate()
211 xfeatures >>= 1; in fpstate_sanitize_xstate()
484 if (hdr->xfeatures & (~xfeatures_mask | XFEATURE_MASK_SUPERVISOR)) in validate_xstate_header()
869 if (!(xsave->header.xfeatures & xstate_feature)) in get_xsave_addr()
956 static inline bool xfeatures_mxcsr_quirk(u64 xfeatures) in xfeatures_mxcsr_quirk() argument
958 if (!(xfeatures & (XFEATURE_MASK_SSE|XFEATURE_MASK_YMM))) in xfeatures_mxcsr_quirk()
961 if (xfeatures & XFEATURE_MASK_FP) in xfeatures_mxcsr_quirk()
1005 header.xfeatures = xsave->header.xfeatures; in copy_xstate_to_kernel()
1006 header.xfeatures &= ~XFEATURE_MASK_SUPERVISOR; in copy_xstate_to_kernel()
1020 if ((header.xfeatures >> i) & 1) { in copy_xstate_to_kernel()
1035 if (xfeatures_mxcsr_quirk(header.xfeatures)) { in copy_xstate_to_kernel()
1089 header.xfeatures = xsave->header.xfeatures; in copy_xstate_to_user()
1090 header.xfeatures &= ~XFEATURE_MASK_SUPERVISOR; in copy_xstate_to_user()
1106 if ((header.xfeatures >> i) & 1) { in copy_xstate_to_user()
1123 if (xfeatures_mxcsr_quirk(header.xfeatures)) { in copy_xstate_to_user()
1163 if (hdr.xfeatures & mask) { in copy_kernel_to_xstate()
1173 if (xfeatures_mxcsr_quirk(hdr.xfeatures)) { in copy_kernel_to_xstate()
1183 xsave->header.xfeatures &= XFEATURE_MASK_SUPERVISOR; in copy_kernel_to_xstate()
1188 xsave->header.xfeatures |= hdr.xfeatures; in copy_kernel_to_xstate()
1217 if (hdr.xfeatures & mask) { in copy_user_to_xstate()
1228 if (xfeatures_mxcsr_quirk(hdr.xfeatures)) { in copy_user_to_xstate()
1239 xsave->header.xfeatures &= XFEATURE_MASK_SUPERVISOR; in copy_user_to_xstate()
1244 xsave->header.xfeatures |= hdr.xfeatures; in copy_user_to_xstate()