Lines Matching refs:fpexc
114 vfp->hard.fpexc = FPEXC_EN; in vfp_thread_flush()
169 u32 fpexc; in vfp_notifier() local
176 fpexc = fmrx(FPEXC); in vfp_notifier()
186 if ((fpexc & FPEXC_EN) && vfp_current_hw_state[cpu]) in vfp_notifier()
187 vfp_save_state(vfp_current_hw_state[cpu], fpexc); in vfp_notifier()
194 fmxr(FPEXC, fpexc & ~FPEXC_EN); in vfp_notifier()
336 void VFP_bounce(u32 trigger, u32 fpexc, struct pt_regs *regs) in VFP_bounce() argument
340 pr_debug("VFP: bounce: trigger %08x fpexc %08x\n", trigger, fpexc); in VFP_bounce()
355 fmxr(FPEXC, fpexc & ~(FPEXC_EX|FPEXC_DEX|FPEXC_FP2V|FPEXC_VV|FPEXC_TRAP_MASK)); in VFP_bounce()
371 if (fpexc & FPEXC_EX) { in VFP_bounce()
380 } else if (!(fpexc & FPEXC_DEX)) { in VFP_bounce()
395 if (fpexc & (FPEXC_EX | FPEXC_VV)) { in VFP_bounce()
398 len = fpexc + (1 << FPEXC_LENGTH_BIT); in VFP_bounce()
417 if ((fpexc & (FPEXC_EX | FPEXC_FP2V)) != (FPEXC_EX | FPEXC_FP2V)) in VFP_bounce()
465 u32 fpexc = fmrx(FPEXC); in vfp_pm_suspend() local
468 if (fpexc & FPEXC_EN) { in vfp_pm_suspend()
470 vfp_save_state(&ti->vfpstate, fpexc); in vfp_pm_suspend()
476 fmxr(FPEXC, fpexc | FPEXC_EN); in vfp_pm_suspend()
477 vfp_save_state(vfp_current_hw_state[ti->cpu], fpexc); in vfp_pm_suspend()
478 fmxr(FPEXC, fpexc); in vfp_pm_suspend()
534 u32 fpexc = fmrx(FPEXC); in vfp_sync_hwstate() local
539 fmxr(FPEXC, fpexc | FPEXC_EN); in vfp_sync_hwstate()
540 vfp_save_state(&thread->vfpstate, fpexc | FPEXC_EN); in vfp_sync_hwstate()
541 fmxr(FPEXC, fpexc); in vfp_sync_hwstate()
585 __put_user_error(hwstate->fpexc, &ufp_exc->fpexc, err); in vfp_preserve_user_clear_hwstate()
609 unsigned long fpexc; in vfp_restore_user_hwstate() local
629 __get_user_error(fpexc, &ufp_exc->fpexc, err); in vfp_restore_user_hwstate()
632 fpexc |= FPEXC_EN; in vfp_restore_user_hwstate()
635 fpexc &= ~(FPEXC_EX | FPEXC_FP2V); in vfp_restore_user_hwstate()
636 hwstate->fpexc = fpexc; in vfp_restore_user_hwstate()
694 u32 fpexc; in kernel_neon_begin() local
704 fpexc = fmrx(FPEXC) | FPEXC_EN; in kernel_neon_begin()
705 fmxr(FPEXC, fpexc); in kernel_neon_begin()
712 vfp_save_state(&thread->vfpstate, fpexc); in kernel_neon_begin()
715 vfp_save_state(vfp_current_hw_state[cpu], fpexc); in kernel_neon_begin()