Home
last modified time | relevance | path

Searched refs:xfer (Results 1 – 4 of 4) sorted by relevance

/system/core/fastboot/
Dusb_linux.cpp397 int xfer; in Write() local
398 xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; in Write()
401 bulk.len = xfer; in Write()
406 if(n != xfer) { in Write()
412 count += xfer; in Write()
413 len -= xfer; in Write()
414 data += xfer; in Write()
432 int xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; in Read() local
435 bulk.len = xfer; in Read()
441 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, handle_->desc, handle_->fname); in Read()
[all …]
Dusb_windows.cpp164 int xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; in Write() local
165 ret = AdbWriteEndpointSync(handle_->adb_write_pipe, const_cast<void*>(data), xfer, in Write()
201 int xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; in Read() local
203 ret = AdbReadEndpointSync(handle_->adb_read_pipe, data, xfer, &read, time_out); in Read()
205 DBG("usb_read got: %ld, expected: %d, errno: %d\n", read, xfer, errno); in Read()
/system/core/adb/
Dusb_linux.cpp430 int xfer = len; in usb_read() local
432 D("[ usb read %d fd = %d], path=%s", xfer, h->fd, h->path.c_str()); in usb_read()
433 n = usb_bulk_read(h, data, xfer); in usb_read()
434 D("[ usb read %d ] = %d, path=%s", xfer, n, h->path.c_str()); in usb_read()
435 if(n != xfer) { in usb_read()
449 len -= xfer; in usb_read()
450 data += xfer; in usb_read()
Dcommandline.cpp837 unsigned xfer = (sz > CHUNK_SIZE) ? CHUNK_SIZE : sz; in adb_download_buffer() local
838 if (!WriteFdExactly(fd, ptr, xfer)) { in adb_download_buffer()
845 sz -= xfer; in adb_download_buffer()
846 ptr += xfer; in adb_download_buffer()
889 size_t xfer = 0; in adb_sideload_host() local
952 xfer += to_write; in adb_sideload_host()
960 int percent = (int)(xfer * 47LL / (sz ? sz : 1)); in adb_sideload_host()
968 printf("\rTotal xfer: %.2fx%*s\n", (double)xfer / (sz ? sz : 1), (int)strlen(fn)+10, ""); in adb_sideload_host()