Lines Matching full:hcd

13 #include <linux/usb/hcd.h>
25 static int (*orig_bus_suspend)(struct usb_hcd *hcd);
37 static int ehci_ci_portpower(struct usb_hcd *hcd, int portnum, bool enable) in ehci_ci_portpower() argument
39 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_portpower()
41 struct device *dev = hcd->self.controller; in ehci_ci_portpower()
83 static int ehci_ci_reset(struct usb_hcd *hcd) in ehci_ci_reset() argument
85 struct device *dev = hcd->self.controller; in ehci_ci_reset()
87 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_reset()
90 ret = ehci_setup(hcd); in ehci_ci_reset()
116 return usb_hcd_irq(ci->irq, ci->hcd); in host_irq()
121 struct usb_hcd *hcd; in host_start() local
129 hcd = __usb_create_hcd(&ci_ehci_hc_driver, ci->dev->parent, in host_start()
131 if (!hcd) in host_start()
135 hcd->rsrc_start = ci->hw_bank.phys; in host_start()
136 hcd->rsrc_len = ci->hw_bank.size; in host_start()
137 hcd->regs = ci->hw_bank.abs; in host_start()
138 hcd->has_tt = 1; in host_start()
140 hcd->power_budget = ci->platdata->power_budget; in host_start()
141 hcd->tpl_support = ci->platdata->tpl_support; in host_start()
143 hcd->skip_phy_initialization = 1; in host_start()
145 hcd->usb_phy = ci->usb_phy; in host_start()
148 ehci = hcd_to_ehci(hcd); in host_start()
176 ci->hcd = hcd; in host_start()
178 ret = usb_add_hcd(hcd, 0, 0); in host_start()
180 ci->hcd = NULL; in host_start()
186 otg->host = &hcd->self; in host_start()
187 hcd->self.otg_port = 1; in host_start()
203 usb_put_hcd(hcd); in host_start()
210 struct usb_hcd *hcd = ci->hcd; in host_stop() local
212 if (hcd) { in host_stop()
216 usb_remove_hcd(hcd); in host_stop()
219 usb_put_hcd(hcd); in host_stop()
224 ci->hcd = NULL; in host_stop()
235 if (ci->role == CI_ROLE_HOST && ci->hcd) in ci_hdrc_host_destroy()
241 struct usb_hcd *hcd, in ci_ehci_hub_control() argument
249 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ci_ehci_hub_control()
256 struct device *dev = hcd->self.controller; in ci_ehci_hub_control()
324 return ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in ci_ehci_hub_control()
329 static int ci_ehci_bus_suspend(struct usb_hcd *hcd) in ci_ehci_bus_suspend() argument
331 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ci_ehci_bus_suspend()
332 struct device *dev = hcd->self.controller; in ci_ehci_bus_suspend()
337 int ret = orig_bus_suspend(hcd); in ci_ehci_bus_suspend()
433 static int ci_hdrc_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb, in ci_hdrc_map_urb_for_dma() argument
442 ret = usb_hcd_map_urb_for_dma(hcd, urb, mem_flags); in ci_hdrc_map_urb_for_dma()
449 static void ci_hdrc_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb) in ci_hdrc_unmap_urb_for_dma() argument
451 usb_hcd_unmap_urb_for_dma(hcd, urb); in ci_hdrc_unmap_urb_for_dma()
458 ehci_suspend(ci->hcd, device_may_wakeup(ci->dev)); in ci_hdrc_host_suspend()
463 ehci_resume(ci->hcd, power_lost); in ci_hdrc_host_resume()