Lines Matching refs:hcd

24 #include <linux/usb/hcd.h>
356 static void ehci_shutdown(struct usb_hcd *hcd)
358 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
420 static void ehci_stop (struct usb_hcd *hcd)
422 struct ehci_hcd *ehci = hcd_to_ehci (hcd);
454 static int ehci_init(struct usb_hcd *hcd)
456 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
564 if (!hcd->localmem_pool)
565 hcd->self.sg_tablesize = ~0;
573 static int ehci_run (struct usb_hcd *hcd)
575 struct ehci_hcd *ehci = hcd_to_ehci (hcd);
580 hcd->uses_new_polling = 1;
604 if (!dma_set_mask(hcd->self.controller, DMA_BIT_MASK(64)))
679 int ehci_setup(struct usb_hcd *hcd)
681 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
695 retval = ehci_init(hcd);
713 static irqreturn_t ehci_irq (struct usb_hcd *hcd)
715 struct ehci_hcd *ehci = hcd_to_ehci (hcd);
803 usb_hcd_resume_root_hub(hcd);
835 usb_hcd_start_port_resume(&hcd->self, i);
836 mod_timer(&hcd->rh_timer, ehci->reset_done[i]);
846 usb_hc_died(hcd);
864 usb_hcd_poll_rh_status(hcd);
874 * urb + dev is in hcd.self.controller.urb_list
877 * hcd-specific init for hcpriv hasn't been done yet
883 struct usb_hcd *hcd,
887 struct ehci_hcd *ehci = hcd_to_ehci (hcd);
923 static int ehci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
925 struct ehci_hcd *ehci = hcd_to_ehci (hcd);
931 rc = usb_hcd_check_unlink_urb(hcd, urb, status);
974 ehci_endpoint_disable (struct usb_hcd *hcd, struct usb_host_endpoint *ep)
976 struct ehci_hcd *ehci = hcd_to_ehci (hcd);
1048 ehci_endpoint_reset(struct usb_hcd *hcd, struct usb_host_endpoint *ep)
1050 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
1087 static int ehci_get_frame (struct usb_hcd *hcd)
1089 struct ehci_hcd *ehci = hcd_to_ehci (hcd);
1097 static void ehci_remove_device(struct usb_hcd *hcd, struct usb_device *udev)
1099 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
1134 int ehci_suspend(struct usb_hcd *hcd, bool do_wakeup)
1136 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
1152 clear_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags);
1155 synchronize_irq(hcd->irq);
1158 if (do_wakeup && HCD_WAKEUP_PENDING(hcd)) {
1159 ehci_resume(hcd, false);
1168 int ehci_resume(struct usb_hcd *hcd, bool force_reset)
1170 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
1176 set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags);
1199 if (!hcd->self.root_hub->do_remote_wakeup)
1212 usb_root_hub_lost_power(hcd->self.root_hub);