HomeSort by relevance Sort by last modified time
    Searched refs:usb_handle (Results 1 - 14 of 14) sorted by null

  /system/core/fastboot/
usb_windows.cpp 51 /** Structure usb_handle describes our connection to the usb device via
55 struct usb_handle { struct
71 WindowsUsbTransport(std::unique_ptr<usb_handle> handle) : handle_(std::move(handle)) {}
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) {
102 std::unique_ptr<usb_handle> ret(new usb_handle)
    [all...]
usb_osx.cpp 56 struct usb_handle struct
70 OsxUsbTransport(std::unique_ptr<usb_handle> handle) : handle_(std::move(handle)) {}
78 std::unique_ptr<usb_handle> handle_;
85 static int try_interfaces(IOUSBDeviceInterface182 **dev, usb_handle *handle) {
277 static int try_device(io_service_t device, usb_handle *handle) {
410 static int init_usb(ifc_match_func callback, std::unique_ptr<usb_handle>* handle) {
415 usb_handle h;
463 handle->reset(new usb_handle);
464 memcpy(handle->get(), &h, sizeof(usb_handle));
484 std::unique_ptr<usb_handle> handle
    [all...]
usb_linux.cpp 82 struct usb_handle struct
92 LinuxUsbTransport(std::unique_ptr<usb_handle> handle) : handle_(std::move(handle)) {}
101 std::unique_ptr<usb_handle> handle_;
329 static std::unique_ptr<usb_handle> find_usb_device(const char* base, ifc_match_func callback)
331 std::unique_ptr<usb_handle> usb;
363 usb.reset(new usb_handle());
481 std::unique_ptr<usb_handle> handle = find_usb_device("/sys/bus/usb/devices", callback);
  /system/core/adb/
usb_windows.cpp 35 /** Structure usb_handle describes our connection to the usb device via
43 struct usb_handle { struct
45 usb_handle *prev;
48 usb_handle *next;
70 static usb_handle handle_list = {
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)
    [all...]
usb_linux_client.cpp 57 struct usb_handle struct
64 int (*write)(usb_handle *h, const void *data, int len);
65 int (*read)(usb_handle *h, void *data, int len);
66 void (*kick)(usb_handle *h);
67 void (*close)(usb_handle *h);
244 struct usb_handle *usb = (struct usb_handle *)x;
283 static int usb_adb_write(usb_handle *h, const void *data, int len)
302 static int usb_adb_read(usb_handle *h, void *data, int len)
327 static void usb_adb_kick(usb_handle *h)
    [all...]
adb.h 56 struct usb_handle;
161 void init_usb_transport(atransport *t, usb_handle *usb, ConnectionState state);
219 int usb_write(usb_handle *h, const void *data, int len);
220 int usb_read(usb_handle *h, void *data, int len);
221 int usb_close(usb_handle *h);
222 void usb_kick(usb_handle *h);
usb_osx.cpp 43 struct usb_handle struct
55 usb_handle() : bulkIn(0), bulkOut(0), interface(nullptr), function in struct:usb_handle
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) {
97 static std::unique_ptr<usb_handle> CheckInterface(IOUSBInterfaceInterface190 **iface,
281 std::unique_ptr<usb_handle> handle = CheckInterface((IOUSBInterfaceInterface190**)iface,
289 usb_handle* handle_p = handle.get();
310 static std::unique_ptr<usb_handle>
313 std::unique_ptr<usb_handle> handle
    [all...]
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);
usb_linux.cpp 54 struct usb_handle { struct
55 ~usb_handle() {
85 static auto& g_usb_handles = *new std::list<usb_handle*>();
89 for (usb_handle* usb : g_usb_handles) {
102 for (usb_handle* usb : g_usb_handles) {
296 static int usb_bulk_write(usb_handle* h, const void* data, int len) {
335 static int usb_bulk_read(usb_handle* h, void* data, int len) {
402 int usb_write(usb_handle *h, const void *_data, int len)
423 int usb_read(usb_handle *h, void *_data, int len)
457 void usb_kick(usb_handle* h)
    [all...]
transport_usb.cpp 83 void init_usb_transport(atransport *t, usb_handle *h, ConnectionState state)
transport.cpp 1007 void register_usb_transport(usb_handle* usb, const char* serial,
1011 D("transport: %p init'ing for usb_handle %p (sn='%s')", t, usb,
1030 void unregister_usb_transport(usb_handle *usb) {
  /development/host/windows/usb/api/
adb_legacy_endpoint_object.cpp 82 res = is_read ? ReadFile(usb_handle(),
87 WriteFile(usb_handle(),
99 res = DeviceIoControl(usb_handle(),
155 ReadFile(usb_handle(), buffer, bytes_to_transfer, bytes_transferred, &overlapped) :
156 WriteFile(usb_handle(), buffer, bytes_to_transfer, bytes_transferred, &overlapped);
165 ret = DeviceIoControl(usb_handle(),
182 ret = GetOverlappedResult(usb_handle(), &overlapped, &transferred, TRUE);
222 ::CloseHandle(usb_handle());
adb_legacy_endpoint_object.h 133 HANDLE usb_handle() const { function in class:AdbLegacyEndpointObject
adb_legacy_io_completion.cpp 52 bool ret = GetOverlappedResult(parent_legacy_io_object()->usb_handle(),
68 ret = GetOverlappedResult(parent_legacy_io_object()->usb_handle(),

Completed in 450 milliseconds