Lines Matching full:fpu

36 #include <asm/fpu.h>
47 /* Make sure we will not lose FPU ownership */
54 /* Assembly functions to move context to/from the FPU */
88 struct _ctx_layout fpu; member
114 __put_user(get_fpr64(&current->thread.fpu.fpr[i], 0), in copy_fpu_to_sigcontext()
117 err |= __put_user(current->thread.fpu.fcc, fcc); in copy_fpu_to_sigcontext()
118 err |= __put_user(current->thread.fpu.fcsr, fcsr); in copy_fpu_to_sigcontext()
134 set_fpr64(&current->thread.fpu.fpr[i], 0, fpr_val); in copy_fpu_from_sigcontext()
136 err |= __get_user(current->thread.fpu.fcc, fcc); in copy_fpu_from_sigcontext()
137 err |= __get_user(current->thread.fpu.fcsr, fcsr); in copy_fpu_from_sigcontext()
151 err |= __put_user(get_fpr64(&current->thread.fpu.fpr[i], 0), in copy_lsx_to_sigcontext()
153 err |= __put_user(get_fpr64(&current->thread.fpu.fpr[i], 1), in copy_lsx_to_sigcontext()
156 err |= __put_user(current->thread.fpu.fcc, fcc); in copy_lsx_to_sigcontext()
157 err |= __put_user(current->thread.fpu.fcsr, fcsr); in copy_lsx_to_sigcontext()
173 set_fpr64(&current->thread.fpu.fpr[i], 0, fpr_val); in copy_lsx_from_sigcontext()
175 set_fpr64(&current->thread.fpu.fpr[i], 1, fpr_val); in copy_lsx_from_sigcontext()
177 err |= __get_user(current->thread.fpu.fcc, fcc); in copy_lsx_from_sigcontext()
178 err |= __get_user(current->thread.fpu.fcsr, fcsr); in copy_lsx_from_sigcontext()
192 err |= __put_user(get_fpr64(&current->thread.fpu.fpr[i], 0), in copy_lasx_to_sigcontext()
194 err |= __put_user(get_fpr64(&current->thread.fpu.fpr[i], 1), in copy_lasx_to_sigcontext()
196 err |= __put_user(get_fpr64(&current->thread.fpu.fpr[i], 2), in copy_lasx_to_sigcontext()
198 err |= __put_user(get_fpr64(&current->thread.fpu.fpr[i], 3), in copy_lasx_to_sigcontext()
201 err |= __put_user(current->thread.fpu.fcc, fcc); in copy_lasx_to_sigcontext()
202 err |= __put_user(current->thread.fpu.fcsr, fcsr); in copy_lasx_to_sigcontext()
218 set_fpr64(&current->thread.fpu.fpr[i], 0, fpr_val); in copy_lasx_from_sigcontext()
220 set_fpr64(&current->thread.fpu.fpr[i], 1, fpr_val); in copy_lasx_from_sigcontext()
222 set_fpr64(&current->thread.fpu.fpr[i], 2, fpr_val); in copy_lasx_from_sigcontext()
224 set_fpr64(&current->thread.fpu.fpr[i], 3, fpr_val); in copy_lasx_from_sigcontext()
226 err |= __get_user(current->thread.fpu.fcc, fcc); in copy_lasx_from_sigcontext()
227 err |= __get_user(current->thread.fpu.fcsr, fcsr); in copy_lasx_from_sigcontext()
267 return __put_user(current->thread.fpu.ftop, ftop); in copy_ftop_to_sigcontext()
274 return __get_user(current->thread.fpu.ftop, ftop); in copy_ftop_from_sigcontext()
378 * If the signal handler set some FPU exceptions, clear it and in fcsr_pending()
395 struct sctx_info __user *info = extctx->fpu.addr; in protected_save_fpu_context()
410 err |= __put_user(extctx->fpu.size, &info->size); in protected_save_fpu_context()
414 /* Touch the FPU context and try again */ in protected_save_fpu_context()
429 struct sctx_info __user *info = extctx->fpu.addr; in protected_restore_fpu_context()
449 /* Touch the FPU context and try again */ in protected_restore_fpu_context()
705 else if (extctx->fpu.addr) in setup_sigcontext()
741 extctx->fpu.addr = info; in parse_extcontext()
797 * The signal handler may have used FPU; give it up if the program in restore_sigcontext()
814 else if (extctx.fpu.addr) in restore_sigcontext()
882 new_sp = extframe_alloc(extctx, &extctx->fpu, in setup_extcontext()