/system/core/fastbootd/ |
usb_linux_client.c | 64 int bulk_out; /* "out" from the host's perspective => source for fastbootd */ member in struct:usb_transport 184 usb_transport->bulk_out = open(USB_FFS_FASTBOOT_OUT, O_RDWR); 185 if (usb_transport->bulk_out < 0) { 203 if (usb_transport->bulk_out > 0) { 204 close(usb_transport->bulk_out); 205 usb_transport->bulk_out = -1; 236 D(DEBUG, "about to read (fd=%d, len=%zu)", usb_transport->bulk_out, len); 237 ret = bulk_read(usb_transport->bulk_out, data, len); 239 D(ERR, "ERROR: fd = %d, ret = %zd", usb_transport->bulk_out, ret); 242 D(DEBUG, "[ usb_read done fd=%d ret=%zd]", usb_transport->bulk_out, ret) [all...] |
utils.h | 46 ssize_t bulk_read(int bulk_out, char *buf, size_t length);
|
utils.c | 184 ssize_t bulk_read(int bulk_out, char *buf, size_t length) 191 ret = TEMP_FAILURE_RETRY(read(bulk_out, buf + n, to_read)); 194 bulk_out, length, errno, strerror(errno));
|
/system/core/adb/ |
usb_linux_client.c | 54 int bulk_out; /* "out" from the host's perspective => source for adbd */ member in struct:usb_handle 288 h->bulk_out = adb_open(USB_FFS_ADB_OUT, O_RDWR); 289 if (h->bulk_out < 0) { 307 if (h->bulk_out > 0) { 308 adb_close(h->bulk_out); 309 h->bulk_out = -1; 325 while (usb->control != -1 && usb->bulk_in != -1 && usb->bulk_out != -1) 332 if (usb->control >= 0 && usb->bulk_in >= 0 && usb->bulk_out >= 0) 380 static int bulk_read(int bulk_out, char *buf, size_t length) 386 ret = adb_read(bulk_out, buf + count, length - count) [all...] |
/bootable/recovery/minadbd/ |
usb_linux_client.c | 51 int bulk_out; /* "out" from the host's perspective => source for adbd */ member in struct:usb_handle 290 h->bulk_out = adb_open(USB_FFS_ADB_OUT, O_RDWR); 291 if (h->bulk_out < 0) { 309 if (h->bulk_out > 0) { 310 adb_close(h->bulk_out); 311 h->bulk_out = -1; 382 static int bulk_read(int bulk_out, char *buf, size_t length) 388 ret = adb_read(bulk_out, buf + count, length - count); 392 bulk_out, length, count); 407 D("about to read (fd=%d, len=%d)\n", h->bulk_out, len) [all...] |
/external/chromium_org/chrome/browser/devtools/device/usb/ |
android_usb_browsertest.cc | 344 UsbEndpointDescriptor bulk_out; local 345 bulk_out.address = 0x01; 346 bulk_out.direction = device::USB_DIRECTION_OUTBOUND; 347 bulk_out.maximum_packet_size = 512; 348 bulk_out.transfer_type = device::USB_TRANSFER_BULK; 357 interface_desc.endpoints.push_back(bulk_out);
|