Searched refs:curr_ctx (Results 1 – 16 of 16) sorted by relevance
/drivers/media/v4l2-core/ |
D | v4l2-mem2mem.c | 62 struct v4l2_m2m_ctx *curr_ctx; member 153 if (m2m_dev->curr_ctx) in v4l2_m2m_get_curr_priv() 154 ret = m2m_dev->curr_ctx->priv; in v4l2_m2m_get_curr_priv() 171 if (NULL != m2m_dev->curr_ctx) { in v4l2_m2m_try_run() 183 m2m_dev->curr_ctx = list_first_entry(&m2m_dev->job_queue, in v4l2_m2m_try_run() 185 m2m_dev->curr_ctx->job_flags |= TRANS_RUNNING; in v4l2_m2m_try_run() 188 m2m_dev->m2m_ops->device_run(m2m_dev->curr_ctx->priv); in v4l2_m2m_try_run() 332 if (!m2m_dev->curr_ctx || m2m_dev->curr_ctx != m2m_ctx) { in v4l2_m2m_job_finish() 338 list_del(&m2m_dev->curr_ctx->queue); in v4l2_m2m_job_finish() 339 m2m_dev->curr_ctx->job_flags &= ~(TRANS_QUEUED | TRANS_RUNNING); in v4l2_m2m_job_finish() [all …]
|
/drivers/media/platform/ |
D | vim2m.c | 391 struct vim2m_ctx *curr_ctx; in device_isr() local 395 curr_ctx = v4l2_m2m_get_curr_priv(vim2m_dev->m2m_dev); in device_isr() 397 if (NULL == curr_ctx) { in device_isr() 402 src_vb = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in device_isr() 403 dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in device_isr() 405 curr_ctx->num_processed++; in device_isr() 412 if (curr_ctx->num_processed == curr_ctx->translen in device_isr() 413 || curr_ctx->aborting) { in device_isr() 414 dprintk(curr_ctx->dev, "Finishing transaction\n"); in device_isr() 415 curr_ctx->num_processed = 0; in device_isr() [all …]
|
D | mx2_emmaprp.c | 353 struct emmaprp_ctx *curr_ctx; in emmaprp_irq() local 363 curr_ctx = v4l2_m2m_get_curr_priv(pcdev->m2m_dev); in emmaprp_irq() 364 if (curr_ctx == NULL) { in emmaprp_irq() 369 if (!curr_ctx->aborting) { in emmaprp_irq() 375 src_vb = v4l2_m2m_src_buf_remove(curr_ctx->m2m_ctx); in emmaprp_irq() 376 dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->m2m_ctx); in emmaprp_irq() 393 v4l2_m2m_job_finish(pcdev->m2m_dev, curr_ctx->m2m_ctx); in emmaprp_irq()
|
D | rcar_jpu.c | 1523 struct jpu_ctx *curr_ctx; in jpu_irq_handler() local 1545 curr_ctx = v4l2_m2m_get_curr_priv(jpu->m2m_dev); in jpu_irq_handler() 1546 if (!curr_ctx) { in jpu_irq_handler() 1552 src_buf = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in jpu_irq_handler() 1553 dst_buf = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in jpu_irq_handler() 1556 if (curr_ctx->encoder) { in jpu_irq_handler() 1594 v4l2_m2m_job_finish(jpu->m2m_dev, curr_ctx->fh.m2m_ctx); in jpu_irq_handler()
|
D | m2m-deinterlace.c | 201 struct deinterlace_ctx *curr_ctx = data; in dma_callback() local 202 struct deinterlace_dev *pcdev = curr_ctx->dev; in dma_callback() 207 src_vb = v4l2_m2m_src_buf_remove(curr_ctx->m2m_ctx); in dma_callback() 208 dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->m2m_ctx); in dma_callback() 219 v4l2_m2m_job_finish(pcdev->m2m_dev, curr_ctx->m2m_ctx); in dma_callback()
|
/drivers/media/platform/s5p-jpeg/ |
D | jpeg-core.c | 2591 struct s5p_jpeg_ctx *curr_ctx; in s5p_jpeg_irq() local 2601 curr_ctx = v4l2_m2m_get_curr_priv(jpeg->m2m_dev); in s5p_jpeg_irq() 2603 src_buf = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in s5p_jpeg_irq() 2604 dst_buf = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in s5p_jpeg_irq() 2606 if (curr_ctx->mode == S5P_JPEG_ENCODE) in s5p_jpeg_irq() 2610 if (curr_ctx->mode == S5P_JPEG_DECODE) in s5p_jpeg_irq() 2633 if (curr_ctx->mode == S5P_JPEG_ENCODE) in s5p_jpeg_irq() 2636 v4l2_m2m_job_finish(jpeg->m2m_dev, curr_ctx->fh.m2m_ctx); in s5p_jpeg_irq() 2638 curr_ctx->subsampling = s5p_jpeg_get_subsampling_mode(jpeg->regs); in s5p_jpeg_irq() 2651 struct s5p_jpeg_ctx *curr_ctx; in exynos4_jpeg_irq() local [all …]
|
/drivers/media/platform/s5p-mfc/ |
D | s5p_mfc_cmd_v6.c | 78 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()
|
D | s5p_mfc_cmd_v5.c | 83 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()
|
D | s5p_mfc_opr_v6.c | 1394 dev->curr_ctx = ctx->num; in s5p_mfc_set_flush() 1517 mfc_debug(2, "Previous context: %d (bits %08lx)\n", dev->curr_ctx, in s5p_mfc_get_new_ctx() 1519 new_ctx = (dev->curr_ctx + 1) % MFC_NUM_CONTEXTS; in s5p_mfc_get_new_ctx() 1539 dev->curr_ctx = ctx->num; in s5p_mfc_run_dec_last_frames() 1553 dev->curr_ctx = ctx->num; in s5p_mfc_run_dec_frame() 1575 dev->curr_ctx = ctx->num; in s5p_mfc_run_dec_frame() 1644 dev->curr_ctx = ctx->num; in s5p_mfc_run_enc_frame() 1665 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_dec() 1684 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_enc() 1703 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_dec_buffers() [all …]
|
D | s5p_mfc_opr_v5.c | 1163 new_ctx = (dev->curr_ctx + 1) % MFC_NUM_CONTEXTS; in s5p_mfc_get_new_ctx() 1182 dev->curr_ctx = ctx->num; in s5p_mfc_run_res_change() 1195 dev->curr_ctx = ctx->num; in s5p_mfc_run_dec_frame() 1214 dev->curr_ctx = ctx->num; in s5p_mfc_run_dec_frame() 1274 dev->curr_ctx = ctx->num; in s5p_mfc_run_enc_frame() 1298 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_dec() 1317 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_enc() 1352 dev->curr_ctx = ctx->num; in s5p_mfc_run_init_dec_buffers()
|
D | s5p_mfc_common.h | 325 int curr_ctx; member
|
D | s5p_mfc.c | 617 ctx = dev->ctx[dev->curr_ctx]; in s5p_mfc_irq() 920 if (dev->curr_ctx == ctx->num) in s5p_mfc_release()
|
D | s5p_mfc_enc.c | 1956 (dev->curr_ctx == ctx->num) && dev->hw_lock) { in s5p_mfc_start_streaming() 1985 dev->curr_ctx == ctx->num && dev->hw_lock) { in s5p_mfc_stop_streaming()
|
D | s5p_mfc_dec.c | 1028 dev->curr_ctx == ctx->num && dev->hw_lock) { in s5p_mfc_stop_streaming()
|
/drivers/media/platform/exynos-gsc/ |
D | gsc-m2m.c | 33 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/ |
D | bdisp-v4l2.c | 210 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()
|