Lines Matching defs:packet
74 * used to get the packet len. possible return values:
75 * > 0: packet len
300 * An eGalax diagnostic packet kicks the device into using the right
301 * protocol. We send a "check active" packet. The response will be
1047 struct nexio_touch_packet *packet = (void *) pkt;
1049 unsigned int data_len = be16_to_cpu(packet->data_len);
1050 unsigned int x_len = be16_to_cpu(packet->x_len);
1051 unsigned int y_len = be16_to_cpu(packet->y_len);
1083 if (begin_x == -1 && packet->data[x] > NEXIO_THRESHOLD) {
1087 if (end_x == -1 && begin_x != -1 && packet->data[x] < NEXIO_THRESHOLD) {
1090 if (begin_y == -1 && packet->data[y] > NEXIO_THRESHOLD) {
1095 begin_y != -1 && packet->data[y] < NEXIO_THRESHOLD) {
1116 usbtouch->touch = packet->flags & 0x01;
1455 /* loop over the received packet, process */
1458 /* get packet len */
1462 /* unknown packet: skip one byte */
1468 /* full packet: process */
1472 /* incomplete packet: save in buffer */