Home
last modified time | relevance | path

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

/system/core/fastbootd/
Dusb_linux_client.c64 int bulk_out; /* "out" from the host's perspective => source for fastbootd */ member
184 usb_transport->bulk_out = open(USB_FFS_FASTBOOT_OUT, O_RDWR); in init_functionfs()
185 if (usb_transport->bulk_out < 0) { in init_functionfs()
203 if (usb_transport->bulk_out > 0) { in init_functionfs()
204 close(usb_transport->bulk_out); in init_functionfs()
205 usb_transport->bulk_out = -1; in init_functionfs()
236 D(DEBUG, "about to read (fd=%d, len=%zu)", usb_transport->bulk_out, len); in usb_read()
237 ret = bulk_read(usb_transport->bulk_out, data, len); in usb_read()
239 D(ERR, "ERROR: fd = %d, ret = %zd", usb_transport->bulk_out, ret); in usb_read()
242 D(DEBUG, "[ usb_read done fd=%d ret=%zd]", usb_transport->bulk_out, ret); in usb_read()
[all …]
Dutils.c184 ssize_t bulk_read(int bulk_out, char *buf, size_t length) in bulk_read() argument
191 ret = TEMP_FAILURE_RETRY(read(bulk_out, buf + n, to_read)); in bulk_read()
194 bulk_out, length, errno, strerror(errno)); in bulk_read()
Dutils.h46 ssize_t bulk_read(int bulk_out, char *buf, size_t length);
/system/core/adb/
Dusb_linux_client.c54 int bulk_out; /* "out" from the host's perspective => source for adbd */ member
288 h->bulk_out = adb_open(USB_FFS_ADB_OUT, O_RDWR); in init_functionfs()
289 if (h->bulk_out < 0) { in init_functionfs()
307 if (h->bulk_out > 0) { in init_functionfs()
308 adb_close(h->bulk_out); in init_functionfs()
309 h->bulk_out = -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()
380 static int bulk_read(int bulk_out, char *buf, size_t length) in bulk_read() argument
386 ret = adb_read(bulk_out, buf + count, length - count); in bulk_read()
[all …]