Searched refs:xfer (Results 1 – 5 of 5) sorted by relevance
/system/core/fastboot/ |
D | usb_linux.c | 378 int xfer; in usb_write() local 379 xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; in usb_write() 382 bulk.len = xfer; in usb_write() 387 if(n != xfer) { in usb_write() 393 count += xfer; in usb_write() 394 len -= xfer; in usb_write() 395 data += xfer; in usb_write() 413 int xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; in usb_read() local 416 bulk.len = xfer; in usb_read() 422 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, h->desc, h->fname); in usb_read() [all …]
|
D | usb_windows.c | 165 int xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; in usb_write() local 168 (unsigned long)xfer, in usb_write() 205 int xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; in usb_read() local 209 (unsigned long)xfer, in usb_read() 213 DBG("usb_read got: %ld, expected: %d, errno: %d\n", read, xfer, errno); in usb_read()
|
/system/core/adb/ |
D | usb_linux.cpp | 462 int xfer = (len > 4096) ? 4096 : len; in usb_write() local 464 n = usb_bulk_write(h, data, xfer); in usb_write() 465 if(n != xfer) { in usb_write() 471 len -= xfer; in usb_write() 472 data += xfer; in usb_write() 491 int xfer = (len > 4096) ? 4096 : len; in usb_read() local 493 D("[ usb read %d fd = %d], fname=%s\n", xfer, h->desc, h->fname); in usb_read() 494 n = usb_bulk_read(h, data, xfer); in usb_read() 495 D("[ usb read %d ] = %d, fname=%s\n", xfer, n, h->fname); in usb_read() 496 if(n != xfer) { in usb_read() [all …]
|
D | usb_windows.cpp | 314 int xfer = (len > 4096) ? 4096 : len; in usb_read() local 318 (unsigned long)xfer, in usb_read() 322 D("usb_write got: %ld, expected: %d, errno: %d\n", read, xfer, saved_errno); in usb_read()
|
D | commandline.cpp | 471 unsigned xfer = (sz > CHUNK_SIZE) ? CHUNK_SIZE : sz; in adb_download_buffer() local 472 if (!WriteFdExactly(fd, ptr, xfer)) { in adb_download_buffer() 478 sz -= xfer; in adb_download_buffer() 479 ptr += xfer; in adb_download_buffer() 521 size_t xfer = 0; in adb_sideload_host() local 584 xfer += to_write; in adb_sideload_host() 592 int percent = (int)(xfer * 47LL / (sz ? sz : 1)); in adb_sideload_host() 600 printf("\rTotal xfer: %.2fx%*s\n", (double)xfer / (sz ? sz : 1), (int)strlen(fn)+10, ""); in adb_sideload_host()
|