Lines Matching full:hcd

24 #include <linux/usb/hcd.h>
48 static int st_ehci_platform_reset(struct usb_hcd *hcd) in st_ehci_platform_reset() argument
50 struct platform_device *pdev = to_platform_device(hcd->self.controller); in st_ehci_platform_reset()
52 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in st_ehci_platform_reset()
57 writel(threshold, hcd->regs + AHB2STBUS_INSREG01); in st_ehci_platform_reset()
59 ehci->caps = hcd->regs + pdata->caps_offset; in st_ehci_platform_reset()
60 return ehci_setup(hcd); in st_ehci_platform_reset()
65 struct usb_hcd *hcd = platform_get_drvdata(dev); in st_ehci_platform_power_on() local
66 struct st_ehci_platform_priv *priv = hcd_to_ehci_priv(hcd); in st_ehci_platform_power_on()
116 struct usb_hcd *hcd = platform_get_drvdata(dev); in st_ehci_platform_power_off() local
117 struct st_ehci_platform_priv *priv = hcd_to_ehci_priv(hcd); in st_ehci_platform_power_off()
149 struct usb_hcd *hcd; in st_ehci_platform_probe() local
162 hcd = usb_create_hcd(&ehci_platform_hc_driver, &dev->dev, in st_ehci_platform_probe()
164 if (!hcd) in st_ehci_platform_probe()
167 platform_set_drvdata(dev, hcd); in st_ehci_platform_probe()
169 priv = hcd_to_ehci_priv(hcd); in st_ehci_platform_probe()
220 hcd->regs = devm_platform_get_and_ioremap_resource(dev, 0, &res_mem); in st_ehci_platform_probe()
221 if (IS_ERR(hcd->regs)) { in st_ehci_platform_probe()
222 err = PTR_ERR(hcd->regs); in st_ehci_platform_probe()
225 hcd->rsrc_start = res_mem->start; in st_ehci_platform_probe()
226 hcd->rsrc_len = resource_size(res_mem); in st_ehci_platform_probe()
228 err = usb_add_hcd(hcd, irq, IRQF_SHARED); in st_ehci_platform_probe()
232 device_wakeup_enable(hcd->self.controller); in st_ehci_platform_probe()
233 platform_set_drvdata(dev, hcd); in st_ehci_platform_probe()
244 usb_put_hcd(hcd); in st_ehci_platform_probe()
251 struct usb_hcd *hcd = platform_get_drvdata(dev); in st_ehci_platform_remove() local
253 struct st_ehci_platform_priv *priv = hcd_to_ehci_priv(hcd); in st_ehci_platform_remove()
256 usb_remove_hcd(hcd); in st_ehci_platform_remove()
264 usb_put_hcd(hcd); in st_ehci_platform_remove()
274 struct usb_hcd *hcd = dev_get_drvdata(dev); in st_ehci_suspend() local
280 ret = ehci_suspend(hcd, do_wakeup); in st_ehci_suspend()
294 struct usb_hcd *hcd = dev_get_drvdata(dev); in st_ehci_resume() local
307 ehci_resume(hcd, false); in st_ehci_resume()