Lines Matching defs:usb_handle
54 struct usb_handle {
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) {
490 int usb_close(usb_handle* h) {
510 // If we have a usb_handle on the list of handles with a matching name, we
514 for (usb_handle* usb: g_usb_handles) {
522 std::unique_ptr<usb_handle> usb(new usb_handle);
566 usb_handle* done_usb = usb.release();