Lines Matching refs:hub_state
822 struct tegra_display_hub_state *hub_state = in tegra_display_hub_destroy_state() local
825 kfree(hub_state); in tegra_display_hub_destroy_state()
850 struct tegra_display_hub_state *hub_state; in tegra_display_hub_atomic_check() local
858 hub_state = tegra_display_hub_get_state(tegra->hub, state); in tegra_display_hub_atomic_check()
859 if (IS_ERR(hub_state)) in tegra_display_hub_atomic_check()
860 return PTR_ERR(hub_state); in tegra_display_hub_atomic_check()
874 if (!hub_state->clk || dc->pclk > hub_state->rate) { in tegra_display_hub_atomic_check()
875 hub_state->dc = to_tegra_dc(dc->base.crtc); in tegra_display_hub_atomic_check()
876 hub_state->clk = hub_state->dc->clk; in tegra_display_hub_atomic_check()
877 hub_state->rate = dc->pclk; in tegra_display_hub_atomic_check()
917 struct tegra_display_hub_state *hub_state; in tegra_display_hub_atomic_commit() local
921 hub_state = to_tegra_display_hub_state(hub->base.state); in tegra_display_hub_atomic_commit()
923 if (hub_state->clk) { in tegra_display_hub_atomic_commit()
924 err = clk_set_rate(hub_state->clk, hub_state->rate); in tegra_display_hub_atomic_commit()
927 hub_state->clk, hub_state->rate); in tegra_display_hub_atomic_commit()
929 err = clk_set_parent(hub->clk_disp, hub_state->clk); in tegra_display_hub_atomic_commit()
932 hub->clk_disp, hub_state->clk, err); in tegra_display_hub_atomic_commit()
935 if (hub_state->dc) in tegra_display_hub_atomic_commit()
936 tegra_display_hub_update(hub_state->dc); in tegra_display_hub_atomic_commit()