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