Lines Matching refs:sched
29 struct slim_sched *sched = &ctrl->sched; in slim_ctrl_clk_pause() local
38 mutex_lock(&sched->m_reconf); in slim_ctrl_clk_pause()
40 if (sched->clk_state == SLIM_CLK_ACTIVE) { in slim_ctrl_clk_pause()
41 mutex_unlock(&sched->m_reconf); in slim_ctrl_clk_pause()
49 ret = wait_for_completion_timeout(&sched->pause_comp, in slim_ctrl_clk_pause()
52 mutex_unlock(&sched->m_reconf); in slim_ctrl_clk_pause()
63 if (sched->clk_state == SLIM_CLK_PAUSED && ctrl->wakeup) in slim_ctrl_clk_pause()
66 sched->clk_state = SLIM_CLK_ACTIVE; in slim_ctrl_clk_pause()
67 mutex_unlock(&sched->m_reconf); in slim_ctrl_clk_pause()
73 if (ctrl->sched.clk_state == SLIM_CLK_PAUSED) { in slim_ctrl_clk_pause()
74 mutex_unlock(&sched->m_reconf); in slim_ctrl_clk_pause()
83 mutex_unlock(&sched->m_reconf); in slim_ctrl_clk_pause()
89 sched->clk_state = SLIM_CLK_ENTERING_PAUSE; in slim_ctrl_clk_pause()
112 sched->clk_state = SLIM_CLK_ACTIVE; in slim_ctrl_clk_pause()
114 sched->clk_state = SLIM_CLK_PAUSED; in slim_ctrl_clk_pause()
115 complete(&sched->pause_comp); in slim_ctrl_clk_pause()
117 mutex_unlock(&sched->m_reconf); in slim_ctrl_clk_pause()