Lines Matching defs:hcd

24 #include <linux/usb/hcd.h>
355 static void ehci_shutdown(struct usb_hcd *hcd)
357 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
419 static void ehci_stop (struct usb_hcd *hcd)
421 struct ehci_hcd *ehci = hcd_to_ehci (hcd);
453 static int ehci_init(struct usb_hcd *hcd)
455 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
563 if (!hcd->localmem_pool)
564 hcd->self.sg_tablesize = ~0;
572 static int ehci_run (struct usb_hcd *hcd)
574 struct ehci_hcd *ehci = hcd_to_ehci (hcd);
579 hcd->uses_new_polling = 1;
603 if (!dma_set_mask(hcd->self.controller, DMA_BIT_MASK(64)))
678 int ehci_setup(struct usb_hcd *hcd)
680 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
694 retval = ehci_init(hcd);
712 static irqreturn_t ehci_irq (struct usb_hcd *hcd)
714 struct ehci_hcd *ehci = hcd_to_ehci (hcd);
805 usb_hcd_resume_root_hub(hcd);
837 usb_hcd_start_port_resume(&hcd->self, i);
838 mod_timer(&hcd->rh_timer, ehci->reset_done[i]);
848 usb_hc_died(hcd);
866 usb_hcd_poll_rh_status(hcd);
876 * urb + dev is in hcd.self.controller.urb_list
879 * hcd-specific init for hcpriv hasn't been done yet
885 struct usb_hcd *hcd,
889 struct ehci_hcd *ehci = hcd_to_ehci (hcd);
925 static int ehci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
927 struct ehci_hcd *ehci = hcd_to_ehci (hcd);
933 rc = usb_hcd_check_unlink_urb(hcd, urb, status);
976 ehci_endpoint_disable (struct usb_hcd *hcd, struct usb_host_endpoint *ep)
978 struct ehci_hcd *ehci = hcd_to_ehci (hcd);
1050 ehci_endpoint_reset(struct usb_hcd *hcd, struct usb_host_endpoint *ep)
1052 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
1089 static int ehci_get_frame (struct usb_hcd *hcd)
1091 struct ehci_hcd *ehci = hcd_to_ehci (hcd);
1099 static void ehci_remove_device(struct usb_hcd *hcd, struct usb_device *udev)
1101 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
1116 int ehci_suspend(struct usb_hcd *hcd, bool do_wakeup)
1118 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
1134 clear_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags);
1137 synchronize_irq(hcd->irq);
1140 if (do_wakeup && HCD_WAKEUP_PENDING(hcd)) {
1141 ehci_resume(hcd, false);
1150 int ehci_resume(struct usb_hcd *hcd, bool force_reset)
1152 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
1158 set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags);
1178 if (!hcd->self.root_hub->do_remote_wakeup)
1191 usb_root_hub_lost_power(hcd->self.root_hub);