/arch/m68k/kernel/ |
D | signal.c | 334 unsigned char fpstate[FPCONTEXT_SIZE]; in rt_restore_fpu_state() local 351 if (__get_user(*(long *)fpstate, (long __user *)&uc->uc_fpstate)) in rt_restore_fpu_state() 353 if (CPU_IS_060 ? fpstate[2] : fpstate[0]) { in rt_restore_fpu_state() 355 context_size = fpstate[1]; in rt_restore_fpu_state() 358 (fpstate[0] != fpu_version)) in rt_restore_fpu_state() 373 if (!(fpstate[3] == 0x00 || in rt_restore_fpu_state() 374 fpstate[3] == 0x60 || in rt_restore_fpu_state() 375 fpstate[3] == 0xe0)) in rt_restore_fpu_state() 378 if (!(fpstate[3] == 0x00 || in rt_restore_fpu_state() 379 fpstate[3] == 0x05 || in rt_restore_fpu_state() [all …]
|
D | process.c | 163 asm volatile ("fsave %0" : : "m" (p->thread.fpstate[0]) : "memory"); in copy_thread() 165 if (!CPU_IS_060 ? p->thread.fpstate[0] : p->thread.fpstate[2]) { in copy_thread() 188 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/ia32/ |
D | ia32_signal.c | 100 get_user_ex(tmp, &sc->fpstate); in ia32_restore_sigcontext() 181 void __user *fpstate, in ia32_setup_sigcontext() argument 208 put_user_ex(ptr_to_compat(fpstate), &sc->fpstate); in ia32_setup_sigcontext() 223 void __user **fpstate) in get_sigframe() argument 240 *fpstate = (struct _fpstate_32 __user *) sp; in get_sigframe() 241 if (copy_fpstate_to_sigframe(*fpstate, (void __user *)fx_aligned, in get_sigframe() 258 void __user *fpstate = NULL; in ia32_setup_frame() local 271 frame = get_sigframe(ksig, regs, sizeof(*frame), &fpstate); in ia32_setup_frame() 279 if (ia32_setup_sigcontext(&frame->sc, fpstate, regs, set->sig[0])) in ia32_setup_frame() 336 void __user *fpstate = NULL; in ia32_setup_rt_frame() local [all …]
|
/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/kernel/ |
D | signal.c | 139 get_user_ex(buf_val, &sc->fpstate); in restore_sigcontext() 159 int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate, in setup_sigcontext() argument 208 put_user_ex(fpstate, (unsigned long __user *)&sc->fpstate); in setup_sigcontext() 241 void __user **fpstate) in get_sigframe() argument 278 *fpstate = (void __user *)sp; in get_sigframe() 297 ret = copy_fpstate_to_sigframe(*fpstate, (void __user *)buf_fx, math_size); in get_sigframe() 334 void __user *fpstate = NULL; in __setup_frame() local 336 frame = get_sigframe(&ksig->ka, regs, sizeof(*frame), &fpstate); in __setup_frame() 344 if (setup_sigcontext(&frame->sc, fpstate, regs, set->sig[0])) in __setup_frame() 397 void __user *fpstate = NULL; in __setup_rt_frame() local [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/include/asm/fpu/ |
D | internal.h | 36 extern int dump_fpu(struct pt_regs *ptregs, struct user_i387_struct *fpstate); 436 static inline void __copy_kernel_to_fpregs(union fpregs_state *fpstate, u64 mask) in __copy_kernel_to_fpregs() argument 439 copy_kernel_to_xregs(&fpstate->xsave, mask); in __copy_kernel_to_fpregs() 442 copy_kernel_to_fxregs(&fpstate->fxsave); in __copy_kernel_to_fpregs() 444 copy_kernel_to_fregs(&fpstate->fsave); in __copy_kernel_to_fpregs() 448 static inline void copy_kernel_to_fpregs(union fpregs_state *fpstate) in copy_kernel_to_fpregs() argument 460 : : [addr] "m" (fpstate)); in copy_kernel_to_fpregs() 463 __copy_kernel_to_fpregs(fpstate, -1); in copy_kernel_to_fpregs()
|
/arch/unicore32/include/asm/ |
D | suspend.h | 20 struct fp_state fpstate __attribute__((aligned(8))); member
|
D | thread_info.h | 75 struct fp_state fpstate __attribute__((aligned(8))); member
|
/arch/x86/include/asm/ |
D | sighandling.h | 17 int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate,
|
/arch/unicore32/kernel/ |
D | asm-offsets.c | 46 DEFINE(TI_FPSTATE, offsetof(struct thread_info, fpstate)); in main() 101 fpstate)); in main()
|
D | process.c | 211 memset(&thread->fpstate, 0, sizeof(struct fp_state)); in flush_thread() 268 memcpy(fp, &thread->fpstate, sizeof(*fp)); in dump_fpu()
|
/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/m68k/include/asm/ |
D | processor.h | 89 unsigned char fpstate[FPSTATESIZE]; /* floating point state */ member
|
/arch/arm/include/asm/ |
D | thread_info.h | 63 union fp_state fpstate __attribute__((aligned(8))); member
|
/arch/arm/kernel/ |
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() 610 &task_thread_info(target)->fpstate, in fpa_get() 624 &thread->fpstate, in fpa_set()
|
D | asm-offsets.c | 65 DEFINE(TI_FPSTATE, offsetof(struct thread_info, fpstate)); in main() 76 DEFINE(TI_IWMMXT_STATE, offsetof(struct thread_info, fpstate.iwmmxt)); in main()
|
D | process.c | 213 memset(&thread->fpstate, 0, sizeof(union fp_state)); in flush_thread() 292 memcpy(fp, &thread->fpstate.soft, sizeof (*fp)); in dump_fpu()
|
/arch/x86/kernel/fpu/ |
D | signal.c | 25 void __user *fpstate, in check_for_xstate() argument 48 if (__get_user(magic2, (__u32 __user *)(fpstate + fx_sw->xstate_size)) in check_for_xstate()
|