Home
last modified time | relevance | path

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

/system/core/fastboot/
Dusb_linux.cpp415 int xfer; in Write() local
416 xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; in Write()
419 bulk.len = xfer; in Write()
424 if(n != xfer) { in Write()
430 count += xfer; in Write()
431 len -= xfer; in Write()
432 data += xfer; in Write()
450 int xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; in Read() local
453 bulk.len = xfer; in Read()
459 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()
204 size_t xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len; in Read() local
206 ret = AdbReadEndpointSync(handle_->adb_read_pipe, data, xfer, &read, time_out); in Read()
208 DBG("usb_read got: %lu, expected: %zu, errno: %d\n", read, xfer, errno); in Read()
219 if (xfer != read || len == 0) return count; in Read()