Lines Matching refs:protocol
72 { { 0, 0, 0 }, 0, "unknown protocol" },
129 DPRINTF(("pms_protocol: found mouse protocol %d\n",
134 DPRINTF(("pms_protocol: standard PS/2 protocol (no scroll wheel)\n"));
200 sc->protocol = PMS_UNKNOWN;
205 sc->protocol = PMS_SYNAPTICS;
210 sc->protocol = PMS_ELANTECH;
215 sc->protocol = PMS_ALPS;
259 if (sc->protocol == PMS_SYNAPTICS)
263 if (sc->protocol == PMS_ELANTECH)
267 if (sc->protocol == PMS_ALPS)
277 if (sc->protocol == PMS_UNKNOWN)
278 sc->protocol = pms_protocol(sc->sc_kbctag, sc->sc_kbcslot);
279 DPRINTF(("pms_enable: using %s protocol\n",
280 pms_protocols[sc->protocol].name));
371 if (sc->protocol == PMS_SYNAPTICS) {
379 if (sc->protocol == PMS_ELANTECH) {
387 if (sc->protocol == PMS_ALPS) {
395 /* recheck protocol & init mouse */
396 sc->protocol = PMS_UNKNOWN;
457 save_protocol = sc->protocol;
467 /* For the synaptics and elantech case, leave the protocol alone. */
468 if (sc->protocol != PMS_SYNAPTICS && sc->protocol != PMS_ELANTECH
469 && sc->protocol != PMS_ALPS)
470 sc->protocol = PMS_UNKNOWN;
473 if (sc->protocol != save_protocol) {
476 "protocol change, sleeping and retrying\n");
494 sc->protocol = PMS_UNKNOWN; /* reprobe protocol */
497 if (sc->protocol != save_protocol) {
498 printf("%s: protocol changed.\n",
578 * why it is not used if using PMS_STANDARD protocol).
583 if (sc->protocol == PMS_STANDARD)
608 if (sc->protocol == PMS_SCROLL3) {
614 } else if (sc->protocol == PMS_SCROLL5) {
630 * bytes, or the standard protocol with 3.
632 if (sc->protocol != PMS_STANDARD && sc->inputstate == 3)
656 if (sc->protocol == PMS_STANDARD) {