Lines Matching refs:hcd
20 #include <linux/usb/hcd.h>
46 #define to_exynos_ehci(hcd) (struct exynos_ehci_hcd *)(hcd_to_ehci(hcd)->priv)
97 struct usb_hcd *hcd = dev_get_drvdata(dev);
98 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd);
113 struct usb_hcd *hcd = dev_get_drvdata(dev);
114 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd);
135 struct usb_hcd *hcd;
152 hcd = usb_create_hcd(&exynos_ehci_hc_driver,
154 if (!hcd) {
158 exynos_ehci = to_exynos_ehci(hcd);
172 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
173 if (IS_ERR(hcd->regs)) {
174 err = PTR_ERR(hcd->regs);
178 hcd->rsrc_start = res->start;
179 hcd->rsrc_len = resource_size(res);
193 ehci = hcd_to_ehci(hcd);
194 ehci->caps = hcd->regs;
205 writel(EHCI_INSNREG00_ENABLE_DMA_BURST, EHCI_INSNREG00(hcd->regs));
207 err = usb_add_hcd(hcd, irq, IRQF_SHARED);
212 device_wakeup_enable(hcd->self.controller);
214 platform_set_drvdata(pdev, hcd);
222 usb_put_hcd(hcd);
228 struct usb_hcd *hcd = platform_get_drvdata(pdev);
229 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd);
233 usb_remove_hcd(hcd);
237 usb_put_hcd(hcd);
242 struct usb_hcd *hcd = dev_get_drvdata(dev);
243 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd);
248 rc = ehci_suspend(hcd, do_wakeup);
261 struct usb_hcd *hcd = dev_get_drvdata(dev);
262 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd);
277 writel(EHCI_INSNREG00_ENABLE_DMA_BURST, EHCI_INSNREG00(hcd->regs));
279 ehci_resume(hcd, false);