Lines Matching defs:hcd

29 #include <linux/usb/hcd.h>
98 struct usb_hcd *hcd = platform_get_drvdata(pdev);
99 struct ohci_regs __iomem *regs = hcd->regs;
100 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd);
117 struct usb_hcd *hcd = platform_get_drvdata(pdev);
118 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd);
186 struct usb_hcd *hcd;
196 hcd = usb_create_hcd(driver, dev, "at91");
197 if (!hcd)
199 ohci_at91 = hcd_to_ohci_at91_priv(hcd);
201 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
202 if (IS_ERR(hcd->regs)) {
203 retval = PTR_ERR(hcd->regs);
206 hcd->rsrc_start = res->start;
207 hcd->rsrc_len = resource_size(res);
236 board = hcd->self.controller->platform_data;
237 ohci = hcd_to_ohci(hcd);
247 retval = usb_add_hcd(hcd, irq, IRQF_SHARED);
249 device_wakeup_enable(hcd->self.controller);
257 usb_put_hcd(hcd);
266 * @hcd: USB controller to remove
275 static void usb_hcd_at91_remove(struct usb_hcd *hcd,
278 usb_remove_hcd(hcd);
280 usb_put_hcd(hcd);
303 static int ohci_at91_hub_status_data(struct usb_hcd *hcd, char *buf)
305 struct at91_usbh_data *pdata = hcd->self.controller->platform_data;
306 int length = ohci_hub_status_data(hcd, buf);
351 static int ohci_at91_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
354 struct at91_usbh_data *pdata = dev_get_platdata(hcd->self.controller);
355 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd);
360 dev_dbg(hcd->self.controller,
362 hcd, typeReq, wValue, wIndex, buf, wLength);
370 dev_dbg(hcd->self.controller, "SetPortFeat: POWER\n");
379 dev_dbg(hcd->self.controller, "SetPortFeat: SUSPEND\n");
391 dev_dbg(hcd->self.controller,
402 dev_dbg(hcd->self.controller,
411 dev_dbg(hcd->self.controller,
421 dev_dbg(hcd->self.controller, "ClearPortFeature: SUSPEND\n");
431 ret = ohci_hub_control(hcd, typeReq, wValue, wIndex + 1, buf, wLength);
442 dev_dbg(hcd->self.controller, "wHubCharacteristics 0x%04x\n",
459 dev_dbg(hcd->self.controller, "wHubCharacteristics after 0x%04x\n",
467 dev_dbg(hcd->self.controller, "GetPortStatus(%d)\n", wIndex);
616 struct usb_hcd *hcd = dev_get_drvdata(dev);
617 struct ohci_hcd *ohci = hcd_to_ohci(hcd);
618 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd);
629 enable_irq_wake(hcd->irq);
631 ret = ohci_suspend(hcd, ohci_at91->wakeup);
634 disable_irq_wake(hcd->irq);
662 struct usb_hcd *hcd = dev_get_drvdata(dev);
663 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd);
668 disable_irq_wake(hcd->irq);
678 ohci_resume(hcd, !ohci_at91->wakeup);