Lines Matching refs:hcd
98 struct usb_hcd *hcd = platform_get_drvdata(pdev); in at91_start_hc() local
99 struct ohci_regs __iomem *regs = hcd->regs; in at91_start_hc()
100 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in at91_start_hc()
117 struct usb_hcd *hcd = platform_get_drvdata(pdev); in at91_stop_hc() local
118 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in at91_stop_hc()
173 struct usb_hcd *hcd; in usb_hcd_at91_probe() local
185 hcd = usb_create_hcd(driver, dev, "at91"); in usb_hcd_at91_probe()
186 if (!hcd) in usb_hcd_at91_probe()
188 ohci_at91 = hcd_to_ohci_at91_priv(hcd); in usb_hcd_at91_probe()
191 hcd->regs = devm_ioremap_resource(dev, res); in usb_hcd_at91_probe()
192 if (IS_ERR(hcd->regs)) { in usb_hcd_at91_probe()
193 retval = PTR_ERR(hcd->regs); in usb_hcd_at91_probe()
196 hcd->rsrc_start = res->start; in usb_hcd_at91_probe()
197 hcd->rsrc_len = resource_size(res); in usb_hcd_at91_probe()
222 board = hcd->self.controller->platform_data; in usb_hcd_at91_probe()
223 ohci = hcd_to_ohci(hcd); in usb_hcd_at91_probe()
233 retval = usb_add_hcd(hcd, irq, IRQF_SHARED); in usb_hcd_at91_probe()
235 device_wakeup_enable(hcd->self.controller); in usb_hcd_at91_probe()
243 usb_put_hcd(hcd); in usb_hcd_at91_probe()
261 static void usb_hcd_at91_remove(struct usb_hcd *hcd, in usb_hcd_at91_remove() argument
264 usb_remove_hcd(hcd); in usb_hcd_at91_remove()
266 usb_put_hcd(hcd); in usb_hcd_at91_remove()
289 static int ohci_at91_hub_status_data(struct usb_hcd *hcd, char *buf) in ohci_at91_hub_status_data() argument
291 struct at91_usbh_data *pdata = hcd->self.controller->platform_data; in ohci_at91_hub_status_data()
292 int length = ohci_hub_status_data(hcd, buf); in ohci_at91_hub_status_data()
331 static int ohci_at91_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in ohci_at91_hub_control() argument
334 struct at91_usbh_data *pdata = dev_get_platdata(hcd->self.controller); in ohci_at91_hub_control()
335 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in ohci_at91_hub_control()
340 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
342 hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_at91_hub_control()
350 dev_dbg(hcd->self.controller, "SetPortFeat: POWER\n"); in ohci_at91_hub_control()
359 dev_dbg(hcd->self.controller, "SetPortFeat: SUSPEND\n"); in ohci_at91_hub_control()
372 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
383 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
392 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
402 dev_dbg(hcd->self.controller, "ClearPortFeature: SUSPEND\n"); in ohci_at91_hub_control()
413 ret = ohci_hub_control(hcd, typeReq, wValue, wIndex + 1, buf, wLength); in ohci_at91_hub_control()
424 dev_dbg(hcd->self.controller, "wHubCharacteristics 0x%04x\n", in ohci_at91_hub_control()
441 dev_dbg(hcd->self.controller, "wHubCharacteristics after 0x%04x\n", in ohci_at91_hub_control()
449 dev_dbg(hcd->self.controller, "GetPortStatus(%d)\n", wIndex); in ohci_at91_hub_control()
599 struct usb_hcd *hcd = dev_get_drvdata(dev); in ohci_hcd_at91_drv_suspend() local
600 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_at91_drv_suspend()
601 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in ohci_hcd_at91_drv_suspend()
612 enable_irq_wake(hcd->irq); in ohci_hcd_at91_drv_suspend()
614 ret = ohci_suspend(hcd, ohci_at91->wakeup); in ohci_hcd_at91_drv_suspend()
617 disable_irq_wake(hcd->irq); in ohci_hcd_at91_drv_suspend()
645 struct usb_hcd *hcd = dev_get_drvdata(dev); in ohci_hcd_at91_drv_resume() local
646 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in ohci_hcd_at91_drv_resume()
651 disable_irq_wake(hcd->irq); in ohci_hcd_at91_drv_resume()
655 ohci_resume(hcd, false); in ohci_hcd_at91_drv_resume()