57 #include <linux/list.h>
71 #define WUSB_CHANNEL_STOP_DELAY_MS 8
113 #define WUSB_DEV_ADDR_UNAUTH 0x80
117 kref_init(&wusb_dev->
refcnt);
125 kref_get(&wusb_dev->
refcnt);
300 #define usb_hcd_to_wusbhc(u) container_of((u), struct wusbhc, usb_hcd)
329 static inline struct usb_hcd *usb_hcd_get_by_usb_dev(
struct usb_device *usb_dev)
332 usb_hcd =
container_of(usb_dev->bus,
struct usb_hcd,
self);
356 static inline struct wusbhc *wusbhc_get_by_usb_dev(
struct usb_device *usb_dev)
360 if (usb_dev->devnum > 1 && !usb_dev->wusb) {
362 dev_err(&usb_dev->dev,
"devnum %d wusb %d\n", usb_dev->devnum,
364 BUG_ON(usb_dev->devnum > 1 && !usb_dev->wusb);
366 usb_hcd = usb_hcd_get_by_usb_dev(usb_dev);
369 BUG_ON(usb_hcd->wireless == 0);
374 static inline void wusbhc_put(
struct wusbhc *wusbhc)
449 static inline struct wusb_port *wusb_port_by_idx(
struct wusbhc *wusbhc,
452 return &wusbhc->
port[port_idx];
469 struct usb_device *);
479 struct wusb_dev *wusb_dev_get_by_usb_dev(
struct usb_device *usb_dev)
481 struct wusbhc *wusbhc;
483 wusbhc = wusbhc_get_by_usb_dev(usb_dev);