/arch/m68k/kernel/ |
D | signal.c | 333 unsigned char fpstate[FPCONTEXT_SIZE]; in rt_restore_fpu_state() local 350 if (__get_user(*(long *)fpstate, (long __user *)&uc->uc_fpstate)) in rt_restore_fpu_state() 352 if (CPU_IS_060 ? fpstate[2] : fpstate[0]) { in rt_restore_fpu_state() 354 context_size = fpstate[1]; in rt_restore_fpu_state() 357 (fpstate[0] != fpu_version)) in rt_restore_fpu_state() 372 if (!(fpstate[3] == 0x00 || in rt_restore_fpu_state() 373 fpstate[3] == 0x60 || in rt_restore_fpu_state() 374 fpstate[3] == 0xe0)) in rt_restore_fpu_state() 377 if (!(fpstate[3] == 0x00 || in rt_restore_fpu_state() 378 fpstate[3] == 0x05 || in rt_restore_fpu_state() [all …]
|
D | process.c | 182 asm volatile ("fsave %0" : : "m" (p->thread.fpstate[0]) : "memory"); in copy_thread() 184 if (!CPU_IS_060 ? p->thread.fpstate[0] : p->thread.fpstate[2]) { in copy_thread() 207 asm volatile ("frestore %0" : : "m" (p->thread.fpstate[0])); in copy_thread()
|
D | asm-offsets.c | 39 DEFINE(THREAD_FPSTATE, offsetof(struct thread_struct, fpstate)); in main()
|
/arch/x86/um/ |
D | signal.c | 209 &((struct _fpstate __user *)sc.fpstate)->_fxsr_env[0], in copy_sc_from_user() 214 err = convert_fxsr_from_user(&fpx, (void *)sc.fpstate); in copy_sc_from_user() 228 err = copy_from_user(regs->regs.fp, (void *)sc.fpstate, in copy_sc_from_user() 284 sc.fpstate = (unsigned long)to_fp; in copy_sc_to_user() 303 err = convert_fxsr_to_user(&to_fp->fpstate, &fpx); in copy_sc_to_user() 307 err |= __put_user(fpx.swd, &to_fp->fpstate.status); in copy_sc_to_user() 308 err |= __put_user(X86_FXSR_MAGIC, &to_fp->fpstate.magic); in copy_sc_to_user() 312 if (copy_to_user(&to_fp->fpstate._fxsr_env[0], &fpx, in copy_sc_to_user() 343 struct _xstate fpstate; member 356 struct _xstate fpstate; member [all …]
|
/arch/x86/include/uapi/asm/ |
D | sigcontext.h | 193 struct _fpstate fpstate; member 230 __u32 fpstate; /* Zero when no FPU/extended context */ member 273 __u64 fpstate; /* Zero when no FPU/extended context */ member 320 struct _fpstate __user *fpstate; member 380 struct _fpstate __user *fpstate; /* Zero when no FPU context */ member
|
/arch/x86/kernel/fpu/ |
D | core.c | 112 void __restore_fpregs_from_fpstate(union fpregs_state *fpstate, u64 mask) in __restore_fpregs_from_fpstate() argument 125 : : [addr] "m" (fpstate)); in __restore_fpregs_from_fpstate() 129 os_xrstor(&fpstate->xsave, mask); in __restore_fpregs_from_fpstate() 132 fxrstor(&fpstate->fxsave); in __restore_fpregs_from_fpstate() 134 frstor(&fpstate->fsave); in __restore_fpregs_from_fpstate()
|
D | signal.c | 30 void __user *fpstate = fxbuf; in check_xstate_in_sigframe() local 49 if (__get_user(magic2, (__u32 __user *)(fpstate + fx_sw->xstate_size))) in check_xstate_in_sigframe()
|
/arch/x86/ia32/ |
D | ia32_signal.c | 97 return fpu__restore_sig(compat_ptr(sc.fpstate), 1); in ia32_restore_sigcontext() 159 void __user *fpstate, in __unsafe_setup_sigcontext32() argument 183 unsafe_put_user(ptr_to_compat(fpstate), &sc->fpstate, Efault); in __unsafe_setup_sigcontext32() 205 void __user **fpstate) in get_sigframe() argument 222 *fpstate = (struct _fpstate_32 __user *) sp; in get_sigframe() 223 if (copy_fpstate_to_sigframe(*fpstate, (void __user *)fx_aligned, in get_sigframe()
|
/arch/arm/nwfpe/ |
D | fpa11.h | 13 #define GET_FPA11() ((FPA11 *)(¤t_thread_info()->fpstate))
|
D | fpmodule.c | 53 nwfpe_init_fpa(&thread->fpstate); in nwfpe_notify()
|
/arch/x86/include/asm/fpu/ |
D | internal.h | 392 extern void __restore_fpregs_from_fpstate(union fpregs_state *fpstate, u64 mask); 394 static inline void restore_fpregs_from_fpstate(union fpregs_state *fpstate) in restore_fpregs_from_fpstate() argument 396 __restore_fpregs_from_fpstate(fpstate, xfeatures_mask_fpstate()); in restore_fpregs_from_fpstate()
|
/arch/x86/kernel/ |
D | signal.c | 139 return fpu__restore_sig((void __user *)sc.fpstate, in restore_sigcontext() 144 __unsafe_setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate, in __unsafe_setup_sigcontext() argument 190 unsafe_put_user(fpstate, (unsigned long __user *)&sc->fpstate, Efault); in __unsafe_setup_sigcontext() 239 void __user **fpstate) in get_sigframe() argument 276 *fpstate = (void __user *)sp; in get_sigframe() 295 ret = copy_fpstate_to_sigframe(*fpstate, (void __user *)buf_fx, math_size); in get_sigframe()
|
/arch/m68k/include/asm/ |
D | processor.h | 114 unsigned char fpstate[FPSTATESIZE]; /* floating point state */ member
|
/arch/arm/include/asm/ |
D | thread_info.h | 65 union fp_state fpstate __attribute__((aligned(8))); member
|
/arch/arm/kernel/ |
D | asm-offsets.c | 53 DEFINE(TI_FPSTATE, offsetof(struct thread_info, fpstate)); in main() 64 DEFINE(TI_IWMMXT_STATE, offsetof(struct thread_info, fpstate.iwmmxt)); in main()
|
D | ptrace.c | 302 return copy_to_user(ufp, &thread->fpstate.iwmmxt, IWMMXT_SIZE) in ptrace_getwmmxregs() 316 return copy_from_user(&thread->fpstate.iwmmxt, ufp, IWMMXT_SIZE) in ptrace_setwmmxregs() 577 return membuf_write(&to, &task_thread_info(target)->fpstate, in fpa_get() 591 &thread->fpstate, in fpa_set()
|
D | process.c | 219 memset(&thread->fpstate, 0, sizeof(union fp_state)); in flush_thread()
|