• Home
  • Raw
  • Download

Lines Matching refs:wgrp

113 static int tegra_windowgroup_enable(struct tegra_windowgroup *wgrp)  in tegra_windowgroup_enable()  argument
117 mutex_lock(&wgrp->lock); in tegra_windowgroup_enable()
119 if (wgrp->usecount == 0) { in tegra_windowgroup_enable()
120 err = host1x_client_resume(wgrp->parent); in tegra_windowgroup_enable()
122 dev_err(wgrp->parent->dev, "failed to resume: %d\n", err); in tegra_windowgroup_enable()
126 reset_control_deassert(wgrp->rst); in tegra_windowgroup_enable()
129 wgrp->usecount++; in tegra_windowgroup_enable()
132 mutex_unlock(&wgrp->lock); in tegra_windowgroup_enable()
136 static void tegra_windowgroup_disable(struct tegra_windowgroup *wgrp) in tegra_windowgroup_disable() argument
140 mutex_lock(&wgrp->lock); in tegra_windowgroup_disable()
142 if (wgrp->usecount == 1) { in tegra_windowgroup_disable()
143 err = reset_control_assert(wgrp->rst); in tegra_windowgroup_disable()
146 wgrp->index); in tegra_windowgroup_disable()
149 host1x_client_suspend(wgrp->parent); in tegra_windowgroup_disable()
152 wgrp->usecount--; in tegra_windowgroup_disable()
153 mutex_unlock(&wgrp->lock); in tegra_windowgroup_disable()
167 struct tegra_windowgroup *wgrp = &hub->wgrps[i]; in tegra_display_hub_prepare() local
170 if (wgrp->parent) in tegra_display_hub_prepare()
171 tegra_windowgroup_enable(wgrp); in tegra_display_hub_prepare()
186 struct tegra_windowgroup *wgrp = &hub->wgrps[i]; in tegra_display_hub_cleanup() local
189 if (wgrp->parent) in tegra_display_hub_cleanup()
190 tegra_windowgroup_disable(wgrp); in tegra_display_hub_cleanup()
758 unsigned int wgrp, in tegra_shared_plane_create() argument
779 plane->wgrp = &hub->wgrps[wgrp]; in tegra_shared_plane_create()
780 plane->wgrp->parent = &dc->client; in tegra_shared_plane_create()
1103 struct tegra_windowgroup *wgrp = &hub->wgrps[i]; in tegra_display_hub_probe() local
1107 mutex_init(&wgrp->lock); in tegra_display_hub_probe()
1108 wgrp->usecount = 0; in tegra_display_hub_probe()
1109 wgrp->index = i; in tegra_display_hub_probe()
1111 wgrp->rst = devm_reset_control_get(&pdev->dev, id); in tegra_display_hub_probe()
1112 if (IS_ERR(wgrp->rst)) in tegra_display_hub_probe()
1113 return PTR_ERR(wgrp->rst); in tegra_display_hub_probe()
1115 err = reset_control_assert(wgrp->rst); in tegra_display_hub_probe()
1185 struct tegra_windowgroup *wgrp = &hub->wgrps[i]; in tegra_display_hub_remove() local
1187 mutex_destroy(&wgrp->lock); in tegra_display_hub_remove()