Lines Matching refs:fcsr

59 _save_lsx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
61 _restore_lsx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
63 _save_lasx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
65 _restore_lasx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
109 uint32_t __user *fcsr = &ctx->fcsr; in copy_fpu_to_sigcontext() local
117 err |= __put_user(current->thread.fpu.fcsr, fcsr); in copy_fpu_to_sigcontext()
129 uint32_t __user *fcsr = &ctx->fcsr; in copy_fpu_from_sigcontext() local
136 err |= __get_user(current->thread.fpu.fcsr, fcsr); in copy_fpu_from_sigcontext()
147 uint32_t __user *fcsr = &ctx->fcsr; in copy_lsx_to_sigcontext() local
156 err |= __put_user(current->thread.fpu.fcsr, fcsr); in copy_lsx_to_sigcontext()
168 uint32_t __user *fcsr = &ctx->fcsr; in copy_lsx_from_sigcontext() local
177 err |= __get_user(current->thread.fpu.fcsr, fcsr); in copy_lsx_from_sigcontext()
188 uint32_t __user *fcsr = &ctx->fcsr; in copy_lasx_to_sigcontext() local
201 err |= __put_user(current->thread.fpu.fcsr, fcsr); in copy_lasx_to_sigcontext()
213 uint32_t __user *fcsr = &ctx->fcsr; in copy_lasx_from_sigcontext() local
226 err |= __get_user(current->thread.fpu.fcsr, fcsr); in copy_lasx_from_sigcontext()
284 uint32_t __user *fcsr = &ctx->fcsr; in save_hw_fpu_context() local
286 return _save_fp_context(regs, fcc, fcsr); in save_hw_fpu_context()
293 uint32_t __user *fcsr = &ctx->fcsr; in restore_hw_fpu_context() local
295 return _restore_fp_context(regs, fcc, fcsr); in restore_hw_fpu_context()
302 uint32_t __user *fcsr = &ctx->fcsr; in save_hw_lsx_context() local
304 return _save_lsx_context(regs, fcc, fcsr); in save_hw_lsx_context()
311 uint32_t __user *fcsr = &ctx->fcsr; in restore_hw_lsx_context() local
313 return _restore_lsx_context(regs, fcc, fcsr); in restore_hw_lsx_context()
320 uint32_t __user *fcsr = &ctx->fcsr; in save_hw_lasx_context() local
322 return _save_lasx_context(regs, fcc, fcsr); in save_hw_lasx_context()
329 uint32_t __user *fcsr = &ctx->fcsr; in restore_hw_lasx_context() local
331 return _restore_lasx_context(regs, fcc, fcsr); in restore_hw_lasx_context()
369 static int fcsr_pending(unsigned int __user *fcsr) in fcsr_pending() argument
374 err = __get_user(csr, fcsr); in fcsr_pending()
382 err |= __put_user(csr, fcsr); in fcsr_pending()
398 uint32_t __user *fcsr = &fpu_ctx->fcsr; in protected_save_fpu_context() local
417 __put_user(0, fcsr); in protected_save_fpu_context()
432 uint32_t __user *fcsr = &fpu_ctx->fcsr; in protected_restore_fpu_context() local
434 err = sig = fcsr_pending(fcsr); in protected_restore_fpu_context()
452 __get_user(tmp, fcsr); in protected_restore_fpu_context()
467 uint32_t __user *fcsr = &lsx_ctx->fcsr; in protected_save_lsx_context() local
489 __put_user(0, fcsr); in protected_save_lsx_context()
504 uint32_t __user *fcsr = &lsx_ctx->fcsr; in protected_restore_lsx_context() local
506 err = sig = fcsr_pending(fcsr); in protected_restore_lsx_context()
527 __get_user(tmp, fcsr); in protected_restore_lsx_context()
543 uint32_t __user *fcsr = &lasx_ctx->fcsr; in protected_save_lasx_context() local
567 __put_user(0, fcsr); in protected_save_lasx_context()
583 uint32_t __user *fcsr = &lasx_ctx->fcsr; in protected_restore_lasx_context() local
585 err = sig = fcsr_pending(fcsr); in protected_restore_lasx_context()
608 __get_user(tmp, fcsr); in protected_restore_lasx_context()