Home
last modified time | relevance | path

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

/system/core/fastboot/
Dusb_linux.cpp406 int xfer; in Write() local
407 xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; in Write()
410 bulk.len = xfer; in Write()
415 if(n != xfer) { in Write()
421 count += xfer; in Write()
422 len -= xfer; in Write()
423 data += xfer; in Write()
441 int xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; in Read() local
444 bulk.len = xfer; in Read()
450 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, handle_->desc, handle_->fname); in Read()
[all …]
Dusb_windows.cpp166 int xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; in Write() local
167 ret = AdbWriteEndpointSync(handle_->adb_write_pipe, const_cast<void*>(data), xfer, in Write()
203 int xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; in Read() local
205 ret = AdbReadEndpointSync(handle_->adb_read_pipe, data, xfer, &read, time_out); in Read()
207 DBG("usb_read got: %ld, expected: %d, errno: %d\n", read, xfer, errno); in Read()
/system/core/adb/client/
Dusb_linux.cpp438 int xfer = len; in usb_read() local
440 D("[ usb read %d fd = %d], path=%s", xfer, h->fd, h->path.c_str()); in usb_read()
441 n = usb_bulk_read(h, data, xfer); in usb_read()
442 D("[ usb read %d ] = %d, path=%s", xfer, n, h->path.c_str()); in usb_read()
Dcommandline.cpp814 unsigned xfer = (size > CHUNK_SIZE) ? CHUNK_SIZE : size; in adb_sideload_legacy() local
815 if (!ReadFdExactly(in_fd, buf, xfer)) { in adb_sideload_legacy()
819 if (!WriteFdExactly(out_fd, buf, xfer)) { in adb_sideload_legacy()
825 size -= xfer; in adb_sideload_legacy()
898 int64_t xfer = 0; in adb_sideload_install() local
910 static_cast<double>(xfer) / (sb.st_size ? sb.st_size : 1), in adb_sideload_install()
947 xfer += to_write; in adb_sideload_install()
955 int percent = static_cast<int>(xfer * 47LL / (sb.st_size ? sb.st_size : 1)); in adb_sideload_install()