Lines Matching refs:hcd
87 struct usb_hcd *hcd = platform_get_drvdata(pdev); in at91_start_hc() local
88 struct ohci_regs __iomem *regs = hcd->regs; in at91_start_hc()
89 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in at91_start_hc()
106 struct usb_hcd *hcd = platform_get_drvdata(pdev); in at91_stop_hc() local
107 struct ohci_regs __iomem *regs = hcd->regs; in at91_stop_hc()
108 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in at91_stop_hc()
146 struct usb_hcd *hcd; in usb_hcd_at91_probe() local
158 hcd = usb_create_hcd(driver, dev, "at91"); in usb_hcd_at91_probe()
159 if (!hcd) in usb_hcd_at91_probe()
161 ohci_at91 = hcd_to_ohci_at91_priv(hcd); in usb_hcd_at91_probe()
164 hcd->regs = devm_ioremap_resource(dev, res); in usb_hcd_at91_probe()
165 if (IS_ERR(hcd->regs)) { in usb_hcd_at91_probe()
166 retval = PTR_ERR(hcd->regs); in usb_hcd_at91_probe()
169 hcd->rsrc_start = res->start; in usb_hcd_at91_probe()
170 hcd->rsrc_len = resource_size(res); in usb_hcd_at91_probe()
191 board = hcd->self.controller->platform_data; in usb_hcd_at91_probe()
192 ohci = hcd_to_ohci(hcd); in usb_hcd_at91_probe()
196 retval = usb_add_hcd(hcd, irq, IRQF_SHARED); in usb_hcd_at91_probe()
198 device_wakeup_enable(hcd->self.controller); in usb_hcd_at91_probe()
206 usb_put_hcd(hcd); in usb_hcd_at91_probe()
223 static void usb_hcd_at91_remove(struct usb_hcd *hcd, in usb_hcd_at91_remove() argument
226 usb_remove_hcd(hcd); in usb_hcd_at91_remove()
228 usb_put_hcd(hcd); in usb_hcd_at91_remove()
259 static int ohci_at91_hub_status_data(struct usb_hcd *hcd, char *buf) in ohci_at91_hub_status_data() argument
261 struct at91_usbh_data *pdata = hcd->self.controller->platform_data; in ohci_at91_hub_status_data()
262 int length = ohci_hub_status_data(hcd, buf); in ohci_at91_hub_status_data()
279 static int ohci_at91_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in ohci_at91_hub_control() argument
282 struct at91_usbh_data *pdata = dev_get_platdata(hcd->self.controller); in ohci_at91_hub_control()
287 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
289 hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_at91_hub_control()
296 dev_dbg(hcd->self.controller, "SetPortFeat: POWER\n"); in ohci_at91_hub_control()
309 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
320 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
329 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
340 ret = ohci_hub_control(hcd, typeReq, wValue, wIndex + 1, buf, wLength); in ohci_at91_hub_control()
351 dev_dbg(hcd->self.controller, "wHubCharacteristics 0x%04x\n", in ohci_at91_hub_control()
368 dev_dbg(hcd->self.controller, "wHubCharacteristics after 0x%04x\n", in ohci_at91_hub_control()
376 dev_dbg(hcd->self.controller, "GetPortStatus(%d)\n", wIndex); in ohci_at91_hub_control()
609 struct usb_hcd *hcd = dev_get_drvdata(dev); in ohci_hcd_at91_drv_suspend() local
610 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_at91_drv_suspend()
611 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in ohci_hcd_at91_drv_suspend()
622 enable_irq_wake(hcd->irq); in ohci_hcd_at91_drv_suspend()
624 ret = ohci_suspend(hcd, ohci_at91->wakeup); in ohci_hcd_at91_drv_suspend()
627 disable_irq_wake(hcd->irq); in ohci_hcd_at91_drv_suspend()
653 struct usb_hcd *hcd = dev_get_drvdata(dev); in ohci_hcd_at91_drv_resume() local
654 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in ohci_hcd_at91_drv_resume()
657 disable_irq_wake(hcd->irq); in ohci_hcd_at91_drv_resume()
661 ohci_resume(hcd, false); in ohci_hcd_at91_drv_resume()