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_regs __iomem *regs = hcd->regs; in at91_stop_hc()
119 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in at91_stop_hc()
157 struct usb_hcd *hcd; in usb_hcd_at91_probe() local
169 hcd = usb_create_hcd(driver, dev, "at91"); in usb_hcd_at91_probe()
170 if (!hcd) in usb_hcd_at91_probe()
172 ohci_at91 = hcd_to_ohci_at91_priv(hcd); in usb_hcd_at91_probe()
175 hcd->regs = devm_ioremap_resource(dev, res); in usb_hcd_at91_probe()
176 if (IS_ERR(hcd->regs)) { in usb_hcd_at91_probe()
177 retval = PTR_ERR(hcd->regs); in usb_hcd_at91_probe()
180 hcd->rsrc_start = res->start; in usb_hcd_at91_probe()
181 hcd->rsrc_len = resource_size(res); in usb_hcd_at91_probe()
202 board = hcd->self.controller->platform_data; in usb_hcd_at91_probe()
203 ohci = hcd_to_ohci(hcd); in usb_hcd_at91_probe()
207 retval = usb_add_hcd(hcd, irq, IRQF_SHARED); in usb_hcd_at91_probe()
209 device_wakeup_enable(hcd->self.controller); in usb_hcd_at91_probe()
217 usb_put_hcd(hcd); in usb_hcd_at91_probe()
234 static void usb_hcd_at91_remove(struct usb_hcd *hcd, in usb_hcd_at91_remove() argument
237 usb_remove_hcd(hcd); in usb_hcd_at91_remove()
239 usb_put_hcd(hcd); in usb_hcd_at91_remove()
270 static int ohci_at91_hub_status_data(struct usb_hcd *hcd, char *buf) in ohci_at91_hub_status_data() argument
272 struct at91_usbh_data *pdata = hcd->self.controller->platform_data; in ohci_at91_hub_status_data()
273 int length = ohci_hub_status_data(hcd, buf); in ohci_at91_hub_status_data()
290 static int ohci_at91_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in ohci_at91_hub_control() argument
293 struct at91_usbh_data *pdata = dev_get_platdata(hcd->self.controller); in ohci_at91_hub_control()
298 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
300 hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_at91_hub_control()
307 dev_dbg(hcd->self.controller, "SetPortFeat: POWER\n"); in ohci_at91_hub_control()
320 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
331 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
340 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
351 ret = ohci_hub_control(hcd, typeReq, wValue, wIndex + 1, buf, wLength); in ohci_at91_hub_control()
362 dev_dbg(hcd->self.controller, "wHubCharacteristics 0x%04x\n", in ohci_at91_hub_control()
379 dev_dbg(hcd->self.controller, "wHubCharacteristics after 0x%04x\n", in ohci_at91_hub_control()
387 dev_dbg(hcd->self.controller, "GetPortStatus(%d)\n", wIndex); in ohci_at91_hub_control()
591 struct usb_hcd *hcd = dev_get_drvdata(dev); in ohci_hcd_at91_drv_suspend() local
592 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_hcd_at91_drv_suspend()
593 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in ohci_hcd_at91_drv_suspend()
604 enable_irq_wake(hcd->irq); in ohci_hcd_at91_drv_suspend()
606 ret = ohci_suspend(hcd, ohci_at91->wakeup); in ohci_hcd_at91_drv_suspend()
609 disable_irq_wake(hcd->irq); in ohci_hcd_at91_drv_suspend()
635 struct usb_hcd *hcd = dev_get_drvdata(dev); in ohci_hcd_at91_drv_resume() local
636 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in ohci_hcd_at91_drv_resume()
639 disable_irq_wake(hcd->irq); in ohci_hcd_at91_drv_resume()
643 ohci_resume(hcd, false); in ohci_hcd_at91_drv_resume()