Lines Matching defs:adbInputBuffer
250 u_char adbInputBuffer[ADB_MAX_MSG_LENGTH]; /* data input buffer */
379 adbInputBuffer[0] = 0;
424 adbInputBuffer[1] = ADB_SR();
432 adbInputBuffer[0] = 1;
436 printf_intr("idle 0x%02x ", adbInputBuffer[1]);
441 adbInputBuffer[++adbInputBuffer[0]] = ADB_SR();
452 adbInputBuffer[adbInputBuffer[0]]);
453 print_single(adbInputBuffer);
466 memcpy(packet.data, adbInputBuffer, adbInputBuffer[0] + 1);
469 (adbInputBuffer[4] == adbWaitingCmd) &&
470 ((adbInputBuffer[2] == 0x00) ||
471 (adbInputBuffer[2] == 0x01))) {
493 adbInputBuffer[0] = 0;
516 adbInputBuffer[0] = 0;
533 adbInputBuffer[adbInputBuffer[0]]);
555 adbInputBuffer[0] = 0;
570 memcpy(packet.data, adbInputBuffer, adbInputBuffer[0] + 1);
795 adbInputBuffer[0] = 1;
796 adbInputBuffer[1] = ADB_SR(); /* get first byte */
799 printf_intr("idle 0x%02x ", adbInputBuffer[1]);
808 adbInputBuffer[++adbInputBuffer[0]] = ADB_SR(); /* get byte */
812 adbInputBuffer[adbInputBuffer[0]]);
817 adbInputBuffer[0]--; /* minus one */
823 if (adbInputBuffer[0] == 2) {
824 adbInputBuffer[0]++;
830 print_single(adbInputBuffer);
834 adbLastDevice = ADB_CMDADDR(adbInputBuffer[1]);
836 if (adbInputBuffer[0] == 1 && !adbWaiting) { /* SRQ!!!*/
860 memcpy(packet.data, adbInputBuffer, adbInputBuffer[0] + 1);
862 if (!adbWaiting && (adbInputBuffer[0] != 0)) {
876 adbInputBuffer[0] = 0;
957 adbInputBuffer[0] = 1;
958 adbInputBuffer[1] = i;
1271 adbInputBuffer[1] = ADB_SR(); /* get byte */
1272 adbInputBuffer[0] = 1;
1283 adbInputBuffer[++adbInputBuffer[0]] = ADB_SR(); /* get byte */
1303 memcpy(packet.data, adbInputBuffer, adbInputBuffer[0] + 1);
1306 (adbInputBuffer[4] == adbWaitingCmd) && /* the cmd we sent AND */
1307 ((adbInputBuffer[2] == 0x00) || /* it's from the ADB
1309 (adbInputBuffer[2] == 0x01))) { /* it's from the
1331 adbInputBuffer[0] = 0; /* reset length */
1348 adbInputBuffer[0] = 0;
1376 adbInputBuffer[0] = 0;
1395 memcpy(packet.data, adbInputBuffer,
1396 adbInputBuffer[0] + 1);