Lines Matching refs:tegra
82 struct tegra_ehci_hcd *tegra = in tegra_reset_usb_controller() local
109 reset_control_assert(tegra->rst); in tegra_reset_usb_controller()
111 reset_control_deassert(tegra->rst); in tegra_reset_usb_controller()
194 struct tegra_ehci_hcd *tegra = (struct tegra_ehci_hcd *)ehci->priv; in tegra_ehci_hub_control() local
206 if (tegra->port_resuming && !(temp & PORT_SUSPEND)) { in tegra_ehci_hub_control()
208 tegra->port_resuming = 0; in tegra_ehci_hub_control()
237 if (tegra->needs_double_reset && in tegra_ehci_hub_control()
284 tegra->port_resuming = 1; in tegra_ehci_hub_control()
404 struct tegra_ehci_hcd *tegra; in tegra_ehci_probe() local
432 tegra = (struct tegra_ehci_hcd *)ehci->priv; in tegra_ehci_probe()
436 tegra->clk = devm_clk_get(&pdev->dev, NULL); in tegra_ehci_probe()
437 if (IS_ERR(tegra->clk)) { in tegra_ehci_probe()
439 err = PTR_ERR(tegra->clk); in tegra_ehci_probe()
443 tegra->rst = devm_reset_control_get(&pdev->dev, "usb"); in tegra_ehci_probe()
444 if (IS_ERR(tegra->rst)) { in tegra_ehci_probe()
446 err = PTR_ERR(tegra->rst); in tegra_ehci_probe()
450 err = clk_prepare_enable(tegra->clk); in tegra_ehci_probe()
465 tegra->needs_double_reset = of_property_read_bool(pdev->dev.of_node, in tegra_ehci_probe()
523 clk_disable_unprepare(tegra->clk); in tegra_ehci_probe()
532 struct tegra_ehci_hcd *tegra = in tegra_ehci_remove() local
540 clk_disable_unprepare(tegra->clk); in tegra_ehci_remove()