Home | History | Annotate | Download | only in dev

Lines Matching defs:packet

63 	char packet[4];
64 int index; /* number of bytes received for this packet */
159 memset(sc->packet, 0, 3);
170 sc->packet[sc->index++] = data;
172 u_int newbuttons = ((sc->packet[1] & LBUTMASK) ? 0x1 : 0)
173 | ((sc->packet[1] & RBUTMASK) ? 0x2 : 0);
174 int dx = sc->packet[2];
175 int dy = sc->packet[0];
188 memset(sc->packet, 0, 3);
210 sc->packet[0] = 0xf5; /* Disable */
211 sc->packet[1] = 0xf2; /* Set Stream Mode */
212 sc->packet[2] = 0xf8; /* Stanby */
213 sc->packet[3] = 0xf4; /* Enable */
270 optpoint_send(sc, sc->packet[sc->index++]);
277 memset(sc->packet, 0, 3);