Lines Matching refs:comm
96 ALPS_packet_ok(struct CommData *comm)
99 if ((comm->protoBuf[0] & 0xf8) == 0xf8)
105 ALPS_get_packet(struct CommData *comm, InputInfoPtr pInfo)
109 while ((c = XisbRead(comm->buffer)) >= 0) {
112 comm->protoBuf[comm->protoBufTail++] = u;
114 if (comm->protoBufTail == 3) { /* PS/2 packet received? */
115 if ((comm->protoBuf[0] & 0xc8) == 0x08) {
116 comm->protoBufTail = 0;
121 if (comm->protoBufTail >= 6) { /* Full packet received */
122 comm->protoBufTail = 0;
123 if (ALPS_packet_ok(comm))
125 while ((c = XisbRead(comm->buffer)) >= 0); /* If packet is invalid, re-sync */
211 struct CommData *comm, struct SynapticsHwState *hwRet)
213 unsigned char *buf = comm->protoBuf;
214 struct SynapticsHwState *hw = comm->hwState;
216 if (!ALPS_get_packet(comm, pInfo))