Lines Matching refs:tsk
30 void save_fpu(struct task_struct *tsk) in save_fpu() argument
55 : "0" ((char *)(&tsk->thread.xstate->hardfpu.status)), in save_fpu()
63 void restore_fpu(struct task_struct *tsk) in restore_fpu() argument
87 : "0" (tsk->thread.xstate), "r" (FPSCR_RCHG) in restore_fpu()
457 struct task_struct *tsk = current; in ieee_fpe_handler() local
459 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_FPU_ERROR)) { in ieee_fpe_handler()
461 denormal_to_double (&tsk->thread.xstate->hardfpu, in ieee_fpe_handler()
469 struct task_struct *tsk = current; in ieee_fpe_handler() local
476 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
477 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
478 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
488 | tsk->thread.xstate->hardfpu.fp_regs[n+1]; in ieee_fpe_handler()
490 | tsk->thread.xstate->hardfpu.fp_regs[m+1]; in ieee_fpe_handler()
495 tsk->thread.xstate->hardfpu.fp_regs[n] = llx >> 32; in ieee_fpe_handler()
496 tsk->thread.xstate->hardfpu.fp_regs[n+1] = llx & 0xffffffff; in ieee_fpe_handler()
505 tsk->thread.xstate->hardfpu.fp_regs[n] = hx; in ieee_fpe_handler()
512 struct task_struct *tsk = current; in ieee_fpe_handler() local
519 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
520 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
521 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
531 | tsk->thread.xstate->hardfpu.fp_regs[n+1]; in ieee_fpe_handler()
533 | tsk->thread.xstate->hardfpu.fp_regs[m+1]; in ieee_fpe_handler()
538 tsk->thread.xstate->hardfpu.fp_regs[n] = llx >> 32; in ieee_fpe_handler()
539 tsk->thread.xstate->hardfpu.fp_regs[n+1] = llx & 0xffffffff; in ieee_fpe_handler()
548 tsk->thread.xstate->hardfpu.fp_regs[n] = hx; in ieee_fpe_handler()
561 struct task_struct *tsk = current; in BUILD_TRAP_HANDLER() local
564 __unlazy_fpu(tsk, regs); in BUILD_TRAP_HANDLER()
566 tsk->thread.xstate->hardfpu.fpscr &= in BUILD_TRAP_HANDLER()
569 restore_fpu(tsk); in BUILD_TRAP_HANDLER()
570 task_thread_info(tsk)->status |= TS_USEDFPU; in BUILD_TRAP_HANDLER()
574 force_sig(SIGFPE, tsk); in BUILD_TRAP_HANDLER()