Searched defs:xfer (Results 1 - 5 of 5) sorted by relevance

/system/core/adb/
H A Dusb_windows.cpp314 int xfer = (len > 4096) ? 4096 : len; local
318 (unsigned long)xfer,
322 D("usb_write got: %ld, expected: %d, errno: %d\n", read, xfer, saved_errno);
H A Dusb_linux.cpp462 int xfer = (len > 4096) ? 4096 : len; local
464 n = usb_bulk_write(h, data, xfer);
465 if(n != xfer) {
471 len -= xfer;
472 data += xfer;
491 int xfer = (len > 4096) ? 4096 : len; local
493 D("[ usb read %d fd = %d], fname=%s\n", xfer, h->desc, h->fname);
494 n = usb_bulk_read(h, data, xfer);
495 D("[ usb read %d ] = %d, fname=%s\n", xfer, n, h->fname);
496 if(n != xfer) {
[all...]
H A Dcommandline.cpp471 unsigned xfer = (sz > CHUNK_SIZE) ? CHUNK_SIZE : sz; local
472 if (!WriteFdExactly(fd, ptr, xfer)) {
478 sz -= xfer;
479 ptr += xfer;
521 size_t xfer = 0; local
584 xfer += to_write;
592 int percent = (int)(xfer * 47LL / (sz ? sz : 1));
600 printf("\rTotal xfer: %.2fx%*s\n", (double)xfer / (sz ? sz : 1), (int)strlen(fn)+10, "");
/system/core/fastboot/
H A Dusb_windows.c165 int xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; local
168 (unsigned long)xfer,
205 int xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; local
209 (unsigned long)xfer,
213 DBG("usb_read got: %ld, expected: %d, errno: %d\n", read, xfer, errno);
H A Dusb_linux.c378 int xfer; local
379 xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len;
382 bulk.len = xfer;
387 if(n != xfer) {
393 count += xfer;
394 len -= xfer;
395 data += xfer;
413 int xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; local
416 bulk.len = xfer;
422 DBG("[ usb read %d fd = %d], fname=%s\n", xfer,
[all...]

Completed in 460 milliseconds