Lines Matching defs:hcd
20 #include <linux/usb/hcd.h>
46 #define to_exynos_ehci(hcd) (struct exynos_ehci_hcd *)(hcd_to_ehci(hcd)->priv)
92 struct usb_hcd *hcd = dev_get_drvdata(dev);
93 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd);
108 struct usb_hcd *hcd = dev_get_drvdata(dev);
109 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd);
130 struct usb_hcd *hcd;
147 hcd = usb_create_hcd(&exynos_ehci_hc_driver,
149 if (!hcd) {
153 exynos_ehci = to_exynos_ehci(hcd);
167 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
168 if (IS_ERR(hcd->regs)) {
169 err = PTR_ERR(hcd->regs);
173 hcd->rsrc_start = res->start;
174 hcd->rsrc_len = resource_size(res);
188 ehci = hcd_to_ehci(hcd);
189 ehci->caps = hcd->regs;
200 writel(EHCI_INSNREG00_ENABLE_DMA_BURST, EHCI_INSNREG00(hcd->regs));
202 err = usb_add_hcd(hcd, irq, IRQF_SHARED);
207 device_wakeup_enable(hcd->self.controller);
209 platform_set_drvdata(pdev, hcd);
217 usb_put_hcd(hcd);
223 struct usb_hcd *hcd = platform_get_drvdata(pdev);
224 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd);
228 usb_remove_hcd(hcd);
232 usb_put_hcd(hcd);
237 struct usb_hcd *hcd = dev_get_drvdata(dev);
238 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd);
243 rc = ehci_suspend(hcd, do_wakeup);
256 struct usb_hcd *hcd = dev_get_drvdata(dev);
257 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd);
272 writel(EHCI_INSNREG00_ENABLE_DMA_BURST, EHCI_INSNREG00(hcd->regs));
274 ehci_resume(hcd, false);