Lines Matching refs:current
19 if (test_tsk_thread_flag(current, TIF_USEDFPU)) { in save_fpu_state()
21 fpsave(¤t->thread.float_regs[0], ¤t->thread.fsr, in save_fpu_state()
22 ¤t->thread.fpqueue[0], ¤t->thread.fpqdepth); in save_fpu_state()
24 clear_tsk_thread_flag(current, TIF_USEDFPU); in save_fpu_state()
27 if (current == last_task_used_math) { in save_fpu_state()
29 fpsave(¤t->thread.float_regs[0], ¤t->thread.fsr, in save_fpu_state()
30 ¤t->thread.fpqueue[0], ¤t->thread.fpqdepth); in save_fpu_state()
36 ¤t->thread.float_regs[0], in save_fpu_state()
38 err |= __put_user(current->thread.fsr, &fpu->si_fsr); in save_fpu_state()
39 err |= __put_user(current->thread.fpqdepth, &fpu->si_fpqdepth); in save_fpu_state()
40 if (current->thread.fpqdepth != 0) in save_fpu_state()
42 ¤t->thread.fpqueue[0], in save_fpu_state()
57 if (test_tsk_thread_flag(current, TIF_USEDFPU)) in restore_fpu_state()
60 if (current == last_task_used_math) { in restore_fpu_state()
66 clear_tsk_thread_flag(current, TIF_USEDFPU); in restore_fpu_state()
71 err = __copy_from_user(¤t->thread.float_regs[0], &fpu->si_float_regs[0], in restore_fpu_state()
73 err |= __get_user(current->thread.fsr, &fpu->si_fsr); in restore_fpu_state()
74 err |= __get_user(current->thread.fpqdepth, &fpu->si_fpqdepth); in restore_fpu_state()
75 if (current->thread.fpqdepth != 0) in restore_fpu_state()
76 err |= __copy_from_user(¤t->thread.fpqueue[0], in restore_fpu_state()