Lines Matching refs:hcd
71 struct usb_hcd *hcd = platform_get_drvdata(pdev); in atmel_start_ehci() local
72 struct atmel_ehci_priv *atmel_ehci = hcd_to_atmel_ehci_priv(hcd); in atmel_start_ehci()
80 struct usb_hcd *hcd = platform_get_drvdata(pdev); in atmel_stop_ehci() local
81 struct atmel_ehci_priv *atmel_ehci = hcd_to_atmel_ehci_priv(hcd); in atmel_stop_ehci()
91 struct usb_hcd *hcd; in ehci_atmel_drv_probe() local
118 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in ehci_atmel_drv_probe()
119 if (!hcd) { in ehci_atmel_drv_probe()
123 atmel_ehci = hcd_to_atmel_ehci_priv(hcd); in ehci_atmel_drv_probe()
126 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in ehci_atmel_drv_probe()
127 if (IS_ERR(hcd->regs)) { in ehci_atmel_drv_probe()
128 retval = PTR_ERR(hcd->regs); in ehci_atmel_drv_probe()
132 hcd->rsrc_start = res->start; in ehci_atmel_drv_probe()
133 hcd->rsrc_len = resource_size(res); in ehci_atmel_drv_probe()
149 ehci = hcd_to_ehci(hcd); in ehci_atmel_drv_probe()
151 ehci->caps = hcd->regs; in ehci_atmel_drv_probe()
155 retval = usb_add_hcd(hcd, irq, IRQF_SHARED); in ehci_atmel_drv_probe()
158 device_wakeup_enable(hcd->self.controller); in ehci_atmel_drv_probe()
161 writel(EHCI_INSNREG08_HSIC_EN, hcd->regs + EHCI_INSNREG(8)); in ehci_atmel_drv_probe()
168 usb_put_hcd(hcd); in ehci_atmel_drv_probe()
178 struct usb_hcd *hcd = platform_get_drvdata(pdev); in ehci_atmel_drv_remove() local
180 usb_remove_hcd(hcd); in ehci_atmel_drv_remove()
181 usb_put_hcd(hcd); in ehci_atmel_drv_remove()
190 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_atmel_drv_suspend() local
191 struct atmel_ehci_priv *atmel_ehci = hcd_to_atmel_ehci_priv(hcd); in ehci_atmel_drv_suspend()
194 ret = ehci_suspend(hcd, false); in ehci_atmel_drv_suspend()
204 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_atmel_drv_resume() local
205 struct atmel_ehci_priv *atmel_ehci = hcd_to_atmel_ehci_priv(hcd); in ehci_atmel_drv_resume()
208 ehci_resume(hcd, false); in ehci_atmel_drv_resume()