• Home
  • Raw
  • Download

Lines Matching refs:hcd

25 static int (*orig_bus_suspend)(struct usb_hcd *hcd);
32 static int ehci_ci_portpower(struct usb_hcd *hcd, int portnum, bool enable) in ehci_ci_portpower() argument
34 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_portpower()
36 struct device *dev = hcd->self.controller; in ehci_ci_portpower()
71 static int ehci_ci_reset(struct usb_hcd *hcd) in ehci_ci_reset() argument
73 struct device *dev = hcd->self.controller; in ehci_ci_reset()
75 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_reset()
78 ret = ehci_setup(hcd); in ehci_ci_reset()
104 return usb_hcd_irq(ci->irq, ci->hcd); in host_irq()
109 struct usb_hcd *hcd; in host_start() local
117 hcd = __usb_create_hcd(&ci_ehci_hc_driver, ci->dev->parent, in host_start()
119 if (!hcd) in host_start()
123 hcd->rsrc_start = ci->hw_bank.phys; in host_start()
124 hcd->rsrc_len = ci->hw_bank.size; in host_start()
125 hcd->regs = ci->hw_bank.abs; in host_start()
126 hcd->has_tt = 1; in host_start()
128 hcd->power_budget = ci->platdata->power_budget; in host_start()
129 hcd->tpl_support = ci->platdata->tpl_support; in host_start()
131 hcd->skip_phy_initialization = 1; in host_start()
133 hcd->usb_phy = ci->usb_phy; in host_start()
136 ehci = hcd_to_ehci(hcd); in host_start()
163 ret = usb_add_hcd(hcd, 0, 0); in host_start()
169 ci->hcd = hcd; in host_start()
172 otg->host = &hcd->self; in host_start()
173 hcd->self.otg_port = 1; in host_start()
189 usb_put_hcd(hcd); in host_start()
196 struct usb_hcd *hcd = ci->hcd; in host_stop() local
198 if (hcd) { in host_stop()
202 usb_remove_hcd(hcd); in host_stop()
205 usb_put_hcd(hcd); in host_stop()
210 ci->hcd = NULL; in host_stop()
221 if (ci->role == CI_ROLE_HOST && ci->hcd) in ci_hdrc_host_destroy()
227 struct usb_hcd *hcd, in ci_ehci_hub_control() argument
235 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ci_ehci_hub_control()
241 struct device *dev = hcd->self.controller; in ci_ehci_hub_control()
302 return ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in ci_ehci_hub_control()
307 static int ci_ehci_bus_suspend(struct usb_hcd *hcd) in ci_ehci_bus_suspend() argument
309 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ci_ehci_bus_suspend()
310 struct device *dev = hcd->self.controller; in ci_ehci_bus_suspend()
315 int ret = orig_bus_suspend(hcd); in ci_ehci_bus_suspend()