Lines Matching refs:tegra
57 struct tegra_ehci_hcd *tegra = in tegra_reset_usb_controller() local
88 err = reset_control_deassert(tegra->rst); in tegra_reset_usb_controller()
92 err = reset_control_assert(tegra->rst); in tegra_reset_usb_controller()
98 err = reset_control_deassert(tegra->rst); in tegra_reset_usb_controller()
180 struct tegra_ehci_hcd *tegra = (struct tegra_ehci_hcd *)ehci->priv; in tegra_ehci_hub_control() local
192 if (tegra->port_resuming && !(temp & PORT_SUSPEND)) { in tegra_ehci_hub_control()
194 tegra->port_resuming = 0; in tegra_ehci_hub_control()
223 if (tegra->needs_double_reset && in tegra_ehci_hub_control()
270 tegra->port_resuming = 1; in tegra_ehci_hub_control()
390 struct tegra_ehci_hcd *tegra; in tegra_ehci_probe() local
418 tegra = (struct tegra_ehci_hcd *)ehci->priv; in tegra_ehci_probe()
422 tegra->clk = devm_clk_get(&pdev->dev, NULL); in tegra_ehci_probe()
423 if (IS_ERR(tegra->clk)) { in tegra_ehci_probe()
425 err = PTR_ERR(tegra->clk); in tegra_ehci_probe()
429 tegra->rst = devm_reset_control_get_shared(&pdev->dev, "usb"); in tegra_ehci_probe()
430 if (IS_ERR(tegra->rst)) { in tegra_ehci_probe()
432 err = PTR_ERR(tegra->rst); in tegra_ehci_probe()
436 err = clk_prepare_enable(tegra->clk); in tegra_ehci_probe()
454 tegra->needs_double_reset = of_property_read_bool(pdev->dev.of_node, in tegra_ehci_probe()
512 clk_disable_unprepare(tegra->clk); in tegra_ehci_probe()
521 struct tegra_ehci_hcd *tegra = in tegra_ehci_remove() local
529 reset_control_assert(tegra->rst); in tegra_ehci_remove()
532 clk_disable_unprepare(tegra->clk); in tegra_ehci_remove()