Lines Matching defs:usb
17 #define TRACE_TAG USB
35 /** Structure usb_handle describes our connection to the usb device via
44 /// Previous entry in the list of opened usb handles
47 /// Next entry in the list of opened usb handles
50 /// Handle to USB interface
53 /// Handle to USB read pipe (endpoint)
56 /// Handle to USB write pipe (endpoint)
69 /// List of opened usb handles
75 /// Locker for the list of opened usb handles
78 /// Checks if there is opened usb handle in handle_list for this device.
81 /// Checks if there is opened usb handle in handle_list for this device.
85 /// Registers opened usb handle (adds it to handle_list).
92 /// registers usb transport for them.
95 /// Kicks all USB devices
98 /// Entry point for thread that polls (every second) for new usb interfaces.
105 /// Opens usb interface (device) by interface (device) name.
108 /// Writes data to the opened usb handle
111 /// Reads data using the opened usb handle
114 /// Cleans up opened usb handle
117 /// Cleans up (but don't close) opened usb handle
120 /// Closes opened usb handle
124 usb_handle* usb;
128 for(usb = handle_list.next; usb != &handle_list; usb = usb->next) {
130 if((NULL != usb->interface_name) &&
131 (0 == wcsicmp(usb->interface_name, dev_name))) {
191 // Resuming from sleep or hibernation, so kick all existing USB devices
192 // and then allow the device_poll_thread to redetect USB devices from
193 // scratch. If we don't do this, existing USB devices will never respond
196 "so kicking all USB devices\n");
655 for (usb_handle* usb = handle_list.next; usb != &handle_list; usb = usb->next) {
656 usb_kick_locked(usb);