Lines Matching refs:hcd

113 static int uhci_pci_init(struct usb_hcd *hcd)  in uhci_pci_init()  argument
115 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_pci_init()
117 uhci->io_addr = (unsigned long) hcd->rsrc_start; in uhci_pci_init()
119 uhci->rh_numports = uhci_count_ports(hcd); in uhci_pci_init()
158 struct usb_hcd *hcd = pci_get_drvdata(pdev); in uhci_shutdown() local
160 uhci_hc_died(hcd_to_uhci(hcd)); in uhci_shutdown()
165 static int uhci_pci_resume(struct usb_hcd *hcd, bool hibernated);
167 static int uhci_pci_suspend(struct usb_hcd *hcd, bool do_wakeup) in uhci_pci_suspend() argument
169 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_pci_suspend()
176 if (!HCD_HW_ACCESSIBLE(hcd) || uhci->dead) in uhci_pci_suspend()
183 clear_bit(HCD_FLAG_POLL_RH, &hcd->flags); in uhci_pci_suspend()
193 clear_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); in uhci_pci_suspend()
196 synchronize_irq(hcd->irq); in uhci_pci_suspend()
199 if (do_wakeup && HCD_WAKEUP_PENDING(hcd)) { in uhci_pci_suspend()
200 uhci_pci_resume(hcd, false); in uhci_pci_suspend()
206 static int uhci_pci_resume(struct usb_hcd *hcd, bool hibernated) in uhci_pci_resume() argument
208 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_pci_resume()
215 set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); in uhci_pci_resume()
235 usb_root_hub_lost_power(hcd->self.root_hub); in uhci_pci_resume()
242 if (!uhci->RD_enable && hcd->self.root_hub->do_remote_wakeup) in uhci_pci_resume()
243 set_bit(HCD_FLAG_POLL_RH, &hcd->flags); in uhci_pci_resume()
246 usb_hcd_poll_rh_status(hcd); in uhci_pci_resume()