Lines Matching refs:fpstate
32 void __user *fpstate = fxbuf; in check_xstate_in_sigframe() local
41 fx_sw->xstate_size > current->thread.fpu.fpstate->user_size || in check_xstate_in_sigframe()
51 if (__get_user(magic2, (__u32 __user *)(fpstate + fx_sw->xstate_size))) in check_xstate_in_sigframe()
72 struct xregs_state *xsave = &tsk->thread.fpu.fpstate->regs.xsave; in save_fsave_header()
78 fxsave(&tsk->thread.fpu.fpstate->regs.fxsave); in save_fsave_header()
106 struct fpstate *fpstate) in save_sw_bytes() argument
109 sw_bytes->extended_size = fpstate->user_size + FP_XSTATE_MAGIC2_SIZE; in save_sw_bytes()
110 sw_bytes->xfeatures = fpstate->user_xfeatures; in save_sw_bytes()
111 sw_bytes->xstate_size = fpstate->user_size; in save_sw_bytes()
118 struct fpstate *fpstate) in save_xstate_epilog() argument
126 save_sw_bytes(&sw_bytes, ia32_frame, fpstate); in save_xstate_epilog()
133 (__u32 __user *)(buf + fpstate->user_size)); in save_xstate_epilog()
191 struct fpstate *fpstate = tsk->thread.fpu.fpstate; in copy_fpstate_to_sigframe() local
236 if (!__clear_user(buf_fx, fpstate->user_size)) in copy_fpstate_to_sigframe()
245 if (use_fxsr() && !save_xstate_epilog(buf_fx, ia32_fxstate, fpstate)) in copy_fpstate_to_sigframe()
286 xfd_update_state(fpu->fpstate); in restore_fpregs_from_user()
288 ret = __restore_fpregs_from_user(buf, fpu->fpstate->user_xfeatures, in restore_fpregs_from_user()
327 os_xrstor_supervisor(fpu->fpstate); in restore_fpregs_from_user()
356 state_size = fpu->fpstate->user_size; in __fpu_restore_sig()
390 os_xsave(fpu->fpstate); in __fpu_restore_sig()
397 fpregs = &fpu->fpstate->regs; in __fpu_restore_sig()
437 success = !os_xrstor_safe(fpu->fpstate, in __fpu_restore_sig()
450 static inline unsigned int xstate_sigframe_size(struct fpstate *fpstate) in xstate_sigframe_size() argument
452 unsigned int size = fpstate->user_size; in xstate_sigframe_size()
473 size = xstate_sigframe_size(fpu->fpstate); in fpu__restore_sig()
509 unsigned long frame_size = xstate_sigframe_size(current->thread.fpu.fpstate); in fpu__alloc_mathframe()