Lines Matching refs:xsave
164 xfeatures = fpu->state.xsave.header.xfeatures; in fpstate_sanitize_xstate()
210 (void *)&init_fpstate.xsave + offset, in fpstate_sanitize_xstate()
427 init_fpstate.xsave.header.xcomp_bv = (u64)1 << 63 | xfeatures_mask; in setup_init_fpu_buf()
432 copy_kernel_to_xregs_booting(&init_fpstate.xsave); in setup_init_fpu_buf()
438 copy_xregs_to_kernel_booting(&init_fpstate.xsave); in setup_init_fpu_buf()
778 void *__raw_xsave_addr(struct xregs_state *xsave, int xstate_feature_mask) in __raw_xsave_addr() argument
787 return (void *)xsave + xstate_comp_offsets[feature_nr]; in __raw_xsave_addr()
807 void *get_xsave_addr(struct xregs_state *xsave, int xstate_feature) in get_xsave_addr() argument
833 if (!(xsave->header.xfeatures & xstate_feature)) in get_xsave_addr()
836 return __raw_xsave_addr(xsave, xstate_feature); in get_xsave_addr()
869 return get_xsave_addr(&fpu->state.xsave, xsave_state); in get_xsave_field_ptr()
955 void __user *ubuf, struct xregs_state *xsave) in copyout_from_xsaves() argument
971 header.xfeatures = xsave->header.xfeatures; in copyout_from_xsaves()
990 void *src = __raw_xsave_addr(xsave, 1 << i); in copyout_from_xsaves()
1027 struct xregs_state *xsave) in copyin_to_xsaves() argument
1056 void *dst = __raw_xsave_addr(xsave, 1 << i); 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()