Home | History | Annotate | Download | only in pckbport

Lines Matching refs:packet

828 	x = (int8_t)((psc->packet[2] & 0xbf) |
829 ((psc->packet[3] & 0x10) << 2));
830 y = (int8_t)((psc->packet[3] & 0x07) | (psc->packet[4] & 0xb8) |
831 ((psc->packet[3] & 0x20) << 1));
832 z = (int8_t)((psc->packet[5] & 0x3f) |
833 ((psc->packet[3] & 0x80) >> 1));
839 left = psc->packet[1] & 0x01;
840 middle = (psc->packet[1] & 0x04) >> 2;
841 right = (psc->packet[1] & 0x02) >> 1;
856 if (psc->packet[4] & 0x40)
858 else if (psc->packet[4] & 0x01)
860 else if ((psc->packet[0] & 0x10) && !(psc->packet[4] & 0x43))
862 else if ((psc->packet[1] == 0x00) && (psc->packet[4] == 0x00))
890 /* Sent new packet ID to reset status and not decoded */
897 cur_x1 = (psc->packet[2] & 0x80) << 4; /* X0-11 */
898 cur_x1 |= (psc->packet[2] & 0x3f) << 5; /* X0-10 ... X0-5 */
899 cur_x1 |= (psc->packet[3] & 0x30) >> 1; /* X0-4, X0-3 */
900 cur_x1 |= psc->packet[3] & 0x07; /* X0-2 ... X0-0 */
903 cur_y1 = psc->packet[1] << 3; /* Y0-10 ... Y0-3 */
904 cur_y1 |= psc->packet[0] & 0x07; /* Y0-2 ... Y0-0 */
907 cur_x2 = (psc->packet[3] & 0x80) << 4; /* X1-11 */
908 cur_x2 |= (psc->packet[4] & 0x80) << 3; /* X1-10 */
909 cur_x2 |= (psc->packet[4] & 0x3f) << 4; /* X1-9 ... X1-4 */
912 cur_y2 = (psc->packet[5] & 0x80) << 3; /* Y1-10 */
913 cur_y2 |= (psc->packet[5] & 0x3f) << 4; /* Y1-9 .. Y1-4 */
923 cur_y2 |= (psc->packet[4] & __BIT(1)) << 4; /* Set another */
947 sc->nfingers = 3 + (psc->packet[5] & 0x03);
951 button = (psc->packet[0] & 0x80) >> 7;
1022 if ((psc->packet[0] == 0x48) && ((psc->packet[4] & 0x47) == 0x06))
1040 sc->nfingers = (psc->packet[2] & 0x02) >> 1;
1044 left = psc->packet[3] & 0x01;
1045 right = (psc->packet[3] & 0x02) >> 1;
1046 middle = (psc->packet[3] & 0x04) >> 2;
1048 cur_x = psc->packet[1];
1049 cur_x |= (psc->packet[2] & 0x78) << 4;
1051 cur_y = psc->packet[4];
1052 cur_y |= (psc->packet[3] & 0x70) << 3;
1055 cur_z = psc->packet[5];
1058 forward = (psc->packet[2] & 0x04) >> 2;
1059 back = (psc->packet[3] & 0x04) >> 2;
1060 ges = psc->packet[2] & 0x01;
1102 psc->packet[psc->inputstate++] = data & 0xff;
1119 psc->packet[psc->inputstate++] = data & 0xff;