Lines Matching refs:hcd

366 static void ehci_shutdown(struct usb_hcd *hcd)  in ehci_shutdown()  argument
368 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_shutdown()
421 static void ehci_stop (struct usb_hcd *hcd) in ehci_stop() argument
423 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_stop()
455 static int ehci_init(struct usb_hcd *hcd) in ehci_init() argument
457 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_init()
565 if (!(hcd->driver->flags & HCD_LOCAL_MEM)) in ehci_init()
566 hcd->self.sg_tablesize = ~0; in ehci_init()
571 static int ehci_run (struct usb_hcd *hcd) in ehci_run() argument
573 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_run()
577 hcd->uses_new_polling = 1; in ehci_run()
601 if (!dma_set_mask(hcd->self.controller, DMA_BIT_MASK(64))) in ehci_run()
656 int ehci_setup(struct usb_hcd *hcd) in ehci_setup() argument
658 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_setup()
672 retval = ehci_init(hcd); in ehci_setup()
688 static irqreturn_t ehci_irq (struct usb_hcd *hcd) in ehci_irq() argument
690 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_irq()
771 usb_hcd_resume_root_hub(hcd); in ehci_irq()
803 usb_hcd_start_port_resume(&hcd->self, i); in ehci_irq()
804 mod_timer(&hcd->rh_timer, ehci->reset_done[i]); in ehci_irq()
814 usb_hc_died(hcd); in ehci_irq()
832 usb_hcd_poll_rh_status(hcd); in ehci_irq()
851 struct usb_hcd *hcd, in ehci_urb_enqueue() argument
855 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_urb_enqueue()
891 static int ehci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in ehci_urb_dequeue() argument
893 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_urb_dequeue()
899 rc = usb_hcd_check_unlink_urb(hcd, urb, status); in ehci_urb_dequeue()
942 ehci_endpoint_disable (struct usb_hcd *hcd, struct usb_host_endpoint *ep) in ehci_endpoint_disable() argument
944 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_endpoint_disable()
1013 ehci_endpoint_reset(struct usb_hcd *hcd, struct usb_host_endpoint *ep) in ehci_endpoint_reset() argument
1015 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_endpoint_reset()
1052 static int ehci_get_frame (struct usb_hcd *hcd) in ehci_get_frame() argument
1054 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_get_frame()
1062 static void ehci_remove_device(struct usb_hcd *hcd, struct usb_device *udev) in ehci_remove_device() argument
1064 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_remove_device()
1079 int ehci_suspend(struct usb_hcd *hcd, bool do_wakeup) in ehci_suspend() argument
1081 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_suspend()
1097 clear_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); in ehci_suspend()
1100 synchronize_irq(hcd->irq); in ehci_suspend()
1103 if (do_wakeup && HCD_WAKEUP_PENDING(hcd)) { in ehci_suspend()
1104 ehci_resume(hcd, false); in ehci_suspend()
1113 int ehci_resume(struct usb_hcd *hcd, bool force_reset) in ehci_resume() argument
1115 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_resume()
1121 set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); in ehci_resume()
1141 if (!hcd->self.root_hub->do_remote_wakeup) in ehci_resume()
1154 usb_root_hub_lost_power(hcd->self.root_hub); in ehci_resume()