Lines Matching refs:buf_fx
205 bool copy_fpstate_to_sigframe(void __user *buf, void __user *buf_fx, int size, u32 pkru) in copy_fpstate_to_sigframe() argument
209 bool ia32_fxstate = (buf != buf_fx); in copy_fpstate_to_sigframe()
227 struct xregs_state __user *xbuf = buf_fx; in copy_fpstate_to_sigframe()
248 ret = copy_fpregs_to_sigframe(buf_fx, pkru); in copy_fpstate_to_sigframe()
253 if (!__clear_user(buf_fx, fpstate->user_size)) in copy_fpstate_to_sigframe()
262 if (use_fxsr() && !save_xstate_epilog(buf_fx, ia32_fxstate, fpstate)) in copy_fpstate_to_sigframe()
352 static bool __fpu_restore_sig(void __user *buf, void __user *buf_fx, in __fpu_restore_sig() argument
365 if (!check_xstate_in_sigframe(buf_fx, &fx_sw_user)) in __fpu_restore_sig()
376 return restore_fpregs_from_user(buf_fx, user_xfeatures, fx_only); in __fpu_restore_sig()
413 if (copy_sigframe_from_user_to_xstate(tsk, buf_fx)) in __fpu_restore_sig()
416 if (__copy_from_user(&fpregs->fxsave, buf_fx, in __fpu_restore_sig()
477 void __user *buf_fx = buf; in fpu__restore_sig() local
497 buf_fx = buf + sizeof(struct fregs_state); in fpu__restore_sig()
510 success = __fpu_restore_sig(buf, buf_fx, ia32_fxstate); in fpu__restore_sig()
521 unsigned long *buf_fx, unsigned long *size) in fpu__alloc_mathframe() argument
525 *buf_fx = sp = round_down(sp - frame_size, 64); in fpu__alloc_mathframe()