Home
last modified time | relevance | path

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

/system/core/adb/daemon/
Dusb_legacy.cpp87 if (!open_functionfs(&h->control, &h->bulk_out, &h->bulk_in)) { in init_functionfs()
91 h->read_aiob.fd = h->bulk_out.get(); in init_functionfs()
146 D("about to read (fd=%d, len=%d)", h->bulk_out.get(), len); in usb_ffs_read()
153 int n = adb_read(h->bulk_out, buf, read_len); in usb_ffs_read()
155 D("ERROR: fd = %d, n = %d: %s", h->bulk_out.get(), n, strerror(errno)); in usb_ffs_read()
172 D("[ done fd=%d ]", h->bulk_out.get()); in usb_ffs_read()
251 err = ioctl(h->bulk_out.get(), FUNCTIONFS_CLEAR_HALT); in usb_ffs_kick()
253 D("[ kick: sink (fd=%d) clear halt failed (%d) ]", h->bulk_out.get(), errno); in usb_ffs_kick()
261 TEMP_FAILURE_RETRY(dup2(dummy_fd.get(), h->bulk_out.get())); in usb_ffs_kick()
269 h->bulk_out.reset(); in usb_ffs_close()
Dusb_ffs.cpp213 unique_fd control, bulk_out, bulk_in; in open_functionfs() local
262 bulk_out.reset(adb_open(USB_FFS_ADB_OUT, O_RDONLY)); in open_functionfs()
263 if (bulk_out < 0) { in open_functionfs()
276 *out_bulk_out = std::move(bulk_out); in open_functionfs()
Dusb.cpp721 unique_fd bulk_out; in usb_ffs_open_thread() local
723 if (!open_functionfs(&control, &bulk_out, &bulk_in)) { in usb_ffs_open_thread()
733 std::move(control), std::move(bulk_out), std::move(bulk_in), in usb_ffs_open_thread()
/system/core/adb/daemon/include/adbd/
Dusb.h52 android::base::unique_fd bulk_out; // "out" from the host's perspective => source for adbd member
65 bool open_functionfs(android::base::unique_fd* control, android::base::unique_fd* bulk_out,
/system/core/adb/client/
Dusb_libusb.cpp94 uint8_t bulk_out, size_t zero_mask, size_t max_packet_size) in usb_handle()
103 bulk_out(bulk_out), in usb_handle()
146 uint8_t bulk_out; member
225 uint8_t bulk_in = 0, bulk_out = 0; in process_device() local
265 bulk_out = endpoint_addr; in process_device()
311 << StringPrintf("bulk_in = %#x, bulk_out = %#x", bulk_in, bulk_out); in process_device()
335 for (uint8_t endpoint : {bulk_in, bulk_out}) { in process_device()
369 bulk_out, zero_mask, packet_size)); in process_device()
577 info->transfer->endpoint = h->bulk_out; in usb_write()
/system/core/fastboot/device/
Dusb_client.cpp191 h->bulk_out.reset(); in CloseFunctionFs()
221 h->bulk_out.reset(open(kUsbFfsFastbootOut, O_RDONLY)); in InitFunctionFs()
222 if (h->bulk_out < 0) { in InitFunctionFs()
233 h->read_aiob.fd = h->bulk_out.get(); in InitFunctionFs()