Searched refs:xfer (Results 1 – 4 of 4) sorted by relevance
/system/core/fastboot/ |
D | usb_linux.cpp | 415 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 …]
|
D | usb_windows.cpp | 166 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()
|
/system/core/adb/client/ |
D | usb_linux.cpp | 458 int xfer = len; in usb_read() local 460 D("[ usb read %d fd = %d], path=%s", xfer, h->fd, h->path.c_str()); in usb_read() 461 n = usb_bulk_read(h, data, xfer); in usb_read() 462 D("[ usb read %d ] = %d, path=%s", xfer, n, h->path.c_str()); in usb_read()
|
D | commandline.cpp | 836 unsigned xfer = (size > CHUNK_SIZE) ? CHUNK_SIZE : size; in adb_sideload_legacy() local 837 if (!ReadFdExactly(in_fd, buf, xfer)) { in adb_sideload_legacy() 841 if (!WriteFdExactly(out_fd, buf, xfer)) { in adb_sideload_legacy() 847 size -= xfer; in adb_sideload_legacy() 920 int64_t xfer = 0; in adb_sideload_install() local 932 static_cast<double>(xfer) / (sb.st_size ? sb.st_size : 1), in adb_sideload_install() 969 xfer += to_write; in adb_sideload_install() 977 int percent = static_cast<int>(xfer * 47LL / (sb.st_size ? sb.st_size : 1)); in adb_sideload_install()
|