Home
last modified time | relevance | path

Searched refs:curr_ctx (Results 1 – 21 of 21) sorted by relevance

/drivers/media/platform/coda/
Dimx-vdoa.c85 struct vdoa_ctx *curr_ctx; member
111 struct vdoa_ctx *curr_ctx; in vdoa_irq_handler() local
117 curr_ctx = vdoa->curr_ctx; in vdoa_irq_handler()
118 if (!curr_ctx) { in vdoa_irq_handler()
132 curr_ctx->completed_job++; in vdoa_irq_handler()
133 complete(&curr_ctx->completion); in vdoa_irq_handler()
162 if (vdoa->curr_ctx) in vdoa_device_run()
163 vdoa_wait_for_completion(vdoa->curr_ctx); in vdoa_device_run()
165 vdoa->curr_ctx = ctx; in vdoa_device_run()
233 if (vdoa->curr_ctx == ctx) { in vdoa_context_destroy()
[all …]
/drivers/media/v4l2-core/
Dv4l2-mem2mem.c62 struct v4l2_m2m_ctx *curr_ctx; member
176 if (m2m_dev->curr_ctx) in v4l2_m2m_get_curr_priv()
177 ret = m2m_dev->curr_ctx->priv; in v4l2_m2m_get_curr_priv()
194 if (NULL != m2m_dev->curr_ctx) { in v4l2_m2m_try_run()
206 m2m_dev->curr_ctx = list_first_entry(&m2m_dev->job_queue, in v4l2_m2m_try_run()
208 m2m_dev->curr_ctx->job_flags |= TRANS_RUNNING; in v4l2_m2m_try_run()
211 m2m_dev->m2m_ops->device_run(m2m_dev->curr_ctx->priv); in v4l2_m2m_try_run()
323 if (!m2m_dev->curr_ctx || m2m_dev->curr_ctx != m2m_ctx) { in v4l2_m2m_job_finish()
329 list_del(&m2m_dev->curr_ctx->queue); in v4l2_m2m_job_finish()
330 m2m_dev->curr_ctx->job_flags &= ~(TRANS_QUEUED | TRANS_RUNNING); in v4l2_m2m_job_finish()
[all …]
/drivers/media/platform/
Dvim2m.c394 struct vim2m_ctx *curr_ctx; in device_isr() local
398 curr_ctx = v4l2_m2m_get_curr_priv(vim2m_dev->m2m_dev); in device_isr()
400 if (NULL == curr_ctx) { in device_isr()
405 src_vb = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in device_isr()
406 dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in device_isr()
408 curr_ctx->num_processed++; in device_isr()
415 if (curr_ctx->num_processed == curr_ctx->translen in device_isr()
416 || curr_ctx->aborting) { in device_isr()
417 dprintk(curr_ctx->dev, "Finishing transaction\n"); in device_isr()
418 curr_ctx->num_processed = 0; in device_isr()
[all …]
Dmx2_emmaprp.c352 struct emmaprp_ctx *curr_ctx; in emmaprp_irq() local
362 curr_ctx = v4l2_m2m_get_curr_priv(pcdev->m2m_dev); in emmaprp_irq()
363 if (curr_ctx == NULL) { in emmaprp_irq()
368 if (!curr_ctx->aborting) { in emmaprp_irq()
374 src_vb = v4l2_m2m_src_buf_remove(curr_ctx->m2m_ctx); in emmaprp_irq()
375 dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->m2m_ctx); in emmaprp_irq()
392 v4l2_m2m_job_finish(pcdev->m2m_dev, curr_ctx->m2m_ctx); in emmaprp_irq()
Drcar_jpu.c1525 struct jpu_ctx *curr_ctx; in jpu_irq_handler() local
1547 curr_ctx = v4l2_m2m_get_curr_priv(jpu->m2m_dev); in jpu_irq_handler()
1548 if (!curr_ctx) { in jpu_irq_handler()
1554 src_buf = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in jpu_irq_handler()
1555 dst_buf = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in jpu_irq_handler()
1558 if (curr_ctx->encoder) { in jpu_irq_handler()
1593 v4l2_m2m_job_finish(jpu->m2m_dev, curr_ctx->fh.m2m_ctx); in jpu_irq_handler()
Dm2m-deinterlace.c200 struct deinterlace_ctx *curr_ctx = data; in dma_callback() local
201 struct deinterlace_dev *pcdev = curr_ctx->dev; in dma_callback()
206 src_vb = v4l2_m2m_src_buf_remove(curr_ctx->m2m_ctx); in dma_callback()
207 dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->m2m_ctx); in dma_callback()
218 v4l2_m2m_job_finish(pcdev->m2m_dev, curr_ctx->m2m_ctx); in dma_callback()
/drivers/media/platform/s5p-jpeg/
Djpeg-core.c2698 struct s5p_jpeg_ctx *curr_ctx; in s5p_jpeg_irq() local
2708 curr_ctx = v4l2_m2m_get_curr_priv(jpeg->m2m_dev); in s5p_jpeg_irq()
2710 src_buf = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in s5p_jpeg_irq()
2711 dst_buf = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in s5p_jpeg_irq()
2713 if (curr_ctx->mode == S5P_JPEG_ENCODE) in s5p_jpeg_irq()
2717 if (curr_ctx->mode == S5P_JPEG_DECODE) in s5p_jpeg_irq()
2740 if (curr_ctx->mode == S5P_JPEG_ENCODE) in s5p_jpeg_irq()
2744 curr_ctx->subsampling = s5p_jpeg_get_subsampling_mode(jpeg->regs); in s5p_jpeg_irq()
2749 v4l2_m2m_job_finish(jpeg->m2m_dev, curr_ctx->fh.m2m_ctx); in s5p_jpeg_irq()
2758 struct s5p_jpeg_ctx *curr_ctx; in exynos4_jpeg_irq() local
[all …]
/drivers/media/platform/mtk-vcodec/
Dvenc_drv_if.c81 ctx->dev->curr_ctx = ctx; in venc_if_encode()
90 ctx->dev->curr_ctx = NULL; in venc_if_encode()
Dmtk_vcodec_util.c102 dev->curr_ctx = ctx; in mtk_vcodec_set_curr_ctx()
113 ctx = dev->curr_ctx; in mtk_vcodec_get_curr_ctx()
Dmtk_vcodec_enc_drv.c74 ctx = dev->curr_ctx; in mtk_vcodec_enc_irq_handler()
97 ctx = dev->curr_ctx; in mtk_vcodec_enc_lt_irq_handler()
Dmtk_vcodec_drv.h354 struct mtk_vcodec_ctx *curr_ctx; member
/drivers/media/platform/s5p-mfc/
Ds5p_mfc_cmd_v6.c78 dev->curr_ctx = ctx->num; in s5p_mfc_open_inst_cmd_v6()
138 dev->curr_ctx = ctx->num; in s5p_mfc_close_inst_cmd_v6()
Ds5p_mfc_cmd_v5.c83 dev->curr_ctx = ctx->num; in s5p_mfc_open_inst_cmd_v5()
141 dev->curr_ctx = ctx->num; in s5p_mfc_close_inst_cmd_v5()
Ds5p_mfc_opr_v5.c1159 dev->curr_ctx = ctx->num; in s5p_mfc_run_res_change()
1171 dev->curr_ctx = ctx->num; in s5p_mfc_run_dec_frame()
1187 dev->curr_ctx = ctx->num; in s5p_mfc_run_dec_frame()
1244 dev->curr_ctx = ctx->num; in s5p_mfc_run_enc_frame()
1265 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_dec()
1281 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_enc()
1309 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_dec_buffers()
Ds5p_mfc_opr_v6.c1392 dev->curr_ctx = ctx->num; in s5p_mfc_set_flush()
1513 dev->curr_ctx = ctx->num; in s5p_mfc_run_dec_last_frames()
1526 dev->curr_ctx = ctx->num; in s5p_mfc_run_dec_frame()
1545 dev->curr_ctx = ctx->num; in s5p_mfc_run_dec_frame()
1607 dev->curr_ctx = ctx->num; in s5p_mfc_run_enc_frame()
1625 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_dec()
1640 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_enc()
1659 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_dec_buffers()
1673 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_enc_buffers()
Ds5p_mfc.c100 ctx = dev->curr_ctx; in s5p_mfc_get_new_ctx()
103 if (ctx == dev->curr_ctx) { in s5p_mfc_get_new_ctx()
642 ctx = dev->ctx[dev->curr_ctx]; in s5p_mfc_irq()
961 if (dev->curr_ctx == ctx->num) in s5p_mfc_release()
Ds5p_mfc_common.h327 int curr_ctx; member
Ds5p_mfc_enc.c1944 (dev->curr_ctx == ctx->num) && dev->hw_lock) { in s5p_mfc_start_streaming()
1973 dev->curr_ctx == ctx->num && dev->hw_lock) { in s5p_mfc_stop_streaming()
Ds5p_mfc_dec.c1027 dev->curr_ctx == ctx->num && dev->hw_lock) { in s5p_mfc_stop_streaming()
/drivers/media/platform/exynos-gsc/
Dgsc-m2m.c33 struct gsc_ctx *curr_ctx; in gsc_m2m_ctx_stop_req() local
37 curr_ctx = v4l2_m2m_get_curr_priv(gsc->m2m.m2m_dev); in gsc_m2m_ctx_stop_req()
38 if (!gsc_m2m_pending(gsc) || (curr_ctx != ctx)) in gsc_m2m_ctx_stop_req()
/drivers/media/platform/sti/bdisp/
Dbdisp-v4l2.c210 struct bdisp_ctx *curr_ctx; in bdisp_ctx_stop_req() local
218 curr_ctx = v4l2_m2m_get_curr_priv(bdisp->m2m.m2m_dev); in bdisp_ctx_stop_req()
219 if (!test_bit(ST_M2M_RUNNING, &bdisp->state) || (curr_ctx != ctx)) in bdisp_ctx_stop_req()