Lines Matching refs:hcd
81 struct usb_hcd *hcd = platform_get_drvdata(pdev); in tegra_reset_usb_controller() local
83 (struct tegra_ehci_hcd *)hcd_to_ehci(hcd)->priv; in tegra_reset_usb_controller()
185 struct usb_hcd *hcd, in tegra_ehci_hub_control() argument
193 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in tegra_ehci_hub_control()
209 tegra_usb_phy_postresume(hcd->usb_phy); in tegra_ehci_hub_control()
262 tegra_usb_phy_preresume(hcd->usb_phy); in tegra_ehci_hub_control()
291 return ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in tegra_ehci_hub_control()
355 static int tegra_ehci_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb, in tegra_ehci_map_urb_for_dma() argument
364 ret = usb_hcd_map_urb_for_dma(hcd, urb, mem_flags); in tegra_ehci_map_urb_for_dma()
371 static void tegra_ehci_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb) in tegra_ehci_unmap_urb_for_dma() argument
373 usb_hcd_unmap_urb_for_dma(hcd, urb); in tegra_ehci_unmap_urb_for_dma()
396 struct usb_hcd *hcd; in tegra_ehci_probe() local
418 hcd = usb_create_hcd(&tegra_ehci_hc_driver, &pdev->dev, in tegra_ehci_probe()
420 if (!hcd) { in tegra_ehci_probe()
424 platform_set_drvdata(pdev, hcd); in tegra_ehci_probe()
425 ehci = hcd_to_ehci(hcd); in tegra_ehci_probe()
428 hcd->has_tt = 1; in tegra_ehci_probe()
457 hcd->usb_phy = u_phy; in tegra_ehci_probe()
463 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in tegra_ehci_probe()
464 if (IS_ERR(hcd->regs)) { in tegra_ehci_probe()
465 err = PTR_ERR(hcd->regs); in tegra_ehci_probe()
468 hcd->rsrc_start = res->start; in tegra_ehci_probe()
469 hcd->rsrc_len = resource_size(res); in tegra_ehci_probe()
471 ehci->caps = hcd->regs + 0x100; in tegra_ehci_probe()
474 err = usb_phy_init(hcd->usb_phy); in tegra_ehci_probe()
486 u_phy->otg->host = hcd_to_bus(hcd); in tegra_ehci_probe()
488 err = usb_phy_set_suspend(hcd->usb_phy, 0); in tegra_ehci_probe()
501 otg_set_host(u_phy->otg, &hcd->self); in tegra_ehci_probe()
503 err = usb_add_hcd(hcd, irq, IRQF_SHARED); in tegra_ehci_probe()
508 device_wakeup_enable(hcd->self.controller); in tegra_ehci_probe()
515 usb_phy_shutdown(hcd->usb_phy); in tegra_ehci_probe()
519 usb_put_hcd(hcd); in tegra_ehci_probe()
525 struct usb_hcd *hcd = platform_get_drvdata(pdev); in tegra_ehci_remove() local
527 (struct tegra_ehci_hcd *)hcd_to_ehci(hcd)->priv; in tegra_ehci_remove()
529 otg_set_host(hcd->usb_phy->otg, NULL); in tegra_ehci_remove()
531 usb_phy_shutdown(hcd->usb_phy); in tegra_ehci_remove()
532 usb_remove_hcd(hcd); in tegra_ehci_remove()
536 usb_put_hcd(hcd); in tegra_ehci_remove()
543 struct usb_hcd *hcd = platform_get_drvdata(pdev); in tegra_ehci_hcd_shutdown() local
545 if (hcd->driver->shutdown) in tegra_ehci_hcd_shutdown()
546 hcd->driver->shutdown(hcd); in tegra_ehci_hcd_shutdown()
559 static int tegra_ehci_reset(struct usb_hcd *hcd) in tegra_ehci_reset() argument
561 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in tegra_ehci_reset()
565 retval = ehci_setup(hcd); in tegra_ehci_reset()