Searched defs:usb_handle (Results 1 – 10 of 10) sorted by relevance
/system/core/adb/daemon/include/adbd/ |
D | usb.h | 36 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/ |
D | usb_dummy.cpp | 21 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/ |
D | usb_linux.cpp | 60 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 …]
|
D | usb_libusb.cpp | 91 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 …]
|
D | usb_osx.cpp | 49 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
|
D | usb_windows.cpp | 54 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/ |
D | usb_osx.cpp | 56 struct usb_handle struct 71 OsxUsbTransport(std::unique_ptr<usb_handle> handle, uint32_t ms_timeout = 0) in OsxUsbTransport() argument
|
D | usb_windows.cpp | 55 struct usb_handle { struct 71 WindowsUsbTransport(std::unique_ptr<usb_handle> handle) : handle_(std::move(handle)) {} in WindowsUsbTransport() argument
|
D | usb_linux.cpp | 86 struct usb_handle struct 96 explicit LinuxUsbTransport(std::unique_ptr<usb_handle> handle, uint32_t ms_timeout = 0) in LinuxUsbTransport() argument
|
/system/core/adb/ |
D | usb.h | 53 struct usb_handle { struct
|