Lines Matching defs:code

219 	 * Start the wheel-mouse detection code.  First, we look
338 int code, length;
350 code = *mp->b_rptr++;
355 * Start state. We stay here if the start code is not
357 * start code the button mask comes with it forcing us to
392 STATEP->sync_byte = code & 0x8;
404 if ((code ^ STATEP->sync_byte) & 0x08) {
407 break; /* toss the code */
411 STATEP->buttons = code & PS2_BUTTONMASK;
418 if (code & PS2_DATA_YSIGN)
424 if (code & PS2_DATA_XSIGN)
429 if (code == MSE_AA)
442 if (code == MSE_ACK) {
450 if (code != MSE_AA)
457 if (code != MSE_00)
467 if (code == MSE_00) {
485 STATEP->deltax |= code & 0xff;
499 STATEP->deltay |= code & 0xff;
512 if (code & 0x10) {
518 } else if (code & 0x20) {
532 code &= 0xf;
547 if (code == 0xf) {
549 code |= 0xfffffff0;
551 FE_PAIR_NONE, 0, -code);
552 } else if (code == 0x01) {
555 FE_PAIR_NONE, 0, -code);
570 if (code == 0x09) {
574 } else if (code == 0x07) {
619 * If length is 1, code holds the data from the message.
634 if (code == MSE_ACK)
658 /* Skip past the 0x00 (since `code' contains 0xAA) */
673 if (code != MSE_ACK) {
683 if (code != MSE_ACK) {
691 if (code != MSE_ACK) {
708 if (code != MSE_ACK) {
719 if (code != 0) {
720 STATEP->nbuttons = (uchar_t)code;
742 * we could leave this code so that *some*
765 if (code != MSE_ACK) {
772 if (code != MSE_ACK) {
780 if (code != MSE_ACK) {
788 if (code != MSE_ACK) {
796 if (code != MSE_ACK) {
804 if (code != MSE_ACK) {
820 if (code != MSE_ACK) {
831 if (code != 0x03) {
860 if (code != MSE_ACK) {
868 if (code != MSE_ACK) {
876 if (code != MSE_ACK) {
884 if (code != MSE_ACK) {
892 if (code != MSE_ACK) {
900 if (code != MSE_ACK) {
917 if (code != MSE_ACK) {
924 if (code == 0x04) {
952 if (code != MSE_ACK) {
960 if (code != MSE_ACK) {
977 if (code != MSE_ACK) {
985 if (code != MSE_ACK) {