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()
398 struct tegra_ehci_hcd *tegra; in tegra_ehci_probe() local
426 tegra = (struct tegra_ehci_hcd *)ehci->priv; in tegra_ehci_probe()
430 tegra->clk = devm_clk_get(&pdev->dev, NULL); in tegra_ehci_probe()
431 if (IS_ERR(tegra->clk)) { in tegra_ehci_probe()
433 err = PTR_ERR(tegra->clk); in tegra_ehci_probe()
437 tegra->rst = devm_reset_control_get(&pdev->dev, "usb"); in tegra_ehci_probe()
438 if (IS_ERR(tegra->rst)) { in tegra_ehci_probe()
440 err = PTR_ERR(tegra->rst); in tegra_ehci_probe()
444 err = clk_prepare_enable(tegra->clk); in tegra_ehci_probe()
459 tegra->needs_double_reset = of_property_read_bool(pdev->dev.of_node, in tegra_ehci_probe()
517 clk_disable_unprepare(tegra->clk); in tegra_ehci_probe()
526 struct tegra_ehci_hcd *tegra = in tegra_ehci_remove() local
534 clk_disable_unprepare(tegra->clk); in tegra_ehci_remove()