Lines Matching defs:usb_handle
43 struct usb_handle
55 usb_handle() : bulkIn(0), bulkOut(0), interface(nullptr),
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;
347 handle.reset(new usb_handle);
441 int usb_write(usb_handle *handle, const void *buf, int len)
480 int usb_read(usb_handle *handle, void *buf, int len)
520 int usb_close(usb_handle *handle)
532 static void usb_kick_locked(usb_handle *handle)
547 void usb_kick(usb_handle *handle) {