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()
452 u32 fpexc = fmrx(FPEXC); in vfp_pm_suspend() local
455 if (fpexc & FPEXC_EN) { in vfp_pm_suspend()
457 vfp_save_state(&ti->vfpstate, fpexc); in vfp_pm_suspend()
463 fmxr(FPEXC, fpexc | FPEXC_EN); in vfp_pm_suspend()
464 vfp_save_state(vfp_current_hw_state[ti->cpu], fpexc); in vfp_pm_suspend()
465 fmxr(FPEXC, fpexc); in vfp_pm_suspend()
521 u32 fpexc = fmrx(FPEXC); in vfp_sync_hwstate() local
526 fmxr(FPEXC, fpexc | FPEXC_EN); in vfp_sync_hwstate()
527 vfp_save_state(&thread->vfpstate, fpexc | FPEXC_EN); in vfp_sync_hwstate()
528 fmxr(FPEXC, fpexc); in vfp_sync_hwstate()
572 __put_user_error(hwstate->fpexc, &ufp_exc->fpexc, err); in vfp_preserve_user_clear_hwstate()
596 unsigned long fpexc; in vfp_restore_user_hwstate() local
616 __get_user_error(fpexc, &ufp_exc->fpexc, err); in vfp_restore_user_hwstate()
619 fpexc |= FPEXC_EN; in vfp_restore_user_hwstate()
622 fpexc &= ~(FPEXC_EX | FPEXC_FP2V); in vfp_restore_user_hwstate()
623 hwstate->fpexc = fpexc; in vfp_restore_user_hwstate()
661 u32 fpexc; in kernel_neon_begin() local
671 fpexc = fmrx(FPEXC) | FPEXC_EN; in kernel_neon_begin()
672 fmxr(FPEXC, fpexc); in kernel_neon_begin()
679 vfp_save_state(&thread->vfpstate, fpexc); in kernel_neon_begin()
682 vfp_save_state(vfp_current_hw_state[cpu], fpexc); in kernel_neon_begin()