/system/core/adb/ |
D | usb_windows.cpp | 43 struct usb_handle { struct 45 usb_handle *prev; argument 48 usb_handle *next; argument 70 static usb_handle handle_list = { argument 86 int register_new_device(usb_handle* handle); 89 int recognized_device(usb_handle* handle); 106 usb_handle* do_usb_open(const wchar_t* interface_name); 109 int usb_write(usb_handle* handle, const void* data, int len); 112 int usb_read(usb_handle *handle, void* data, int len); 115 void usb_cleanup_handle(usb_handle* handle); [all …]
|
D | usb_linux_client.cpp | 57 struct usb_handle struct 64 int (*write)(usb_handle *h, const void *data, int len); argument 65 int (*read)(usb_handle *h, void *data, int len); argument 66 void (*kick)(usb_handle *h); argument 67 void (*close)(usb_handle *h); argument 244 struct usb_handle *usb = (struct usb_handle *)x; in usb_adb_open_thread() 283 static int usb_adb_write(usb_handle *h, const void *data, int len) in usb_adb_write() 302 static int usb_adb_read(usb_handle *h, void *data, int len) in usb_adb_read() 327 static void usb_adb_kick(usb_handle *h) { in usb_adb_kick() 338 static void usb_adb_close(usb_handle *h) { in usb_adb_close() [all …]
|
D | usb_osx.cpp | 43 struct usb_handle struct 55 usb_handle() : bulkIn(0), bulkOut(0), interface(nullptr), in usb_handle() argument 63 static auto& g_usb_handles = *new std::vector<std::unique_ptr<usb_handle>>(); 77 static void usb_kick_locked(usb_handle* handle); 90 static void AddDevice(std::unique_ptr<usb_handle> handle) { in AddDevice() 97 static std::unique_ptr<usb_handle> CheckInterface(IOUSBInterfaceInterface190 **iface, 286 std::unique_ptr<usb_handle> handle = CheckInterface((IOUSBInterfaceInterface190**)iface, in AndroidInterfaceAdded() 294 usb_handle* handle_p = handle.get(); in AndroidInterfaceAdded() 315 static std::unique_ptr<usb_handle> 318 std::unique_ptr<usb_handle> handle; in CheckInterface() [all …]
|
D | usb_linux.cpp | 54 struct usb_handle { struct 55 ~usb_handle() { in ~usb_handle() argument 85 static auto& g_usb_handles = *new std::list<usb_handle*>(); argument 89 for (usb_handle* usb : g_usb_handles) { in is_known_device() 102 for (usb_handle* usb : g_usb_handles) { in kick_disconnected_devices() 296 static int usb_bulk_write(usb_handle* h, const void* data, int len) { in usb_bulk_write() 335 static int usb_bulk_read(usb_handle* h, void* data, int len) { in usb_bulk_read() 402 int usb_write(usb_handle *h, const void *_data, int len) in usb_write() 423 int usb_read(usb_handle *h, void *_data, int len) in usb_read() 457 void usb_kick(usb_handle* h) { in usb_kick() [all …]
|
D | adb.h | 56 struct usb_handle; 161 void init_usb_transport(atransport *t, usb_handle *usb, ConnectionState state); 221 int usb_write(usb_handle *h, const void *data, int len); 222 int usb_read(usb_handle *h, void *data, int len); 223 int usb_close(usb_handle *h); 224 void usb_kick(usb_handle *h);
|
D | transport.h | 81 usb_handle* usb = nullptr; 163 void register_usb_transport(usb_handle* h, const char* serial, 170 void unregister_usb_transport(usb_handle* usb);
|
D | transport_usb.cpp | 83 void init_usb_transport(atransport *t, usb_handle *h, ConnectionState state) in init_usb_transport()
|
D | transport.cpp | 1007 void register_usb_transport(usb_handle* usb, const char* serial, in register_usb_transport() 1030 void unregister_usb_transport(usb_handle *usb) { in unregister_usb_transport()
|
/system/core/fastboot/ |
D | usb_windows.cpp | 55 struct usb_handle { struct 71 WindowsUsbTransport(std::unique_ptr<usb_handle> handle) : handle_(std::move(handle)) {} in WindowsUsbTransport() argument 79 std::unique_ptr<usb_handle> handle_; 88 int recognized_device(usb_handle* handle, ifc_match_func callback); 91 std::unique_ptr<usb_handle> do_usb_open(const wchar_t* interface_name); 94 void usb_cleanup_handle(usb_handle* handle); 97 void usb_kick(usb_handle* handle); 100 std::unique_ptr<usb_handle> do_usb_open(const wchar_t* interface_name) { in do_usb_open() 102 std::unique_ptr<usb_handle> ret(new usb_handle); in do_usb_open() 226 void usb_cleanup_handle(usb_handle* handle) { in usb_cleanup_handle() [all …]
|
D | usb_osx.cpp | 56 struct usb_handle struct 70 OsxUsbTransport(std::unique_ptr<usb_handle> handle) : handle_(std::move(handle)) {} in OsxUsbTransport() argument 78 std::unique_ptr<usb_handle> handle_; 85 static int try_interfaces(IOUSBDeviceInterface182 **dev, usb_handle *handle) { in try_interfaces() 277 static int try_device(io_service_t device, usb_handle *handle) { in try_device() 410 static int init_usb(ifc_match_func callback, std::unique_ptr<usb_handle>* handle) { in init_usb() 415 usb_handle h; in init_usb() 463 handle->reset(new usb_handle); in init_usb() 464 memcpy(handle->get(), &h, sizeof(usb_handle)); in init_usb() 484 std::unique_ptr<usb_handle> handle; in usb_open()
|
D | usb_linux.cpp | 82 struct usb_handle struct 92 LinuxUsbTransport(std::unique_ptr<usb_handle> handle) : handle_(std::move(handle)) {} in LinuxUsbTransport() argument 101 std::unique_ptr<usb_handle> handle_; 329 static std::unique_ptr<usb_handle> find_usb_device(const char* base, ifc_match_func callback) in find_usb_device() 331 std::unique_ptr<usb_handle> usb; in find_usb_device() 363 usb.reset(new usb_handle()); in find_usb_device() 481 std::unique_ptr<usb_handle> handle = find_usb_device("/sys/bus/usb/devices", callback); in usb_open()
|