Lines Matching refs:hcd
5 * Extracted from uhci-hcd.c:
46 * This function is called at the end of configure_hc in uhci-hcd.c.
114 static int uhci_pci_init(struct usb_hcd *hcd)
116 struct uhci_hcd *uhci = hcd_to_uhci(hcd);
118 uhci->io_addr = (unsigned long) hcd->rsrc_start;
120 uhci->rh_numports = uhci_count_ports(hcd);
165 struct usb_hcd *hcd = pci_get_drvdata(pdev);
167 uhci_hc_died(hcd_to_uhci(hcd));
172 static int uhci_pci_resume(struct usb_hcd *hcd, pm_message_t state);
174 static int uhci_pci_suspend(struct usb_hcd *hcd, bool do_wakeup)
176 struct uhci_hcd *uhci = hcd_to_uhci(hcd);
183 if (!HCD_HW_ACCESSIBLE(hcd) || uhci->dead)
190 clear_bit(HCD_FLAG_POLL_RH, &hcd->flags);
200 clear_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags);
203 synchronize_irq(hcd->irq);
206 if (do_wakeup && HCD_WAKEUP_PENDING(hcd)) {
207 uhci_pci_resume(hcd, PMSG_SUSPEND);
213 static int uhci_pci_resume(struct usb_hcd *hcd, pm_message_t msg)
216 struct uhci_hcd *uhci = hcd_to_uhci(hcd);
223 set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags);
243 usb_root_hub_lost_power(hcd->self.root_hub);
250 if (!uhci->RD_enable && hcd->self.root_hub->do_remote_wakeup)
251 set_bit(HCD_FLAG_POLL_RH, &hcd->flags);
254 usb_hcd_poll_rh_status(hcd);