Lines Matching refs:xfeatures
159 u64 xfeatures; in fpstate_sanitize_xstate() local
164 xfeatures = fpu->state.xsave.header.xfeatures; in fpstate_sanitize_xstate()
170 if ((xfeatures & xfeatures_mask) == xfeatures_mask) in fpstate_sanitize_xstate()
176 if (!(xfeatures & XFEATURE_MASK_FP)) { in fpstate_sanitize_xstate()
189 if (!(xfeatures & XFEATURE_MASK_SSE)) in fpstate_sanitize_xstate()
197 xfeatures = (xfeatures_mask & ~xfeatures) >> 2; in fpstate_sanitize_xstate()
204 while (xfeatures) { in fpstate_sanitize_xstate()
205 if (xfeatures & 0x1) { in fpstate_sanitize_xstate()
214 xfeatures >>= 1; in fpstate_sanitize_xstate()
833 if (!(xsave->header.xfeatures & xstate_feature)) in get_xsave_addr()
971 header.xfeatures = xsave->header.xfeatures; in copyout_from_xsaves()
972 header.xfeatures &= ~XFEATURE_MASK_SUPERVISOR; in copyout_from_xsaves()
989 if ((header.xfeatures >> i) & 1) { in copyout_from_xsaves()
1031 u64 xfeatures; in copyin_to_xsaves() local
1035 size = sizeof(xfeatures); in copyin_to_xsaves()
1038 memcpy(&xfeatures, kbuf + offset, size); in copyin_to_xsaves()
1040 if (__copy_from_user(&xfeatures, ubuf + offset, size)) in copyin_to_xsaves()
1049 if (xfeatures & ~allowed_features) in copyin_to_xsaves()
1055 if (xfeatures & mask) { in copyin_to_xsaves()
1074 xsave->header.xfeatures &= XFEATURE_MASK_SUPERVISOR; in copyin_to_xsaves()
1079 xsave->header.xfeatures |= xfeatures; in copyin_to_xsaves()
1080 xsave->header.xcomp_bv = XCOMP_BV_COMPACTED_FORMAT | xsave->header.xfeatures; in copyin_to_xsaves()