Lines Matching refs:hcd

40 static int xhci_plat_setup(struct usb_hcd *hcd)  in xhci_plat_setup()  argument
42 struct device_node *of_node = hcd->self.controller->of_node; in xhci_plat_setup()
47 ret = xhci_rcar_init_quirk(hcd); in xhci_plat_setup()
52 return xhci_gen_setup(hcd, xhci_plat_quirks); in xhci_plat_setup()
55 static int xhci_plat_start(struct usb_hcd *hcd) in xhci_plat_start() argument
57 struct device_node *of_node = hcd->self.controller->of_node; in xhci_plat_start()
61 xhci_rcar_start(hcd); in xhci_plat_start()
63 return xhci_run(hcd); in xhci_plat_start()
73 struct usb_hcd *hcd; in xhci_plat_probe() local
96 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in xhci_plat_probe()
97 if (!hcd) in xhci_plat_probe()
101 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in xhci_plat_probe()
102 if (IS_ERR(hcd->regs)) { in xhci_plat_probe()
103 ret = PTR_ERR(hcd->regs); in xhci_plat_probe()
107 hcd->rsrc_start = res->start; in xhci_plat_probe()
108 hcd->rsrc_len = resource_size(res); in xhci_plat_probe()
130 ret = usb_add_hcd(hcd, irq, IRQF_SHARED); in xhci_plat_probe()
134 device_wakeup_enable(hcd->self.controller); in xhci_plat_probe()
137 hcd = platform_get_drvdata(pdev); in xhci_plat_probe()
138 xhci = hcd_to_xhci(hcd); in xhci_plat_probe()
141 dev_name(&pdev->dev), hcd); in xhci_plat_probe()
159 hcd->usb_phy = devm_usb_get_phy_by_phandle(&pdev->dev, "usb-phy", 0); in xhci_plat_probe()
160 if (IS_ERR(hcd->usb_phy)) { in xhci_plat_probe()
161 ret = PTR_ERR(hcd->usb_phy); in xhci_plat_probe()
164 hcd->usb_phy = NULL; in xhci_plat_probe()
166 ret = usb_phy_init(hcd->usb_phy); in xhci_plat_probe()
178 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_probe()
184 usb_remove_hcd(hcd); in xhci_plat_probe()
191 usb_put_hcd(hcd); in xhci_plat_probe()
198 struct usb_hcd *hcd = platform_get_drvdata(dev); in xhci_plat_remove() local
199 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_remove()
203 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_remove()
206 usb_remove_hcd(hcd); in xhci_plat_remove()
209 usb_put_hcd(hcd); in xhci_plat_remove()
218 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_suspend() local
219 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_suspend()
234 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_resume() local
235 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_plat_resume()