Lines Matching defs:prot
228 const KmouseProt *prot;
235 unsigned long state; /* private per protocol, init to prot->state */
241 const KmouseProt *prot = km->prot;
245 if ((ev[i] & prot->headerMask) == prot->headerValid)
250 if ((ev[i] & prot->dataMask) != prot->dataValid)
504 km->prot = &imps2Prot;
509 km->prot = &exps2Prot;
514 km->prot = &ps2Prot;
614 const KmouseProt *prot = km->prot;
627 if ((ev[i] & prot->dataMask) != prot->dataValid)
734 if (km->prot->tty)
740 t.c_iflag = km->prot->c_iflag;
741 t.c_oflag = km->prot->c_oflag;
742 t.c_lflag = km->prot->c_lflag;
743 t.c_cflag = km->prot->c_cflag;
744 cfsetispeed (&t, km->prot->speed);
745 cfsetospeed (&t, km->prot->speed);
753 km->state = km->prot->state;
757 MouseFirstProtocol (Kmouse *km, char *prot)
759 if (prot)
762 if (!strcmp (prot, kmouseProts[km->i_prot]->name))
767 ErrorF ("Unknown mouse protocol \"%s\". Pick one of:", prot);
774 km->prot = kmouseProts[km->i_prot];
775 if (km->tty && !km->prot->tty)
777 prot);
778 else if (!km->tty && km->prot->tty)
780 prot);
783 if (!km->prot)
787 km->prot = kmouseProts[km->i_prot];
797 if (!km->prot)
801 km->prot = kmouseProts[km->i_prot];
802 } while (km->prot->tty != km->tty);
804 ErrorF ("Switching to mouse protocol \"%s\"\n", km->prot->name);
835 i = (*km->prot->Valid) (pi, event, ne);
840 km->prot->name, i > 0 ? i : ne, ne);
867 if ((*km->prot->Complete) (pi, event, ne))
869 if ((*km->prot->Parse) (pi, event, ne))
876 km->prot->name);
890 km->prot->name);
896 if (km->prot->Init && !(*km->prot->Init) (pi))