Lines Matching refs:usb_handle
50 struct usb_handle struct
63 usb_handle() in usb_handle() argument
76 static auto& g_usb_handles = *new std::vector<std::unique_ptr<usb_handle>>();
90 static void usb_kick_locked(usb_handle* handle);
103 static void AddDevice(std::unique_ptr<usb_handle> handle) { in AddDevice()
110 static std::unique_ptr<usb_handle> CheckInterface(IOUSBInterfaceInterface550** iface, UInt16 vendor,
299 std::unique_ptr<usb_handle> handle = in AndroidInterfaceAdded()
307 usb_handle* handle_p = handle.get(); in AndroidInterfaceAdded()
311 register_usb_transport(reinterpret_cast<::usb_handle*>(handle_p), serial, devpath.c_str(), in AndroidInterfaceAdded()
330 static std::unique_ptr<usb_handle> CheckInterface(IOUSBInterfaceInterface550** interface, in CheckInterface()
332 std::unique_ptr<usb_handle> handle; in CheckInterface()
366 handle.reset(new usb_handle); in CheckInterface()
470 int usb_write(usb_handle *handle, const void *buf, int len) in usb_write()
509 int usb_read(usb_handle *handle, void *buf, int len) in usb_read()
549 int usb_close(usb_handle *handle) in usb_close()
561 void usb_reset(usb_handle* handle) { in usb_reset()
566 static void usb_kick_locked(usb_handle *handle) in usb_kick_locked()
581 void usb_kick(usb_handle *handle) { in usb_kick()
587 size_t usb_get_max_packet_size(usb_handle* handle) { in usb_get_max_packet_size()