Lines Matching refs:hcd
30 static int xhci_plat_setup(struct usb_hcd *hcd);
31 static int xhci_plat_start(struct usb_hcd *hcd);
50 static int xhci_plat_setup(struct usb_hcd *hcd) in xhci_plat_setup() argument
52 struct device_node *of_node = hcd->self.controller->of_node; in xhci_plat_setup()
57 ret = xhci_rcar_init_quirk(hcd); in xhci_plat_setup()
62 return xhci_gen_setup(hcd, xhci_plat_quirks); in xhci_plat_setup()
65 static int xhci_plat_start(struct usb_hcd *hcd) in xhci_plat_start() argument
67 struct device_node *of_node = hcd->self.controller->of_node; in xhci_plat_start()
71 xhci_rcar_start(hcd); in xhci_plat_start()
73 return xhci_run(hcd); in xhci_plat_start()
83 struct usb_hcd *hcd; in xhci_plat_probe() local
112 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in xhci_plat_probe()
113 if (!hcd) in xhci_plat_probe()
117 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in xhci_plat_probe()
118 if (IS_ERR(hcd->regs)) { in xhci_plat_probe()
119 ret = PTR_ERR(hcd->regs); in xhci_plat_probe()
123 hcd->rsrc_start = res->start; in xhci_plat_probe()
124 hcd->rsrc_len = resource_size(res); in xhci_plat_probe()
146 device_wakeup_enable(hcd->self.controller); in xhci_plat_probe()
148 xhci = hcd_to_xhci(hcd); in xhci_plat_probe()
150 xhci->main_hcd = hcd; in xhci_plat_probe()
152 dev_name(&pdev->dev), hcd); in xhci_plat_probe()
165 hcd->usb_phy = devm_usb_get_phy_by_phandle(&pdev->dev, "usb-phy", 0); in xhci_plat_probe()
166 if (IS_ERR(hcd->usb_phy)) { in xhci_plat_probe()
167 ret = PTR_ERR(hcd->usb_phy); in xhci_plat_probe()
170 hcd->usb_phy = NULL; in xhci_plat_probe()
172 ret = usb_phy_init(hcd->usb_phy); in xhci_plat_probe()
177 ret = usb_add_hcd(hcd, irq, IRQF_SHARED); in xhci_plat_probe()
189 usb_remove_hcd(hcd); in xhci_plat_probe()
192 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_probe()
202 usb_put_hcd(hcd); in xhci_plat_probe()
209 struct usb_hcd *hcd = platform_get_drvdata(dev); in xhci_plat_remove() local
210 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_remove()
214 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_remove()
216 usb_remove_hcd(hcd); in xhci_plat_remove()
221 usb_put_hcd(hcd); in xhci_plat_remove()
229 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_suspend() local
230 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_suspend()
245 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_resume() local
246 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_resume()