Lines Matching defs:hcd
20 #include <linux/usb/hcd.h>
47 #define to_exynos_ehci(hcd) (struct exynos_ehci_hcd *)(hcd_to_ehci(hcd)->priv)
106 struct usb_hcd *hcd = dev_get_drvdata(dev);
107 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd);
124 struct usb_hcd *hcd = dev_get_drvdata(dev);
125 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd);
154 struct usb_hcd *hcd;
171 hcd = usb_create_hcd(&exynos_ehci_hc_driver,
173 if (!hcd) {
177 exynos_ehci = to_exynos_ehci(hcd);
196 hcd->regs = devm_ioremap_resource(&pdev->dev, res);
197 if (IS_ERR(hcd->regs)) {
198 err = PTR_ERR(hcd->regs);
202 hcd->rsrc_start = res->start;
203 hcd->rsrc_len = resource_size(res);
217 ehci = hcd_to_ehci(hcd);
218 ehci->caps = hcd->regs;
229 writel(EHCI_INSNREG00_ENABLE_DMA_BURST, EHCI_INSNREG00(hcd->regs));
231 err = usb_add_hcd(hcd, irq, IRQF_SHARED);
236 device_wakeup_enable(hcd->self.controller);
238 platform_set_drvdata(pdev, hcd);
248 usb_put_hcd(hcd);
254 struct usb_hcd *hcd = platform_get_drvdata(pdev);
255 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd);
259 usb_remove_hcd(hcd);
265 usb_put_hcd(hcd);
273 struct usb_hcd *hcd = dev_get_drvdata(dev);
274 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd);
279 rc = ehci_suspend(hcd, do_wakeup);
292 struct usb_hcd *hcd = dev_get_drvdata(dev);
293 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd);
308 writel(EHCI_INSNREG00_ENABLE_DMA_BURST, EHCI_INSNREG00(hcd->regs));
310 ehci_resume(hcd, false);