• Home
  • Raw
  • Download

Lines Matching refs:hcd

174 	struct usb_hcd *hcd = ohci_to_hcd(ohci);  in start_hnp()  local
175 const unsigned port = hcd->self.otg_port - 1; in start_hnp()
179 otg_start_hnp(hcd->usb_phy->otg); in start_hnp()
182 hcd->usb_phy->otg->state = OTG_STATE_A_SUSPEND; in start_hnp()
194 static int ohci_omap_reset(struct usb_hcd *hcd) in ohci_omap_reset() argument
196 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_omap_reset()
197 struct omap_usb_config *config = dev_get_platdata(hcd->self.controller); in ohci_omap_reset()
201 dev_dbg(hcd->self.controller, "starting USB Controller\n"); in ohci_omap_reset()
204 hcd->self.otg_port = config->otg; in ohci_omap_reset()
206 hcd->power_budget = 8; in ohci_omap_reset()
219 hcd->usb_phy = usb_get_phy(USB_PHY_TYPE_USB2); in ohci_omap_reset()
220 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in ohci_omap_reset()
221 int status = otg_set_host(hcd->usb_phy->otg, in ohci_omap_reset()
223 dev_dbg(hcd->self.controller, "init %s phy, status %d\n", in ohci_omap_reset()
224 hcd->usb_phy->label, status); in ohci_omap_reset()
226 usb_put_phy(hcd->usb_phy); in ohci_omap_reset()
243 ret = ohci_setup(hcd); in ohci_omap_reset()
305 struct usb_hcd *hcd = 0; in ohci_hcd_omap_probe() local
334 hcd = usb_create_hcd(&ohci_omap_hc_driver, &pdev->dev, in ohci_hcd_omap_probe()
336 if (!hcd) { in ohci_hcd_omap_probe()
340 hcd->rsrc_start = pdev->resource[0].start; in ohci_hcd_omap_probe()
341 hcd->rsrc_len = pdev->resource[0].end - pdev->resource[0].start + 1; in ohci_hcd_omap_probe()
343 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { in ohci_hcd_omap_probe()
349 hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_omap_probe()
350 if (!hcd->regs) { in ohci_hcd_omap_probe()
361 retval = usb_add_hcd(hcd, irq, 0); in ohci_hcd_omap_probe()
365 device_wakeup_enable(hcd->self.controller); in ohci_hcd_omap_probe()
368 iounmap(hcd->regs); in ohci_hcd_omap_probe()
370 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_omap_probe()
372 usb_put_hcd(hcd); in ohci_hcd_omap_probe()
393 struct usb_hcd *hcd = platform_get_drvdata(pdev); in ohci_hcd_omap_remove() local
395 dev_dbg(hcd->self.controller, "stopping USB Controller\n"); in ohci_hcd_omap_remove()
396 usb_remove_hcd(hcd); in ohci_hcd_omap_remove()
398 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in ohci_hcd_omap_remove()
399 (void) otg_set_host(hcd->usb_phy->otg, 0); in ohci_hcd_omap_remove()
400 usb_put_phy(hcd->usb_phy); in ohci_hcd_omap_remove()
404 iounmap(hcd->regs); in ohci_hcd_omap_remove()
405 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_omap_remove()
406 usb_put_hcd(hcd); in ohci_hcd_omap_remove()
418 struct usb_hcd *hcd = platform_get_drvdata(pdev); in ohci_omap_suspend() local
419 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_omap_suspend()
427 ret = ohci_suspend(hcd, do_wakeup); in ohci_omap_suspend()
437 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_omap_resume() local
438 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_omap_resume()
445 ohci_resume(hcd, false); in ohci_omap_resume()