Lines Matching refs:wp

112 	u32 wp[2];  member
203 vc.wp[0] = current->thread.evr[fc]; in do_spe_mathemu()
204 vc.wp[1] = regs->gpr[fc]; in do_spe_mathemu()
205 va.wp[0] = current->thread.evr[fa]; in do_spe_mathemu()
206 va.wp[1] = regs->gpr[fa]; in do_spe_mathemu()
207 vb.wp[0] = current->thread.evr[fb]; in do_spe_mathemu()
208 vb.wp[1] = regs->gpr[fb]; in do_spe_mathemu()
213 pr_debug("vc: %08x %08x\n", vc.wp[0], vc.wp[1]); in do_spe_mathemu()
214 pr_debug("va: %08x %08x\n", va.wp[0], va.wp[1]); in do_spe_mathemu()
215 pr_debug("vb: %08x %08x\n", vb.wp[0], vb.wp[1]); in do_spe_mathemu()
224 FP_UNPACK_SP(SA, va.wp + 1); in do_spe_mathemu()
226 FP_UNPACK_SP(SB, vb.wp + 1); in do_spe_mathemu()
229 FP_UNPACK_SP(SA, va.wp + 1); in do_spe_mathemu()
238 vc.wp[1] = va.wp[1] & ~SIGN_BIT_S; in do_spe_mathemu()
242 vc.wp[1] = va.wp[1] | SIGN_BIT_S; in do_spe_mathemu()
246 vc.wp[1] = va.wp[1] ^ SIGN_BIT_S; in do_spe_mathemu()
280 vc.wp[1] = 0; in do_spe_mathemu()
284 FP_TO_INT_ROUND_S(vc.wp[1], SB, 32, in do_spe_mathemu()
304 vc.wp[1] = 0; in do_spe_mathemu()
307 FP_TO_INT_ROUND_S(vc.wp[1], SB, 32, in do_spe_mathemu()
315 vc.wp[1] = 0; in do_spe_mathemu()
318 FP_TO_INT_S(vc.wp[1], SB, 32, in do_spe_mathemu()
331 FP_PACK_SP(vc.wp + 1, SR); in do_spe_mathemu()
410 vc.wp[1] = 0; in do_spe_mathemu()
414 FP_TO_INT_ROUND_D(vc.wp[1], DB, 32, in do_spe_mathemu()
422 FP_UNPACK_SP(SB, vb.wp + 1); in do_spe_mathemu()
445 vc.wp[1] = 0; in do_spe_mathemu()
448 FP_TO_INT_ROUND_D(vc.wp[1], DB, 32, in do_spe_mathemu()
456 vc.wp[1] = 0; in do_spe_mathemu()
459 FP_TO_INT_D(vc.wp[1], DB, 32, in do_spe_mathemu()
497 FP_UNPACK_SP(SA0, va.wp); in do_spe_mathemu()
498 FP_UNPACK_SP(SA1, va.wp + 1); in do_spe_mathemu()
500 FP_UNPACK_SP(SB0, vb.wp); in do_spe_mathemu()
501 FP_UNPACK_SP(SB1, vb.wp + 1); in do_spe_mathemu()
504 FP_UNPACK_SP(SA0, va.wp); in do_spe_mathemu()
505 FP_UNPACK_SP(SA1, va.wp + 1); in do_spe_mathemu()
520 vc.wp[0] = va.wp[0] & ~SIGN_BIT_S; in do_spe_mathemu()
521 vc.wp[1] = va.wp[1] & ~SIGN_BIT_S; in do_spe_mathemu()
525 vc.wp[0] = va.wp[0] | SIGN_BIT_S; in do_spe_mathemu()
526 vc.wp[1] = va.wp[1] | SIGN_BIT_S; in do_spe_mathemu()
530 vc.wp[0] = va.wp[0] ^ SIGN_BIT_S; in do_spe_mathemu()
531 vc.wp[1] = va.wp[1] ^ SIGN_BIT_S; in do_spe_mathemu()
569 vc.wp[0] = 0; in do_spe_mathemu()
573 FP_TO_INT_ROUND_S(vc.wp[0], SB0, 32, in do_spe_mathemu()
577 vc.wp[1] = 0; in do_spe_mathemu()
581 FP_TO_INT_ROUND_S(vc.wp[1], SB1, 32, in do_spe_mathemu()
589 vc.wp[0] = 0; in do_spe_mathemu()
592 FP_TO_INT_ROUND_S(vc.wp[0], SB0, 32, in do_spe_mathemu()
596 vc.wp[1] = 0; in do_spe_mathemu()
599 FP_TO_INT_ROUND_S(vc.wp[1], SB1, 32, in do_spe_mathemu()
607 vc.wp[0] = 0; in do_spe_mathemu()
610 FP_TO_INT_S(vc.wp[0], SB0, 32, in do_spe_mathemu()
614 vc.wp[1] = 0; in do_spe_mathemu()
617 FP_TO_INT_S(vc.wp[1], SB1, 32, in do_spe_mathemu()
633 FP_PACK_SP(vc.wp, SR0); in do_spe_mathemu()
634 FP_PACK_SP(vc.wp + 1, SR1); in do_spe_mathemu()
685 current->thread.evr[fc] = vc.wp[0]; in do_spe_mathemu()
686 regs->gpr[fc] = vc.wp[1]; in do_spe_mathemu()
691 pr_debug("vc: %08x %08x\n", vc.wp[0], vc.wp[1]); in do_spe_mathemu()
692 pr_debug("va: %08x %08x\n", va.wp[0], va.wp[1]); in do_spe_mathemu()
693 pr_debug("vb: %08x %08x\n", vb.wp[0], vb.wp[1]); in do_spe_mathemu()
757 fgpr.wp[0] = current->thread.evr[fc]; in speround_handler()
758 fgpr.wp[1] = regs->gpr[fc]; in speround_handler()
791 if (fgpr.wp[1] == 0) in speround_handler()
799 if (fgpr.wp[1] == 0) in speround_handler()
801 if (fgpr.wp[0] == 0) in speround_handler()
810 if (fgpr.wp[1] == 0) in speround_handler()
819 pr_debug("round fgpr: %08x %08x\n", fgpr.wp[0], fgpr.wp[1]); in speround_handler()
828 if (!s_lo) fgpr.wp[1]++; /* Z > 0, choose Z1 */ in speround_handler()
832 fgpr.wp[1]++; /* Z < 0, choose Z2 */ in speround_handler()
834 fgpr.wp[1]--; /* Z < 0, choose Z2 */ in speround_handler()
845 fgpr.wp[1]++; /* Z > 0, choose Z1 */ in speround_handler()
852 fgpr.wp[1]--; /* Z < 0, choose Z2 */ in speround_handler()
860 fgpr.wp[1]++; /* Z_low > 0, choose Z1 */ in speround_handler()
862 fgpr.wp[0]++; /* Z_high word > 0, choose Z1 */ in speround_handler()
866 fgpr.wp[1]++; /* Z_low < 0, choose Z2 */ in speround_handler()
868 fgpr.wp[1]--; /* Z_low < 0, choose Z2 */ in speround_handler()
872 fgpr.wp[0]++; /* Z_high < 0, choose Z2 */ in speround_handler()
874 fgpr.wp[0]--; /* Z_high < 0, choose Z2 */ in speround_handler()
883 current->thread.evr[fc] = fgpr.wp[0]; in speround_handler()
884 regs->gpr[fc] = fgpr.wp[1]; in speround_handler()
886 pr_debug(" to fgpr: %08x %08x\n", fgpr.wp[0], fgpr.wp[1]); in speround_handler()