Home
last modified time | relevance | path

Searched defs:usb_handle (Results 1 – 10 of 10) sorted by relevance

/system/core/adb/daemon/include/adbd/
Dusb.h36 struct usb_handle { struct
37 usb_handle() : kicked(false) { in usb_handle() function
45 int (*write)(usb_handle* h, const void* data, int len); argument
46 int (*read)(usb_handle* h, void* data, int len, bool allow_partial); argument
47 void (*kick)(usb_handle* h); argument
48 void (*close)(usb_handle* h); argument
64 usb_handle *create_usb_handle(unsigned num_bufs, unsigned io_size); argument
/system/core/adb/daemon/
Dusb_dummy.cpp21 int usb_write(usb_handle*, const void*, int) { in usb_write() argument
26 int usb_read(usb_handle*, void*, int) { in usb_read() argument
31 int usb_close(usb_handle*) { in usb_close() argument
36 void usb_reset(usb_handle*) { in usb_reset() argument
40 void usb_kick(usb_handle*) { in usb_kick() argument
/system/core/adb/client/
Dusb_linux.cpp60 struct usb_handle : public ::usb_handle { struct
61 ~usb_handle() { in ~usb_handle()
65 std::string path;
66 int fd = -1;
67 unsigned char ep_in;
68 unsigned char ep_out;
70 size_t max_packet_size;
71 unsigned zero_mask;
72 unsigned writeable = 1;
74 usbdevfs_urb urb_in;
[all …]
Dusb_libusb.cpp91 struct usb_handle : public ::usb_handle { struct
92 usb_handle(const std::string& device_address, const std::string& serial, in usb_handle() argument
106 ~usb_handle() { in ~usb_handle()
110 void Close() { in Close()
134 std::string device_address;
135 std::string serial;
137 std::atomic<bool> closing;
138 std::mutex device_handle_mutex;
139 libusb_device_handle* device_handle;
141 transfer_info read;
[all …]
Dusb_osx.cpp49 struct usb_handle struct
51 UInt8 bulkIn;
52 UInt8 bulkOut;
53 IOUSBInterfaceInterface550** interface;
54 unsigned int zero_mask;
55 size_t max_packet_size;
58 bool mark;
59 std::string devpath;
60 std::atomic<bool> dead;
62 usb_handle() in usb_handle() argument
Dusb_windows.cpp54 struct usb_handle : public ::usb_handle { struct
56 ADBAPIHANDLE adb_interface;
59 ADBAPIHANDLE adb_read_pipe;
62 ADBAPIHANDLE adb_write_pipe;
65 wchar_t* interface_name;
68 unsigned max_packet_size;
71 unsigned zero_mask;
/system/core/fastboot/
Dusb_osx.cpp56 struct usb_handle struct
71 OsxUsbTransport(std::unique_ptr<usb_handle> handle, uint32_t ms_timeout = 0) in OsxUsbTransport() argument
Dusb_windows.cpp55 struct usb_handle { struct
71 WindowsUsbTransport(std::unique_ptr<usb_handle> handle) : handle_(std::move(handle)) {} in WindowsUsbTransport() argument
Dusb_linux.cpp86 struct usb_handle struct
96 explicit LinuxUsbTransport(std::unique_ptr<usb_handle> handle, uint32_t ms_timeout = 0) in LinuxUsbTransport() argument
/system/core/adb/
Dusb.h53 struct usb_handle { struct