Lines Matching refs: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)
39 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
41 struct device *dev = hcd->self.controller;
83 static int ehci_ci_reset(struct usb_hcd *hcd)
85 struct device *dev = hcd->self.controller;
87 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
90 ret = ehci_setup(hcd);
116 return usb_hcd_irq(ci->irq, ci->hcd);
121 struct usb_hcd *hcd;
129 hcd = __usb_create_hcd(&ci_ehci_hc_driver, ci->dev->parent,
131 if (!hcd)
135 hcd->rsrc_start = ci->hw_bank.phys;
136 hcd->rsrc_len = ci->hw_bank.size;
137 hcd->regs = ci->hw_bank.abs;
138 hcd->has_tt = 1;
140 hcd->power_budget = ci->platdata->power_budget;
141 hcd->tpl_support = ci->platdata->tpl_support;
143 hcd->skip_phy_initialization = 1;
145 hcd->usb_phy = ci->usb_phy;
148 ehci = hcd_to_ehci(hcd);
176 ci->hcd = hcd;
178 ret = usb_add_hcd(hcd, 0, 0);
180 ci->hcd = NULL;
186 otg->host = &hcd->self;
187 hcd->self.otg_port = 1;
203 usb_put_hcd(hcd);
210 struct usb_hcd *hcd = ci->hcd;
212 if (hcd) {
216 usb_remove_hcd(hcd);
219 usb_put_hcd(hcd);
224 ci->hcd = NULL;
235 if (ci->role == CI_ROLE_HOST && ci->hcd)
241 struct usb_hcd *hcd,
249 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
256 struct device *dev = hcd->self.controller;
324 return ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength);
329 static int ci_ehci_bus_suspend(struct usb_hcd *hcd)
331 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
332 struct device *dev = hcd->self.controller;
337 int ret = orig_bus_suspend(hcd);
433 static int ci_hdrc_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb,
442 ret = usb_hcd_map_urb_for_dma(hcd, urb, mem_flags);
449 static void ci_hdrc_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb)
451 usb_hcd_unmap_urb_for_dma(hcd, urb);
458 ehci_suspend(ci->hcd, device_may_wakeup(ci->dev));
463 ehci_resume(ci->hcd, power_lost);