Lines Matching refs:usb_hcd
21 static int whc_reset(struct usb_hcd *usb_hcd) in whc_reset() argument
33 static int whc_start(struct usb_hcd *usb_hcd) in whc_start() argument
35 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in whc_start()
60 usb_hcd->uses_new_polling = 1; in whc_start()
61 set_bit(HCD_FLAG_POLL_RH, &usb_hcd->flags); in whc_start()
62 usb_hcd->state = HC_STATE_RUNNING; in whc_start()
77 static void whc_stop(struct usb_hcd *usb_hcd) in whc_stop() argument
79 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in whc_stop()
96 static int whc_get_frame_number(struct usb_hcd *usb_hcd) in whc_get_frame_number() argument
106 static int whc_urb_enqueue(struct usb_hcd *usb_hcd, struct urb *urb, in whc_urb_enqueue() argument
109 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in whc_urb_enqueue()
134 static int whc_urb_dequeue(struct usb_hcd *usb_hcd, struct urb *urb, int status) in whc_urb_dequeue() argument
136 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in whc_urb_dequeue()
161 static void whc_endpoint_disable(struct usb_hcd *usb_hcd, in whc_endpoint_disable() argument
164 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in whc_endpoint_disable()
179 static void whc_endpoint_reset(struct usb_hcd *usb_hcd, in whc_endpoint_reset() argument
182 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in whc_endpoint_reset()
208 .hcd_priv_size = sizeof(struct whc) - sizeof(struct usb_hcd),
229 struct usb_hcd *usb_hcd; in whc_probe() local
234 usb_hcd = usb_create_hcd(&whc_hc_driver, dev, "whci"); in whc_probe()
235 if (usb_hcd == NULL) { in whc_probe()
240 usb_hcd->wireless = 1; in whc_probe()
241 usb_hcd->self.sg_tablesize = 2048; /* somewhat arbitrary */ in whc_probe()
243 wusbhc = usb_hcd_to_wusbhc(usb_hcd); in whc_probe()
280 ret = usb_add_hcd(usb_hcd, whc->umc->irq, IRQF_SHARED); in whc_probe()
285 device_wakeup_enable(usb_hcd->self.controller); in whc_probe()
298 usb_remove_hcd(usb_hcd); in whc_probe()
306 usb_put_hcd(usb_hcd); in whc_probe()
313 struct usb_hcd *usb_hcd = dev_get_drvdata(&umc->dev); in whc_remove() local
314 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in whc_remove()
317 if (usb_hcd) { in whc_remove()
320 usb_remove_hcd(usb_hcd); in whc_remove()
324 usb_put_hcd(usb_hcd); in whc_remove()