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
1048 struct nexio_touch_packet *packet = (void *) pkt;
1050 unsigned int data_len = be16_to_cpu(packet->data_len);
1051 unsigned int x_len = be16_to_cpu(packet->x_len);
1052 unsigned int y_len = be16_to_cpu(packet->y_len);
1086 if (begin_x == -1 && packet->data[x] > NEXIO_THRESHOLD) {
1090 if (end_x == -1 && begin_x != -1 && packet->data[x] < NEXIO_THRESHOLD) {
1093 if (begin_y == -1 && packet->data[y] > NEXIO_THRESHOLD) {
1098 begin_y != -1 && packet->data[y] < NEXIO_THRESHOLD) {
1119 usbtouch->touch = packet->flags & 0x01;
1458 /* loop over the received packet, process */
1461 /* get packet len */
1465 /* unknown packet: skip one byte */
1471 /* full packet: process */
1475 /* incomplete packet: save in buffer */