Lines Matching refs:hcd
81 static void ohci_stop(struct usb_hcd *hcd);
145 struct usb_hcd *hcd, in ohci_urb_enqueue() argument
149 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_urb_enqueue()
212 if (!HCD_HW_ACCESSIBLE(hcd)) { in ohci_urb_enqueue()
220 retval = usb_hcd_link_urb_to_ep(hcd, urb); in ohci_urb_enqueue()
228 usb_hcd_unlink_urb_from_ep(hcd, urb); in ohci_urb_enqueue()
311 static int ohci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in ohci_urb_dequeue() argument
313 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_urb_dequeue()
319 rc = usb_hcd_check_unlink_urb(hcd, urb, status); in ohci_urb_dequeue()
346 ohci_endpoint_disable (struct usb_hcd *hcd, struct usb_host_endpoint *ep) in ohci_endpoint_disable() argument
348 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_endpoint_disable()
399 static int ohci_get_frame (struct usb_hcd *hcd) in ohci_get_frame() argument
401 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_get_frame()
419 ohci_shutdown (struct usb_hcd *hcd) in ohci_shutdown() argument
423 ohci = hcd_to_ohci (hcd); in ohci_shutdown()
444 struct usb_hcd *hcd = ohci_to_hcd(ohci); in ohci_init() local
447 hcd->self.sg_tablesize = ~0; in ohci_init()
453 ohci->regs = hcd->regs; in ohci_init()
505 ohci->hcca = dma_alloc_coherent (hcd->self.controller, in ohci_init()
511 ohci_stop (hcd); in ohci_init()
529 struct usb_hcd *hcd = ohci_to_hcd(ohci); in ohci_run() local
552 device_set_wakeup_capable(hcd->self.controller, 1); in ohci_run()
637 set_bit(HCD_FLAG_POLL_RH, &hcd->flags); in ohci_run()
638 hcd->uses_new_polling = 1; in ohci_run()
689 int ohci_setup(struct usb_hcd *hcd) in ohci_setup() argument
691 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_setup()
700 static int ohci_start(struct usb_hcd *hcd) in ohci_start() argument
702 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_start()
708 ohci_stop(hcd); in ohci_start()
853 static irqreturn_t ohci_irq (struct usb_hcd *hcd) in ohci_irq() argument
855 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_irq()
871 usb_hc_died(hcd); in ohci_irq()
896 usb_hc_died(hcd); in ohci_irq()
918 usb_hcd_poll_rh_status(hcd); in ohci_irq()
928 set_bit(HCD_FLAG_POLL_RH, &hcd->flags); in ohci_irq()
934 usb_hcd_resume_root_hub(hcd); in ohci_irq()
967 static void ohci_stop (struct usb_hcd *hcd) in ohci_stop() argument
969 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_stop()
979 free_irq(hcd->irq, hcd); in ohci_stop()
980 hcd->irq = 0; in ohci_stop()
988 dma_free_coherent (hcd->self.controller, in ohci_stop()
1067 int ohci_suspend(struct usb_hcd *hcd, bool do_wakeup) in ohci_suspend() argument
1069 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_suspend()
1081 clear_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); in ohci_suspend()
1084 synchronize_irq(hcd->irq); in ohci_suspend()
1086 if (do_wakeup && HCD_WAKEUP_PENDING(hcd)) { in ohci_suspend()
1087 ohci_resume(hcd, false); in ohci_suspend()
1095 int ohci_resume(struct usb_hcd *hcd, bool hibernated) in ohci_resume() argument
1097 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_resume()
1101 set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); in ohci_resume()
1139 usb_hcd_resume_root_hub(hcd); in ohci_resume()