Lines Matching defs:hcd

38 #include <linux/usb/hcd.h>
84 static void ohci_stop(struct usb_hcd *hcd);
148 struct usb_hcd *hcd,
152 struct ohci_hcd *ohci = hcd_to_ohci (hcd);
215 if (!HCD_HW_ACCESSIBLE(hcd)) {
223 retval = usb_hcd_link_urb_to_ep(hcd, urb);
231 usb_hcd_unlink_urb_from_ep(hcd, urb);
315 static int ohci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
317 struct ohci_hcd *ohci = hcd_to_ohci (hcd);
323 rc = usb_hcd_check_unlink_urb(hcd, urb, status);
350 ohci_endpoint_disable (struct usb_hcd *hcd, struct usb_host_endpoint *ep)
352 struct ohci_hcd *ohci = hcd_to_ohci (hcd);
403 static int ohci_get_frame (struct usb_hcd *hcd)
405 struct ohci_hcd *ohci = hcd_to_ohci (hcd);
422 static void _ohci_shutdown(struct usb_hcd *hcd)
426 ohci = hcd_to_ohci (hcd);
438 static void ohci_shutdown(struct usb_hcd *hcd)
440 struct ohci_hcd *ohci = hcd_to_ohci(hcd);
444 _ohci_shutdown(hcd);
457 struct usb_hcd *hcd = ohci_to_hcd(ohci);
460 if (!hcd->localmem_pool)
461 hcd->self.sg_tablesize = ~0;
467 ohci->regs = hcd->regs;
518 if (hcd->localmem_pool)
519 ohci->hcca = gen_pool_dma_alloc_align(hcd->localmem_pool,
523 ohci->hcca = dma_alloc_coherent(hcd->self.controller,
531 ohci_stop (hcd);
549 struct usb_hcd *hcd = ohci_to_hcd(ohci);
572 device_set_wakeup_capable(hcd->self.controller, 1);
657 set_bit(HCD_FLAG_POLL_RH, &hcd->flags);
658 hcd->uses_new_polling = 1;
713 int ohci_setup(struct usb_hcd *hcd)
715 struct ohci_hcd *ohci = hcd_to_ohci(hcd);
724 static int ohci_start(struct usb_hcd *hcd)
726 struct ohci_hcd *ohci = hcd_to_ohci(hcd);
732 ohci_stop(hcd);
878 static irqreturn_t ohci_irq (struct usb_hcd *hcd)
880 struct ohci_hcd *ohci = hcd_to_ohci (hcd);
896 usb_hc_died(hcd);
921 usb_hc_died(hcd);
943 usb_hcd_poll_rh_status(hcd);
953 set_bit(HCD_FLAG_POLL_RH, &hcd->flags);
959 usb_hcd_resume_root_hub(hcd);
992 static void ohci_stop (struct usb_hcd *hcd)
994 struct ohci_hcd *ohci = hcd_to_ohci (hcd);
1005 free_irq(hcd->irq, hcd);
1006 hcd->irq = 0;
1014 if (hcd->localmem_pool)
1015 gen_pool_free(hcd->localmem_pool,
1019 dma_free_coherent(hcd->self.controller,
1098 int ohci_suspend(struct usb_hcd *hcd, bool do_wakeup)
1100 struct ohci_hcd *ohci = hcd_to_ohci (hcd);
1112 clear_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags);
1115 synchronize_irq(hcd->irq);
1117 if (do_wakeup && HCD_WAKEUP_PENDING(hcd)) {
1118 ohci_resume(hcd, false);
1126 int ohci_resume(struct usb_hcd *hcd, bool hibernated)
1128 struct ohci_hcd *ohci = hcd_to_ohci(hcd);
1132 set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags);
1172 usb_hcd_resume_root_hub(hcd);