Lines Matching refs:tsk
41 void save_fpu(struct task_struct *tsk) in save_fpu() argument
84 :"0"((char *)(&tsk->thread.xstate->hardfpu.status)), in save_fpu()
91 void restore_fpu(struct task_struct *tsk) in restore_fpu() argument
134 :"0" (tsk->thread.xstate), "r" (FPSCR_RCHG) in restore_fpu()
228 struct task_struct *tsk = current; in ieee_fpe_handler() local
230 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_CAUSE_ERROR)) in ieee_fpe_handler()
232 denormal_to_double(&tsk->thread.xstate->hardfpu, in ieee_fpe_handler()
241 struct task_struct *tsk = current; in ieee_fpe_handler() local
248 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
249 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
250 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
260 | tsk->thread.xstate->hardfpu.fp_regs[n + 1]; in ieee_fpe_handler()
262 | tsk->thread.xstate->hardfpu.fp_regs[m + 1]; in ieee_fpe_handler()
264 tsk->thread.xstate->hardfpu.fp_regs[n] = llx >> 32; in ieee_fpe_handler()
265 tsk->thread.xstate->hardfpu.fp_regs[n + 1] = llx & 0xffffffff; in ieee_fpe_handler()
271 tsk->thread.xstate->hardfpu.fp_regs[n] = hx; in ieee_fpe_handler()
279 struct task_struct *tsk = current; in ieee_fpe_handler() local
286 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
287 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
288 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
298 | tsk->thread.xstate->hardfpu.fp_regs[n + 1]; in ieee_fpe_handler()
300 | tsk->thread.xstate->hardfpu.fp_regs[m + 1]; in ieee_fpe_handler()
305 tsk->thread.xstate->hardfpu.fp_regs[n] = llx >> 32; in ieee_fpe_handler()
306 tsk->thread.xstate->hardfpu.fp_regs[n + 1] = llx & 0xffffffff; in ieee_fpe_handler()
315 tsk->thread.xstate->hardfpu.fp_regs[n] = hx; in ieee_fpe_handler()
323 struct task_struct *tsk = current; in ieee_fpe_handler() local
330 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
331 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
332 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
342 | tsk->thread.xstate->hardfpu.fp_regs[n + 1]; in ieee_fpe_handler()
344 | tsk->thread.xstate->hardfpu.fp_regs[m + 1]; in ieee_fpe_handler()
348 tsk->thread.xstate->hardfpu.fp_regs[n] = llx >> 32; in ieee_fpe_handler()
349 tsk->thread.xstate->hardfpu.fp_regs[n + 1] = llx & 0xffffffff; in ieee_fpe_handler()
355 tsk->thread.xstate->hardfpu.fp_regs[n] = hx; in ieee_fpe_handler()
363 struct task_struct *tsk = current; in ieee_fpe_handler() local
368 hx = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
370 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_CAUSE_ERROR) in ieee_fpe_handler()
375 llx = ((long long)tsk->thread.xstate->hardfpu.fp_regs[m] << 32) in ieee_fpe_handler()
376 | tsk->thread.xstate->hardfpu.fp_regs[m + 1]; in ieee_fpe_handler()
378 tsk->thread.xstate->hardfpu.fpul = float64_to_float32(llx); in ieee_fpe_handler()
396 struct task_struct *tsk = current; in float_rounding_mode() local
397 int roundingMode = FPSCR_ROUNDING_MODE(tsk->thread.xstate->hardfpu.fpscr); in float_rounding_mode()
403 struct task_struct *tsk = current; in BUILD_TRAP_HANDLER() local
406 __unlazy_fpu(tsk, regs); in BUILD_TRAP_HANDLER()
409 tsk->thread.xstate->hardfpu.fpscr &= in BUILD_TRAP_HANDLER()
411 tsk->thread.xstate->hardfpu.fpscr |= fpu_exception_flags; in BUILD_TRAP_HANDLER()
414 tsk->thread.xstate->hardfpu.fpscr |= (fpu_exception_flags >> 10); in BUILD_TRAP_HANDLER()
416 restore_fpu(tsk); in BUILD_TRAP_HANDLER()
417 task_thread_info(tsk)->status |= TS_USEDFPU; in BUILD_TRAP_HANDLER()
418 if ((((tsk->thread.xstate->hardfpu.fpscr & FPSCR_ENABLE_MASK) >> 7) & in BUILD_TRAP_HANDLER()