Home
last modified time | relevance | path

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

/system/core/fastboot/
Dusb_linux.cpp399 int xfer; in Write() local
400 xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; in Write()
403 bulk.len = xfer; in Write()
408 if(n != xfer) { in Write()
414 count += xfer; in Write()
415 len -= xfer; in Write()
416 data += xfer; in Write()
434 int xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; in Read() local
437 bulk.len = xfer; in Read()
443 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/client/
Dusb_linux.cpp433 int xfer = len; in usb_read() local
435 D("[ usb read %d fd = %d], path=%s", xfer, h->fd, h->path.c_str()); in usb_read()
436 n = usb_bulk_read(h, data, xfer); in usb_read()
437 D("[ usb read %d ] = %d, path=%s", xfer, n, h->path.c_str()); in usb_read()
438 if(n != xfer) { in usb_read()
452 len -= xfer; in usb_read()
453 data += xfer; in usb_read()
/system/core/adb/
Dcommandline.cpp812 unsigned xfer = (sz > CHUNK_SIZE) ? CHUNK_SIZE : sz; in adb_download_buffer() local
813 if (!WriteFdExactly(fd, ptr, xfer)) { in adb_download_buffer()
820 sz -= xfer; in adb_download_buffer()
821 ptr += xfer; in adb_download_buffer()
888 size_t xfer = 0; in adb_sideload_host() local
899 static_cast<double>(xfer) / (sb.st_size ? sb.st_size : 1), in adb_sideload_host()
931 xfer += to_write; in adb_sideload_host()
939 int percent = static_cast<int>(xfer * 47LL / (sb.st_size ? sb.st_size : 1)); in adb_sideload_host()