Lines Matching refs:hcd
97 struct usb_hcd *hcd = platform_get_drvdata(pdev); in at91_start_hc() local
98 struct ohci_regs __iomem *regs = hcd->regs; in at91_start_hc()
99 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in at91_start_hc()
116 struct usb_hcd *hcd = platform_get_drvdata(pdev); in at91_stop_hc() local
117 struct ohci_regs __iomem *regs = hcd->regs; in at91_stop_hc()
118 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in at91_stop_hc()
167 struct usb_hcd *hcd; in usb_hcd_at91_probe() local
179 hcd = usb_create_hcd(driver, dev, "at91"); in usb_hcd_at91_probe()
180 if (!hcd) in usb_hcd_at91_probe()
182 ohci_at91 = hcd_to_ohci_at91_priv(hcd); in usb_hcd_at91_probe()
185 hcd->regs = devm_ioremap_resource(dev, res); in usb_hcd_at91_probe()
186 if (IS_ERR(hcd->regs)) { in usb_hcd_at91_probe()
187 retval = PTR_ERR(hcd->regs); in usb_hcd_at91_probe()
190 hcd->rsrc_start = res->start; in usb_hcd_at91_probe()
191 hcd->rsrc_len = resource_size(res); in usb_hcd_at91_probe()
216 board = hcd->self.controller->platform_data; in usb_hcd_at91_probe()
217 ohci = hcd_to_ohci(hcd); in usb_hcd_at91_probe()
227 retval = usb_add_hcd(hcd, irq, IRQF_SHARED); in usb_hcd_at91_probe()
229 device_wakeup_enable(hcd->self.controller); in usb_hcd_at91_probe()
237 usb_put_hcd(hcd); in usb_hcd_at91_probe()
254 static void usb_hcd_at91_remove(struct usb_hcd *hcd, in usb_hcd_at91_remove() argument
257 usb_remove_hcd(hcd); in usb_hcd_at91_remove()
259 usb_put_hcd(hcd); in usb_hcd_at91_remove()
282 static int ohci_at91_hub_status_data(struct usb_hcd *hcd, char *buf) in ohci_at91_hub_status_data() argument
284 struct at91_usbh_data *pdata = hcd->self.controller->platform_data; in ohci_at91_hub_status_data()
285 int length = ohci_hub_status_data(hcd, buf); in ohci_at91_hub_status_data()
324 static int ohci_at91_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in ohci_at91_hub_control() argument
327 struct at91_usbh_data *pdata = dev_get_platdata(hcd->self.controller); in ohci_at91_hub_control()
328 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in ohci_at91_hub_control()
333 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
335 hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_at91_hub_control()
343 dev_dbg(hcd->self.controller, "SetPortFeat: POWER\n"); in ohci_at91_hub_control()
352 dev_dbg(hcd->self.controller, "SetPortFeat: SUSPEND\n"); in ohci_at91_hub_control()
365 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
376 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
385 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
395 dev_dbg(hcd->self.controller, "ClearPortFeature: SUSPEND\n"); in ohci_at91_hub_control()
406 ret = ohci_hub_control(hcd, typeReq, wValue, wIndex + 1, buf, wLength); in ohci_at91_hub_control()
417 dev_dbg(hcd->self.controller, "wHubCharacteristics 0x%04x\n", in ohci_at91_hub_control()
434 dev_dbg(hcd->self.controller, "wHubCharacteristics after 0x%04x\n", in ohci_at91_hub_control()
442 dev_dbg(hcd->self.controller, "GetPortStatus(%d)\n", wIndex); in ohci_at91_hub_control()
592 struct usb_hcd *hcd = dev_get_drvdata(dev); in ohci_hcd_at91_drv_suspend() local
593 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_at91_drv_suspend()
594 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in ohci_hcd_at91_drv_suspend()
605 enable_irq_wake(hcd->irq); in ohci_hcd_at91_drv_suspend()
609 ret = ohci_suspend(hcd, ohci_at91->wakeup); in ohci_hcd_at91_drv_suspend()
612 disable_irq_wake(hcd->irq); in ohci_hcd_at91_drv_suspend()
636 struct usb_hcd *hcd = dev_get_drvdata(dev); in ohci_hcd_at91_drv_resume() local
637 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in ohci_hcd_at91_drv_resume()
640 disable_irq_wake(hcd->irq); in ohci_hcd_at91_drv_resume()
644 ohci_resume(hcd, false); in ohci_hcd_at91_drv_resume()