Lines Matching full:hcd

38 #include <linux/usb/hcd.h>
84 static void ohci_stop(struct usb_hcd *hcd);
148 struct usb_hcd *hcd, in ohci_urb_enqueue() argument
152 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_urb_enqueue()
213 if (!HCD_HW_ACCESSIBLE(hcd)) { in ohci_urb_enqueue()
221 retval = usb_hcd_link_urb_to_ep(hcd, urb); in ohci_urb_enqueue()
229 usb_hcd_unlink_urb_from_ep(hcd, urb); in ohci_urb_enqueue()
313 static int ohci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in ohci_urb_dequeue() argument
315 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_urb_dequeue()
321 rc = usb_hcd_check_unlink_urb(hcd, urb, status); in ohci_urb_dequeue()
348 ohci_endpoint_disable (struct usb_hcd *hcd, struct usb_host_endpoint *ep) in ohci_endpoint_disable() argument
350 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_endpoint_disable()
401 static int ohci_get_frame (struct usb_hcd *hcd) in ohci_get_frame() argument
403 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_get_frame()
420 static void _ohci_shutdown(struct usb_hcd *hcd) in _ohci_shutdown() argument
424 ohci = hcd_to_ohci (hcd); in _ohci_shutdown()
436 static void ohci_shutdown(struct usb_hcd *hcd) in ohci_shutdown() argument
438 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_shutdown()
442 _ohci_shutdown(hcd); in ohci_shutdown()
455 struct usb_hcd *hcd = ohci_to_hcd(ohci); in ohci_init() local
458 if (!hcd->localmem_pool) in ohci_init()
459 hcd->self.sg_tablesize = ~0; in ohci_init()
465 ohci->regs = hcd->regs; in ohci_init()
516 if (hcd->localmem_pool) in ohci_init()
517 ohci->hcca = gen_pool_dma_alloc_align(hcd->localmem_pool, in ohci_init()
521 ohci->hcca = dma_alloc_coherent(hcd->self.controller, in ohci_init()
529 ohci_stop (hcd); in ohci_init()
547 struct usb_hcd *hcd = ohci_to_hcd(ohci); in ohci_run() local
570 device_set_wakeup_capable(hcd->self.controller, 1); in ohci_run()
655 set_bit(HCD_FLAG_POLL_RH, &hcd->flags); in ohci_run()
656 hcd->uses_new_polling = 1; in ohci_run()
711 int ohci_setup(struct usb_hcd *hcd) in ohci_setup() argument
713 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_setup()
722 static int ohci_start(struct usb_hcd *hcd) in ohci_start() argument
724 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_start()
730 ohci_stop(hcd); in ohci_start()
876 static irqreturn_t ohci_irq (struct usb_hcd *hcd) in ohci_irq() argument
878 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_irq()
895 usb_hc_died(hcd); in ohci_irq()
920 usb_hc_died(hcd); in ohci_irq()
942 usb_hcd_poll_rh_status(hcd); in ohci_irq()
952 set_bit(HCD_FLAG_POLL_RH, &hcd->flags); in ohci_irq()
958 usb_hcd_resume_root_hub(hcd); in ohci_irq()
998 static void ohci_stop (struct usb_hcd *hcd) in ohci_stop() argument
1000 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_stop()
1011 free_irq(hcd->irq, hcd); in ohci_stop()
1012 hcd->irq = 0; in ohci_stop()
1020 if (hcd->localmem_pool) in ohci_stop()
1021 gen_pool_free(hcd->localmem_pool, in ohci_stop()
1025 dma_free_coherent(hcd->self.controller, in ohci_stop()
1104 int ohci_suspend(struct usb_hcd *hcd, bool do_wakeup) in ohci_suspend() argument
1106 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_suspend()
1118 clear_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); in ohci_suspend()
1121 synchronize_irq(hcd->irq); in ohci_suspend()
1123 if (do_wakeup && HCD_WAKEUP_PENDING(hcd)) { in ohci_suspend()
1124 ohci_resume(hcd, false); in ohci_suspend()
1132 int ohci_resume(struct usb_hcd *hcd, bool hibernated) in ohci_resume() argument
1134 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_resume()
1138 set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); in ohci_resume()
1176 usb_hcd_resume_root_hub(hcd); in ohci_resume()