Lines Matching refs:wgrp

98 static int tegra_windowgroup_enable(struct tegra_windowgroup *wgrp)  in tegra_windowgroup_enable()  argument
100 mutex_lock(&wgrp->lock); in tegra_windowgroup_enable()
102 if (wgrp->usecount == 0) { in tegra_windowgroup_enable()
103 pm_runtime_get_sync(wgrp->parent); in tegra_windowgroup_enable()
104 reset_control_deassert(wgrp->rst); in tegra_windowgroup_enable()
107 wgrp->usecount++; in tegra_windowgroup_enable()
108 mutex_unlock(&wgrp->lock); in tegra_windowgroup_enable()
113 static void tegra_windowgroup_disable(struct tegra_windowgroup *wgrp) in tegra_windowgroup_disable() argument
117 mutex_lock(&wgrp->lock); in tegra_windowgroup_disable()
119 if (wgrp->usecount == 1) { in tegra_windowgroup_disable()
120 err = reset_control_assert(wgrp->rst); in tegra_windowgroup_disable()
123 wgrp->index); in tegra_windowgroup_disable()
126 pm_runtime_put(wgrp->parent); in tegra_windowgroup_disable()
129 wgrp->usecount--; in tegra_windowgroup_disable()
130 mutex_unlock(&wgrp->lock); in tegra_windowgroup_disable()
144 struct tegra_windowgroup *wgrp = &hub->wgrps[i]; in tegra_display_hub_prepare() local
146 tegra_windowgroup_enable(wgrp); in tegra_display_hub_prepare()
161 struct tegra_windowgroup *wgrp = &hub->wgrps[i]; in tegra_display_hub_cleanup() local
163 tegra_windowgroup_disable(wgrp); in tegra_display_hub_cleanup()
531 unsigned int wgrp, in tegra_shared_plane_create() argument
553 plane->wgrp = &hub->wgrps[wgrp]; in tegra_shared_plane_create()
554 plane->wgrp->parent = dc->dev; in tegra_shared_plane_create()
785 struct tegra_windowgroup *wgrp = &hub->wgrps[i]; in tegra_display_hub_probe() local
789 mutex_init(&wgrp->lock); in tegra_display_hub_probe()
790 wgrp->usecount = 0; in tegra_display_hub_probe()
791 wgrp->index = i; in tegra_display_hub_probe()
793 wgrp->rst = devm_reset_control_get(&pdev->dev, id); in tegra_display_hub_probe()
794 if (IS_ERR(wgrp->rst)) in tegra_display_hub_probe()
795 return PTR_ERR(wgrp->rst); in tegra_display_hub_probe()
797 err = reset_control_assert(wgrp->rst); in tegra_display_hub_probe()