Searched refs:bulk_in (Results 1 – 4 of 4) sorted by relevance
/system/core/adb/ |
D | usb_linux_client.c | 55 int bulk_in; /* "in" from the host's perspective => sink for adbd */ member 294 h->bulk_in = adb_open(USB_FFS_ADB_IN, O_RDWR); in init_functionfs() 295 if (h->bulk_in < 0) { in init_functionfs() 303 if (h->bulk_in > 0) { in init_functionfs() 304 adb_close(h->bulk_in); in init_functionfs() 305 h->bulk_in = -1; in init_functionfs() 325 while (usb->control != -1 && usb->bulk_in != -1 && usb->bulk_out != -1) in usb_ffs_open_thread() 332 if (usb->control >= 0 && usb->bulk_in >= 0 && usb->bulk_out >= 0) in usb_ffs_open_thread() 346 static int bulk_write(int bulk_in, const char *buf, size_t length) in bulk_write() argument 352 ret = adb_write(bulk_in, buf + count, length - count); in bulk_write() [all …]
|
/system/core/fastbootd/ |
D | usb_linux_client.c | 65 int bulk_in; /* "in" from the host's perspective => sink for fastbootd */ member 190 usb_transport->bulk_in = open(USB_FFS_FASTBOOT_IN, O_RDWR); in init_functionfs() 191 if (usb_transport->bulk_in < 0) { in init_functionfs() 199 if (usb_transport->bulk_in > 0) { in init_functionfs() 200 close(usb_transport->bulk_in); in init_functionfs() 201 usb_transport->bulk_in = -1; in init_functionfs() 220 D(DEBUG, "about to write (fd=%d, len=%zu)", usb_transport->bulk_in, len); in usb_write() 221 ret = bulk_write(usb_transport->bulk_in, data, len); in usb_write() 223 D(ERR, "ERROR: fd = %d, ret = %zd", usb_transport->bulk_in, ret); in usb_write() 226 D(DEBUG, "[ usb_write done fd=%d ]", usb_transport->bulk_in); in usb_write() [all …]
|
D | utils.c | 164 ssize_t bulk_write(int bulk_in, const char *buf, size_t length) in bulk_write() argument 170 ret = TEMP_FAILURE_RETRY(write(bulk_in, buf + count, length - count)); in bulk_write() 173 bulk_in, length, errno, strerror(errno)); in bulk_write() 180 D(VERBOSE, "[ bulk_write done fd=%d ]", bulk_in); in bulk_write()
|
D | utils.h | 47 ssize_t bulk_write(int bulk_in, const char *buf, size_t length);
|