Lines Matching refs:hcd
36 static int (*orig_bus_suspend)(struct usb_hcd *hcd);
42 static int ehci_ci_portpower(struct usb_hcd *hcd, int portnum, bool enable) in ehci_ci_portpower() argument
44 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_portpower()
46 struct device *dev = hcd->self.controller; in ehci_ci_portpower()
77 return usb_hcd_irq(ci->irq, ci->hcd); in host_irq()
82 struct usb_hcd *hcd; in host_start() local
90 hcd = usb_create_hcd(&ci_ehci_hc_driver, ci->dev, dev_name(ci->dev)); in host_start()
91 if (!hcd) in host_start()
95 hcd->rsrc_start = ci->hw_bank.phys; in host_start()
96 hcd->rsrc_len = ci->hw_bank.size; in host_start()
97 hcd->regs = ci->hw_bank.abs; in host_start()
98 hcd->has_tt = 1; in host_start()
100 hcd->power_budget = ci->platdata->power_budget; in host_start()
101 hcd->tpl_support = ci->platdata->tpl_support; in host_start()
103 hcd->phy = ci->phy; in host_start()
105 hcd->usb_phy = ci->usb_phy; in host_start()
107 ehci = hcd_to_ehci(hcd); in host_start()
130 ret = usb_add_hcd(hcd, 0, 0); in host_start()
136 ci->hcd = hcd; in host_start()
139 otg->host = &hcd->self; in host_start()
140 hcd->self.otg_port = 1; in host_start()
157 usb_put_hcd(hcd); in host_start()
164 struct usb_hcd *hcd = ci->hcd; in host_stop() local
166 if (hcd) { in host_stop()
167 usb_remove_hcd(hcd); in host_stop()
168 usb_put_hcd(hcd); in host_stop()
178 if (ci->role == CI_ROLE_HOST && ci->hcd) in ci_hdrc_host_destroy()
182 static int ci_ehci_bus_suspend(struct usb_hcd *hcd) in ci_ehci_bus_suspend() argument
184 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ci_ehci_bus_suspend()
188 int ret = orig_bus_suspend(hcd); in ci_ehci_bus_suspend()