Lines Matching refs:fcsr
89 uint32_t __user *fcsr = &ctx->fcsr; in copy_fpu_to_sigcontext() local
97 err |= __put_user(current->thread.fpu.fcsr, fcsr); in copy_fpu_to_sigcontext()
109 uint32_t __user *fcsr = &ctx->fcsr; in copy_fpu_from_sigcontext() local
116 err |= __get_user(current->thread.fpu.fcsr, fcsr); in copy_fpu_from_sigcontext()
127 uint32_t __user *fcsr = &ctx->fcsr; in copy_lsx_to_sigcontext() local
136 err |= __put_user(current->thread.fpu.fcsr, fcsr); in copy_lsx_to_sigcontext()
148 uint32_t __user *fcsr = &ctx->fcsr; in copy_lsx_from_sigcontext() local
157 err |= __get_user(current->thread.fpu.fcsr, fcsr); in copy_lsx_from_sigcontext()
168 uint32_t __user *fcsr = &ctx->fcsr; in copy_lasx_to_sigcontext() local
181 err |= __put_user(current->thread.fpu.fcsr, fcsr); in copy_lasx_to_sigcontext()
193 uint32_t __user *fcsr = &ctx->fcsr; in copy_lasx_from_sigcontext() local
206 err |= __get_user(current->thread.fpu.fcsr, fcsr); in copy_lasx_from_sigcontext()
264 uint32_t __user *fcsr = &ctx->fcsr; in save_hw_fpu_context() local
266 return _save_fp_context(regs, fcc, fcsr); in save_hw_fpu_context()
273 uint32_t __user *fcsr = &ctx->fcsr; in restore_hw_fpu_context() local
275 return _restore_fp_context(regs, fcc, fcsr); in restore_hw_fpu_context()
282 uint32_t __user *fcsr = &ctx->fcsr; in save_hw_lsx_context() local
284 return _save_lsx_context(regs, fcc, fcsr); in save_hw_lsx_context()
291 uint32_t __user *fcsr = &ctx->fcsr; in restore_hw_lsx_context() local
293 return _restore_lsx_context(regs, fcc, fcsr); in restore_hw_lsx_context()
300 uint32_t __user *fcsr = &ctx->fcsr; in save_hw_lasx_context() local
302 return _save_lasx_context(regs, fcc, fcsr); in save_hw_lasx_context()
309 uint32_t __user *fcsr = &ctx->fcsr; in restore_hw_lasx_context() local
311 return _restore_lasx_context(regs, fcc, fcsr); in restore_hw_lasx_context()
349 static int fcsr_pending(unsigned int __user *fcsr) in fcsr_pending() argument
354 err = __get_user(csr, fcsr); in fcsr_pending()
362 err |= __put_user(csr, fcsr); in fcsr_pending()
378 uint32_t __user *fcsr = &fpu_ctx->fcsr; in protected_save_fpu_context() local
397 __put_user(0, fcsr); in protected_save_fpu_context()
412 uint32_t __user *fcsr = &fpu_ctx->fcsr; in protected_restore_fpu_context() local
414 err = sig = fcsr_pending(fcsr); in protected_restore_fpu_context()
432 __get_user(tmp, fcsr); in protected_restore_fpu_context()
447 uint32_t __user *fcsr = &lsx_ctx->fcsr; in protected_save_lsx_context() local
469 __put_user(0, fcsr); in protected_save_lsx_context()
484 uint32_t __user *fcsr = &lsx_ctx->fcsr; in protected_restore_lsx_context() local
486 err = sig = fcsr_pending(fcsr); in protected_restore_lsx_context()
507 __get_user(tmp, fcsr); in protected_restore_lsx_context()
523 uint32_t __user *fcsr = &lasx_ctx->fcsr; in protected_save_lasx_context() local
547 __put_user(0, fcsr); in protected_save_lasx_context()
563 uint32_t __user *fcsr = &lasx_ctx->fcsr; in protected_restore_lasx_context() local
565 err = sig = fcsr_pending(fcsr); in protected_restore_lasx_context()
588 __get_user(tmp, fcsr); in protected_restore_lasx_context()