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()
211 if (!HCD_HW_ACCESSIBLE(hcd)) { in ohci_urb_enqueue()
219 retval = usb_hcd_link_urb_to_ep(hcd, urb); in ohci_urb_enqueue()
227 usb_hcd_unlink_urb_from_ep(hcd, urb); in ohci_urb_enqueue()
310 static int ohci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in ohci_urb_dequeue() argument
312 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_urb_dequeue()
318 rc = usb_hcd_check_unlink_urb(hcd, urb, status); in ohci_urb_dequeue()
345 ohci_endpoint_disable (struct usb_hcd *hcd, struct usb_host_endpoint *ep) in ohci_endpoint_disable() argument
347 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_endpoint_disable()
398 static int ohci_get_frame (struct usb_hcd *hcd) in ohci_get_frame() argument
400 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_get_frame()
418 ohci_shutdown (struct usb_hcd *hcd) in ohci_shutdown() argument
422 ohci = hcd_to_ohci (hcd); in ohci_shutdown()
443 struct usb_hcd *hcd = ohci_to_hcd(ohci); in ohci_init() local
446 hcd->self.sg_tablesize = ~0; in ohci_init()
452 ohci->regs = hcd->regs; in ohci_init()
504 ohci->hcca = dma_alloc_coherent (hcd->self.controller, in ohci_init()
510 ohci_stop (hcd); in ohci_init()
528 struct usb_hcd *hcd = ohci_to_hcd(ohci); in ohci_run() local
551 device_set_wakeup_capable(hcd->self.controller, 1); in ohci_run()
636 set_bit(HCD_FLAG_POLL_RH, &hcd->flags); in ohci_run()
637 hcd->uses_new_polling = 1; in ohci_run()
688 int ohci_setup(struct usb_hcd *hcd) in ohci_setup() argument
690 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_setup()
699 static int ohci_start(struct usb_hcd *hcd) in ohci_start() argument
701 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_start()
707 ohci_stop(hcd); in ohci_start()
852 static irqreturn_t ohci_irq (struct usb_hcd *hcd) in ohci_irq() argument
854 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_irq()
870 usb_hc_died(hcd); in ohci_irq()
895 usb_hc_died(hcd); in ohci_irq()
917 usb_hcd_poll_rh_status(hcd); in ohci_irq()
927 set_bit(HCD_FLAG_POLL_RH, &hcd->flags); in ohci_irq()
933 usb_hcd_resume_root_hub(hcd); in ohci_irq()
966 static void ohci_stop (struct usb_hcd *hcd) in ohci_stop() argument
968 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_stop()
978 free_irq(hcd->irq, hcd); in ohci_stop()
979 hcd->irq = 0; in ohci_stop()
987 dma_free_coherent (hcd->self.controller, in ohci_stop()
1066 int ohci_suspend(struct usb_hcd *hcd, bool do_wakeup) in ohci_suspend() argument
1068 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_suspend()
1080 clear_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); in ohci_suspend()
1083 synchronize_irq(hcd->irq); in ohci_suspend()
1085 if (do_wakeup && HCD_WAKEUP_PENDING(hcd)) { in ohci_suspend()
1086 ohci_resume(hcd, false); in ohci_suspend()
1094 int ohci_resume(struct usb_hcd *hcd, bool hibernated) in ohci_resume() argument
1096 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_resume()
1100 set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); in ohci_resume()
1138 usb_hcd_resume_root_hub(hcd); in ohci_resume()