Lines Matching refs:curr_ctx
95 struct v4l2_m2m_ctx *curr_ctx; member
238 if (m2m_dev->curr_ctx) in v4l2_m2m_get_curr_priv()
239 ret = m2m_dev->curr_ctx->priv; in v4l2_m2m_get_curr_priv()
260 if (NULL != m2m_dev->curr_ctx) { in v4l2_m2m_try_run()
278 m2m_dev->curr_ctx = list_first_entry(&m2m_dev->job_queue, in v4l2_m2m_try_run()
280 m2m_dev->curr_ctx->job_flags |= TRANS_RUNNING; in v4l2_m2m_try_run()
283 dprintk("Running job on m2m_ctx: %p\n", m2m_dev->curr_ctx); in v4l2_m2m_try_run()
284 m2m_dev->m2m_ops->device_run(m2m_dev->curr_ctx->priv); in v4l2_m2m_try_run()
475 if (!m2m_dev->curr_ctx || m2m_dev->curr_ctx != m2m_ctx) { in _v4l2_m2m_job_finish()
480 list_del(&m2m_dev->curr_ctx->queue); in _v4l2_m2m_job_finish()
481 m2m_dev->curr_ctx->job_flags &= ~(TRANS_QUEUED | TRANS_RUNNING); in _v4l2_m2m_job_finish()
482 wake_up(&m2m_dev->curr_ctx->finished); in _v4l2_m2m_job_finish()
483 m2m_dev->curr_ctx = NULL; in _v4l2_m2m_job_finish()
550 struct v4l2_m2m_ctx *curr_ctx; in v4l2_m2m_suspend() local
554 curr_ctx = m2m_dev->curr_ctx; in v4l2_m2m_suspend()
557 if (curr_ctx) in v4l2_m2m_suspend()
558 wait_event(curr_ctx->finished, in v4l2_m2m_suspend()
559 !(curr_ctx->job_flags & TRANS_RUNNING)); in v4l2_m2m_suspend()
902 if (m2m_dev->curr_ctx == m2m_ctx) { in v4l2_m2m_streamoff()
903 m2m_dev->curr_ctx = NULL; in v4l2_m2m_streamoff()
1208 m2m_dev->curr_ctx = NULL; in v4l2_m2m_init()