Home
last modified time | relevance | path

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

/drivers/gpu/drm/imx/dcss/
Ddcss-ctxld.c258 int curr_ctx = ctxld->current_ctx; in dcss_ctxld_enable_locked() local
270 sb_hp_cnt = ctxld->ctx_size[curr_ctx][CTX_SB_HP]; in dcss_ctxld_enable_locked()
271 sb_lp_cnt = ctxld->ctx_size[curr_ctx][CTX_SB_LP]; in dcss_ctxld_enable_locked()
272 db_cnt = ctxld->ctx_size[curr_ctx][CTX_DB]; in dcss_ctxld_enable_locked()
276 ctxld->sb_lp[curr_ctx] != ctxld->sb_hp[curr_ctx] + sb_hp_cnt) { in dcss_ctxld_enable_locked()
279 sb_lp_adjusted = ctxld->sb_hp[curr_ctx] + sb_hp_cnt; in dcss_ctxld_enable_locked()
281 memcpy(sb_lp_adjusted, ctxld->sb_lp[curr_ctx], in dcss_ctxld_enable_locked()
285 db_base = db_cnt ? ctxld->db_paddr[curr_ctx] : 0; in dcss_ctxld_enable_locked()
296 sb_base = sb_count ? ctxld->sb_paddr[curr_ctx] : 0; in dcss_ctxld_enable_locked()
343 int curr_ctx = ctxld->current_ctx; in dcss_ctxld_write_irqsafe() local
[all …]
/drivers/media/platform/chips-media/
Dimx-vdoa.c78 struct vdoa_ctx *curr_ctx; member
103 struct vdoa_ctx *curr_ctx; in vdoa_irq_handler() local
109 curr_ctx = vdoa->curr_ctx; in vdoa_irq_handler()
110 if (!curr_ctx) { in vdoa_irq_handler()
124 curr_ctx->completed_job++; in vdoa_irq_handler()
125 complete(&curr_ctx->completion); in vdoa_irq_handler()
154 if (vdoa->curr_ctx) in vdoa_device_run()
155 vdoa_wait_for_completion(vdoa->curr_ctx); in vdoa_device_run()
157 vdoa->curr_ctx = ctx; in vdoa_device_run()
225 if (vdoa->curr_ctx == ctx) { in vdoa_context_destroy()
[all …]
/drivers/media/v4l2-core/
Dv4l2-mem2mem.c95 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()
472 if (!m2m_dev->curr_ctx || m2m_dev->curr_ctx != m2m_ctx) { in _v4l2_m2m_job_finish()
477 list_del(&m2m_dev->curr_ctx->queue); in _v4l2_m2m_job_finish()
[all …]
/drivers/media/platform/mediatek/vcodec/
Dmtk_vcodec_util.c102 subdev_dev->curr_ctx = ctx; in mtk_vcodec_set_curr_ctx()
104 vdec_dev->curr_ctx = ctx; in mtk_vcodec_set_curr_ctx()
125 ctx = subdev_dev->curr_ctx; in mtk_vcodec_get_curr_ctx()
127 ctx = vdec_dev->curr_ctx; in mtk_vcodec_get_curr_ctx()
Dvenc_drv_if.c68 ctx->dev->curr_ctx = ctx; in venc_if_encode()
77 ctx->dev->curr_ctx = NULL; in venc_if_encode()
Dmtk_vcodec_dec_hw.h51 struct mtk_vcodec_ctx *curr_ctx; member
Dmtk_vcodec_drv.h485 struct mtk_vcodec_ctx *curr_ctx; member
Dmtk_vcodec_enc_drv.c94 ctx = dev->curr_ctx; in mtk_vcodec_enc_irq_handler()
/drivers/media/platform/samsung/s5p-jpeg/
Djpeg-core.c2641 struct s5p_jpeg_ctx *curr_ctx; in s5p_jpeg_irq() local
2651 curr_ctx = v4l2_m2m_get_curr_priv(jpeg->m2m_dev); in s5p_jpeg_irq()
2653 src_buf = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in s5p_jpeg_irq()
2654 dst_buf = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in s5p_jpeg_irq()
2656 if (curr_ctx->mode == S5P_JPEG_ENCODE) in s5p_jpeg_irq()
2660 if (curr_ctx->mode == S5P_JPEG_DECODE) in s5p_jpeg_irq()
2683 if (curr_ctx->mode == S5P_JPEG_ENCODE) in s5p_jpeg_irq()
2687 curr_ctx->subsampling = s5p_jpeg_get_subsampling_mode(jpeg->regs); in s5p_jpeg_irq()
2692 v4l2_m2m_job_finish(jpeg->m2m_dev, curr_ctx->fh.m2m_ctx); in s5p_jpeg_irq()
2701 struct s5p_jpeg_ctx *curr_ctx; in exynos4_jpeg_irq() local
[all …]
/drivers/media/test-drivers/
Dvim2m.c616 struct vim2m_ctx *curr_ctx; in device_work() local
620 curr_ctx = container_of(w, struct vim2m_ctx, work_run.work); in device_work()
622 vim2m_dev = curr_ctx->dev; in device_work()
624 src_vb = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in device_work()
625 dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in device_work()
627 curr_ctx->num_processed++; in device_work()
632 if (curr_ctx->num_processed == curr_ctx->translen in device_work()
633 || curr_ctx->aborting) { in device_work()
634 dprintk(curr_ctx->dev, 2, "Finishing capture buffer fill\n"); in device_work()
635 curr_ctx->num_processed = 0; in device_work()
[all …]
/drivers/media/platform/nxp/
Dmx2_emmaprp.c331 struct emmaprp_ctx *curr_ctx; in emmaprp_irq() local
341 curr_ctx = v4l2_m2m_get_curr_priv(pcdev->m2m_dev); in emmaprp_irq()
342 if (curr_ctx == NULL) { in emmaprp_irq()
347 if (!curr_ctx->aborting) { in emmaprp_irq()
353 src_vb = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in emmaprp_irq()
354 dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in emmaprp_irq()
371 v4l2_m2m_job_finish(pcdev->m2m_dev, curr_ctx->fh.m2m_ctx); in emmaprp_irq()
Dimx-pxp.c941 struct pxp_ctx *curr_ctx; in pxp_job_finish() local
945 curr_ctx = v4l2_m2m_get_curr_priv(dev->m2m_dev); in pxp_job_finish()
947 if (curr_ctx == NULL) { in pxp_job_finish()
952 src_vb = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in pxp_job_finish()
953 dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in pxp_job_finish()
960 dprintk(curr_ctx->dev, "Finishing transaction\n"); in pxp_job_finish()
961 v4l2_m2m_job_finish(dev->m2m_dev, curr_ctx->fh.m2m_ctx); in pxp_job_finish()
/drivers/media/platform/samsung/s5p-mfc/
Ds5p_mfc_cmd_v6.c74 dev->curr_ctx = ctx->num; in s5p_mfc_open_inst_cmd_v6()
143 dev->curr_ctx = ctx->num; in s5p_mfc_close_inst_cmd_v6()
Ds5p_mfc_cmd_v5.c79 dev->curr_ctx = ctx->num; in s5p_mfc_open_inst_cmd_v5()
137 dev->curr_ctx = ctx->num; in s5p_mfc_close_inst_cmd_v5()
Ds5p_mfc_opr_v5.c1156 dev->curr_ctx = ctx->num; in s5p_mfc_run_res_change()
1168 dev->curr_ctx = ctx->num; in s5p_mfc_run_dec_frame()
1184 dev->curr_ctx = ctx->num; in s5p_mfc_run_dec_frame()
1241 dev->curr_ctx = ctx->num; in s5p_mfc_run_enc_frame()
1262 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_dec()
1278 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_enc()
1306 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_dec_buffers()
Ds5p_mfc_opr_v6.c1664 dev->curr_ctx = ctx->num; in s5p_mfc_set_flush()
1787 dev->curr_ctx = ctx->num; in s5p_mfc_run_dec_last_frames()
1800 dev->curr_ctx = ctx->num; in s5p_mfc_run_dec_frame()
1819 dev->curr_ctx = ctx->num; in s5p_mfc_run_dec_frame()
1881 dev->curr_ctx = ctx->num; in s5p_mfc_run_enc_frame()
1899 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_dec()
1914 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_enc()
1933 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_dec_buffers()
1947 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_enc_buffers()
Ds5p_mfc.c96 ctx = dev->curr_ctx; in s5p_mfc_get_new_ctx()
99 if (ctx == dev->curr_ctx) { in s5p_mfc_get_new_ctx()
641 ctx = dev->ctx[dev->curr_ctx]; in s5p_mfc_irq()
960 if (dev->curr_ctx == ctx->num) in s5p_mfc_release()
Ds5p_mfc_common.h331 int curr_ctx; member
Ds5p_mfc_enc.c2511 (dev->curr_ctx == ctx->num) && dev->hw_lock) { in s5p_mfc_start_streaming()
2540 dev->curr_ctx == ctx->num && dev->hw_lock) { in s5p_mfc_stop_streaming()
Ds5p_mfc_dec.c1053 dev->curr_ctx == ctx->num && dev->hw_lock) { in s5p_mfc_stop_streaming()
/drivers/media/platform/renesas/
Drcar_jpu.c1496 struct jpu_ctx *curr_ctx; in jpu_irq_handler() local
1518 curr_ctx = v4l2_m2m_get_curr_priv(jpu->m2m_dev); in jpu_irq_handler()
1519 if (!curr_ctx) { in jpu_irq_handler()
1525 src_buf = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in jpu_irq_handler()
1526 dst_buf = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in jpu_irq_handler()
1529 if (curr_ctx->encoder) { in jpu_irq_handler()
1564 v4l2_m2m_job_finish(jpu->m2m_dev, curr_ctx->fh.m2m_ctx); in jpu_irq_handler()
/drivers/media/platform/
Dm2m-deinterlace.c179 struct deinterlace_ctx *curr_ctx = data; in dma_callback() local
180 struct deinterlace_dev *pcdev = curr_ctx->dev; in dma_callback()
185 src_vb = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in dma_callback()
186 dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in dma_callback()
197 v4l2_m2m_job_finish(pcdev->m2m_dev, curr_ctx->fh.m2m_ctx); in dma_callback()
/drivers/media/platform/nxp/dw100/
Ddw100.c1070 struct dw100_ctx *curr_ctx; in dw100_job_finish() local
1074 curr_ctx = v4l2_m2m_get_curr_priv(dw_dev->m2m_dev); in dw100_job_finish()
1076 if (!curr_ctx) { in dw100_job_finish()
1082 src_vb = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in dw100_job_finish()
1083 dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in dw100_job_finish()
1096 v4l2_m2m_job_finish(dw_dev->m2m_dev, curr_ctx->fh.m2m_ctx); in dw100_job_finish()
/drivers/media/platform/samsung/exynos-gsc/
Dgsc-m2m.c29 struct gsc_ctx *curr_ctx; in gsc_m2m_ctx_stop_req() local
33 curr_ctx = v4l2_m2m_get_curr_priv(gsc->m2m.m2m_dev); in gsc_m2m_ctx_stop_req()
34 if (!gsc_m2m_pending(gsc) || (curr_ctx != ctx)) in gsc_m2m_ctx_stop_req()
/drivers/media/platform/st/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()