/drivers/media/v4l2-core/ |
D | v4l2-mem2mem.c | 114 static struct v4l2_m2m_queue_ctx *get_queue_ctx(struct v4l2_m2m_ctx *m2m_ctx, in get_queue_ctx() argument 118 return &m2m_ctx->out_q_ctx; in get_queue_ctx() 120 return &m2m_ctx->cap_q_ctx; in get_queue_ctx() 123 struct vb2_queue *v4l2_m2m_get_vq(struct v4l2_m2m_ctx *m2m_ctx, in v4l2_m2m_get_vq() argument 128 q_ctx = get_queue_ctx(m2m_ctx, type); in v4l2_m2m_get_vq() 297 struct v4l2_m2m_ctx *m2m_ctx) in __v4l2_m2m_try_queue() argument 302 dprintk("Trying to schedule a job for m2m_ctx: %p\n", m2m_ctx); in __v4l2_m2m_try_queue() 304 if (!m2m_ctx->out_q_ctx.q.streaming in __v4l2_m2m_try_queue() 305 || !m2m_ctx->cap_q_ctx.q.streaming) { in __v4l2_m2m_try_queue() 313 if (m2m_ctx->job_flags & TRANS_ABORT) { in __v4l2_m2m_try_queue() [all …]
|
/drivers/media/platform/amphion/ |
D | vpu_v4l2.c | 70 if (inst->fh.m2m_ctx) { in vpu_v4l2_set_error() 71 vb2_queue_error(v4l2_m2m_get_src_vq(inst->fh.m2m_ctx)); in vpu_v4l2_set_error() 72 vb2_queue_error(v4l2_m2m_get_dst_vq(inst->fh.m2m_ctx)); in vpu_v4l2_set_error() 107 if (!inst || !inst->fh.m2m_ctx) in vpu_set_last_buffer_dequeued() 110 q = v4l2_m2m_get_dst_vq(inst->fh.m2m_ctx); in vpu_set_last_buffer_dequeued() 128 if (!inst->fh.m2m_ctx) in vpu_is_source_empty() 130 v4l2_m2m_for_each_src_buf(inst->fh.m2m_ctx, buf) { in vpu_is_source_empty() 200 if (!inst || !inst->fh.m2m_ctx) in vpu_process_output_buffer() 206 v4l2_m2m_for_each_src_buf(inst->fh.m2m_ctx, buf) { in vpu_process_output_buffer() 226 if (!inst || !inst->fh.m2m_ctx) in vpu_process_capture_buffer() [all …]
|
/drivers/media/platform/samsung/exynos-gsc/ |
D | gsc-m2m.c | 67 while (v4l2_m2m_num_src_bufs_ready(ctx->m2m_ctx) > 0) { in __gsc_m2m_cleanup_queue() 68 src_vb = v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in __gsc_m2m_cleanup_queue() 72 while (v4l2_m2m_num_dst_bufs_ready(ctx->m2m_ctx) > 0) { in __gsc_m2m_cleanup_queue() 73 dst_vb = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in __gsc_m2m_cleanup_queue() 93 if (!ctx || !ctx->m2m_ctx) in gsc_m2m_job_finish() 96 src_vb = v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in gsc_m2m_job_finish() 97 dst_vb = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in gsc_m2m_job_finish() 111 ctx->m2m_ctx); in gsc_m2m_job_finish() 129 src_vb = v4l2_m2m_next_src_buf(ctx->m2m_ctx); in gsc_get_bufs() 134 dst_vb = v4l2_m2m_next_dst_buf(ctx->m2m_ctx); in gsc_get_bufs() [all …]
|
/drivers/media/platform/mediatek/vcodec/ |
D | mtk_vcodec_dec_stateful.c | 137 v4l2_m2m_buf_queue(ctx->m2m_ctx, vb); in get_free_buffer() 153 v4l2_m2m_buf_queue(ctx->m2m_ctx, vb); in get_free_buffer() 288 src_buf = v4l2_m2m_next_src_buf(ctx->m2m_ctx); in mtk_vdec_worker() 290 v4l2_m2m_job_finish(dev->m2m_dev_dec, ctx->m2m_ctx); in mtk_vdec_worker() 295 dst_buf = v4l2_m2m_next_dst_buf(ctx->m2m_ctx); in mtk_vdec_worker() 297 v4l2_m2m_job_finish(dev->m2m_dev_dec, ctx->m2m_ctx); in mtk_vdec_worker() 325 src_buf = v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker() 328 dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker() 341 v4l2_m2m_job_finish(dev->m2m_dev_dec, ctx->m2m_ctx); in mtk_vdec_worker() 352 v4l2_m2m_job_finish(dev->m2m_dev_dec, ctx->m2m_ctx); in mtk_vdec_worker() [all …]
|
D | mtk_vcodec_enc.c | 436 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); in vidioc_venc_s_fmt_cap() 491 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); in vidioc_venc_s_fmt_out() 544 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); in vidioc_venc_g_fmt() 678 return v4l2_m2m_qbuf(file, ctx->m2m_ctx, buf); in vidioc_venc_qbuf() 693 ret = v4l2_m2m_dqbuf(file, ctx->m2m_ctx, buf); in vidioc_venc_dqbuf() 742 dst_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in vidioc_encoder_cmd() 746 src_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in vidioc_encoder_cmd() 757 v4l2_m2m_buf_queue(ctx->m2m_ctx, &ctx->empty_flush_buf.vb); in vidioc_encoder_cmd() 758 v4l2_m2m_try_schedule(ctx->m2m_ctx); in vidioc_encoder_cmd() 877 v4l2_m2m_buf_queue(ctx->m2m_ctx, to_vb2_v4l2_buffer(vb)); in vb2ops_venc_buf_queue() [all …]
|
D | mtk_vcodec_dec_stateless.c | 140 vb2_dst = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_vdec_stateless_cap_to_disp() 160 vb2_v4l2 = v4l2_m2m_next_dst_buf(ctx->m2m_ctx); in vdec_get_cap_buffer() 208 vb2_v4l2_src = v4l2_m2m_next_src_buf(ctx->m2m_ctx); in mtk_vdec_worker() 210 v4l2_m2m_job_finish(dev->m2m_dev_dec, ctx->m2m_ctx); in mtk_vdec_worker() 227 v4l2_m2m_job_finish(dev->m2m_dev_dec, ctx->m2m_ctx); in mtk_vdec_worker() 257 v4l2_m2m_buf_done_and_job_finish(dev->m2m_dev_dec, ctx->m2m_ctx, state); in mtk_vdec_worker() 262 v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker() 265 v4l2_m2m_job_finish(dev->m2m_dev_dec, ctx->m2m_ctx); in mtk_vdec_worker() 277 v4l2_m2m_buf_queue(ctx->m2m_ctx, vb2_v4l2); in vb2ops_vdec_stateless_buf_queue() 427 src_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in mtk_init_vdec_params()
|
/drivers/staging/media/imx/ |
D | imx-media-csc-scaler.c | 96 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in ipu_ic_pp_complete() 97 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in ipu_ic_pp_complete() 109 v4l2_m2m_job_finish(priv->m2m_dev, ctx->fh.m2m_ctx); in ipu_ic_pp_complete() 121 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in device_run() 122 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in device_run() 142 v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in device_run() 143 v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in device_run() 146 v4l2_m2m_job_finish(priv->m2m_dev, ctx->fh.m2m_ctx); in device_run() 248 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in ipu_csc_scaler_s_fmt() 485 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, to_vb2_v4l2_buffer(vb)); in ipu_csc_scaler_buf_queue() [all …]
|
/drivers/media/test-drivers/vicodec/ |
D | vicodec-core.c | 284 v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in device_process() 409 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in device_run() 410 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in device_run() 426 v4l2_m2m_is_last_draining_src_buf(ctx->fh.m2m_ctx, src_buf)) { in device_run() 429 v4l2_m2m_mark_stopped(ctx->fh.m2m_ctx); in device_run() 433 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in device_run() 437 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in device_run() 453 v4l2_m2m_job_finish(dev->stateful_enc.m2m_dev, ctx->fh.m2m_ctx); in device_run() 456 ctx->fh.m2m_ctx); in device_run() 458 v4l2_m2m_job_finish(dev->stateful_dec.m2m_dev, ctx->fh.m2m_ctx); in device_run() [all …]
|
/drivers/media/platform/mediatek/mdp3/ |
D | mtk-mdp3-m2m.c | 48 v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in mdp_m2m_process_done() 50 v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mdp_m2m_process_done() 58 v4l2_m2m_job_finish(ctx->mdp_dev->m2m_dev, ctx->m2m_ctx); in mdp_m2m_process_done() 83 src_vb = v4l2_m2m_next_src_buf(ctx->m2m_ctx); in mdp_m2m_device_run() 87 dst_vb = v4l2_m2m_next_dst_buf(ctx->m2m_ctx); in mdp_m2m_device_run() 132 vq = v4l2_m2m_get_src_vq(ctx->m2m_ctx); in mdp_m2m_start_streaming() 134 vq = v4l2_m2m_get_dst_vq(ctx->m2m_ctx); in mdp_m2m_start_streaming() 174 v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in mdp_m2m_buf_remove() 177 v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mdp_m2m_buf_remove() 254 v4l2_m2m_buf_queue(ctx->m2m_ctx, to_vb2_v4l2_buffer(vb)); in mdp_m2m_buf_queue() [all …]
|
/drivers/media/platform/verisilicon/ |
D | hantro_v4l2.c | 442 ctx->fh.m2m_ctx->out_q_ctx.q.requires_requests = false; in hantro_update_requires_request() 449 ctx->fh.m2m_ctx->out_q_ctx.q.requires_requests = true; in hantro_update_requires_request() 461 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in hantro_update_requires_hold_capture_buf() 486 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in hantro_set_fmt_out() 508 peer_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in hantro_set_fmt_out() 558 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in hantro_set_fmt_cap() 571 peer_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in hantro_set_fmt_cap() 670 vq = v4l2_m2m_get_src_vq(ctx->fh.m2m_ctx); in vidioc_s_selection() 714 if (!vb2_is_streaming(v4l2_m2m_get_src_vq(ctx->fh.m2m_ctx)) || in vidioc_encoder_cmd() 715 !vb2_is_streaming(v4l2_m2m_get_dst_vq(ctx->fh.m2m_ctx))) in vidioc_encoder_cmd() [all …]
|
/drivers/media/platform/mediatek/jpeg/ |
D | mtk_jpeg_core.c | 312 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in mtk_jpeg_g_fmt_vid_mplane() 418 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in mtk_jpeg_s_fmt_mplane() 767 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, to_vb2_v4l2_buffer(vb)); in mtk_jpeg_enc_buf_queue() 798 ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE); in mtk_jpeg_dec_buf_queue() 806 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, to_vb2_v4l2_buffer(vb)); in mtk_jpeg_dec_buf_queue() 813 return v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in mtk_jpeg_buf_remove() 815 return v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in mtk_jpeg_buf_remove() 841 vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in mtk_jpeg_dec_stop_streaming() 917 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in mtk_jpeg_enc_device_run() 918 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in mtk_jpeg_enc_device_run() [all …]
|
/drivers/media/platform/st/stm32/dma2d/ |
D | dma2d.c | 154 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in dma2d_buf_queue() 173 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in dma2d_stop_streaming() 175 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in dma2d_stop_streaming() 297 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, &queue_init); in dma2d_open() 298 if (IS_ERR(ctx->fh.m2m_ctx)) { in dma2d_open() 299 ret = PTR_ERR(ctx->fh.m2m_ctx); in dma2d_open() 326 v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); in dma2d_release() 361 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_g_fmt() 438 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_s_fmt() 481 src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in device_run() [all …]
|
/drivers/media/platform/st/sti/hva/ |
D | hva-v4l2.c | 464 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in hva_s_fmt_stream() 495 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in hva_s_fmt_frame() 571 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, buf->type); in hva_qbuf() 584 return v4l2_m2m_qbuf(file, ctx->fh.m2m_ctx, buf); in hva_qbuf() 821 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in hva_run_work() 822 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in hva_run_work() 852 v4l2_m2m_job_finish(ctx->hva_dev->m2m_dev, ctx->fh.m2m_ctx); in hva_run_work() 878 if (!v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx)) { in hva_job_ready() 884 if (!v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx)) { in hva_job_ready() 990 if (ctx->fh.m2m_ctx) in hva_buf_queue() [all …]
|
/drivers/media/platform/nxp/imx-jpeg/ |
D | mxc-jpeg.c | 565 if (v4l2_m2m_is_last_draining_src_buf(ctx->fh.m2m_ctx, src_buf)) { in mxc_jpeg_check_and_set_last_buffer() 567 v4l2_m2m_mark_stopped(ctx->fh.m2m_ctx); in mxc_jpeg_check_and_set_last_buffer() 608 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq() 609 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq() 672 v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq() 673 v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq() 677 v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq() 1019 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in mxc_jpeg_device_run() 1020 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in mxc_jpeg_device_run() 1046 v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in mxc_jpeg_device_run() [all …]
|
/drivers/media/platform/sunxi/sun8i-rotate/ |
D | sun8i_rotate.c | 70 src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in rotate_device_run() 71 dst = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in rotate_device_run() 160 buffer = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in rotate_irq() 163 buffer = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in rotate_irq() 166 v4l2_m2m_job_finish(ctx->dev->m2m_dev, ctx->fh.m2m_ctx); in rotate_irq() 350 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in rotate_s_fmt_vid_cap() 370 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in rotate_s_fmt_vid_out() 378 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); in rotate_s_fmt_vid_out() 471 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in rotate_buf_queue() 481 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in rotate_queue_cleanup() [all …]
|
/drivers/media/platform/qcom/venus/ |
D | helpers.c | 437 struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; in return_buf_error() local 440 v4l2_m2m_src_buf_remove_by_buf(m2m_ctx, vbuf); in return_buf_error() 442 v4l2_m2m_dst_buf_remove_by_buf(m2m_ctx, vbuf); in return_buf_error() 1415 struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; in venus_helper_find_buf() local 1418 return v4l2_m2m_src_buf_remove_by_idx(m2m_ctx, idx); in venus_helper_find_buf() 1420 return v4l2_m2m_dst_buf_remove_by_idx(m2m_ctx, idx); in venus_helper_find_buf() 1498 struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; in venus_helper_vb2_buf_queue() local 1501 v4l2_m2m_buf_queue(m2m_ctx, vbuf); in venus_helper_vb2_buf_queue() 1533 while ((buf = v4l2_m2m_src_buf_remove(inst->m2m_ctx))) in venus_helper_buffers_done() 1536 while ((buf = v4l2_m2m_dst_buf_remove(inst->m2m_ctx))) in venus_helper_buffers_done() [all …]
|
/drivers/media/platform/nxp/ |
D | mx2_emmaprp.c | 243 v4l2_m2m_job_finish(pcdev->m2m_dev, ctx->fh.m2m_ctx); in emmaprp_job_abort() 278 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in emmaprp_device_run() 279 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in emmaprp_device_run() 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() 432 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_g_fmt() 537 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_s_fmt() 673 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in emmaprp_buf_queue() 738 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(pcdev->m2m_dev, ctx, &queue_init); in emmaprp_open() [all …]
|
/drivers/media/platform/sunxi/sun8i-di/ |
D | sun8i-di.c | 70 src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in deinterlace_device_run() 71 dst = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in deinterlace_device_run() 184 return v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) >= 1 && in deinterlace_job_ready() 185 v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx) >= 2; in deinterlace_job_ready() 228 dst = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in deinterlace_irq() 234 src = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in deinterlace_irq() 239 v4l2_m2m_job_finish(ctx->dev->m2m_dev, ctx->fh.m2m_ctx); in deinterlace_irq() 454 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in deinterlace_s_fmt_vid_cap() 474 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in deinterlace_s_fmt_vid_out() 563 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in deinterlace_buf_queue() [all …]
|
/drivers/media/platform/ |
D | m2m-deinterlace.c | 153 if (v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) > 0 && in deinterlace_job_ready() 154 v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx) > 0 && in deinterlace_job_ready() 174 v4l2_m2m_job_finish(pcdev->m2m_dev, ctx->fh.m2m_ctx); in deinterlace_job_abort() 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() 216 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in deinterlace_issue_dma() 217 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in deinterlace_issue_dma() 486 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_g_fmt() 583 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_s_fmt() [all …]
|
/drivers/media/platform/renesas/ |
D | rcar_jpu.c | 834 if (!v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type)) in jpu_try_fmt() 844 struct v4l2_m2m_ctx *m2m_ctx = ctx->fh.m2m_ctx; in jpu_s_fmt() local 849 vq = v4l2_m2m_get_vq(m2m_ctx, f->type); in jpu_s_fmt() 875 if (!v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type)) in jpu_g_fmt() 937 return v4l2_m2m_streamon(file, ctx->fh.m2m_ctx, type); in jpu_streamon() 1109 if (ctx->fh.m2m_ctx) in jpu_buf_queue() 1110 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in jpu_buf_queue() 1162 vb = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in jpu_stop_streaming() 1164 vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in jpu_stop_streaming() 1248 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(jpu->m2m_dev, ctx, jpu_queue_init); in jpu_open() [all …]
|
/drivers/staging/media/rkvdec/ |
D | rkvdec.c | 318 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in rkvdec_s_capture_fmt() 335 struct v4l2_m2m_ctx *m2m_ctx = ctx->fh.m2m_ctx; in rkvdec_s_output_fmt() local 346 vq = v4l2_m2m_get_vq(m2m_ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE); in rkvdec_s_output_fmt() 357 peer_vq = v4l2_m2m_get_vq(m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE); in rkvdec_s_output_fmt() 534 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in rkvdec_buf_queue() 582 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in rkvdec_queue_cleanup() 584 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in rkvdec_queue_cleanup() 648 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in rkvdec_job_finish_no_pm() 649 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in rkvdec_job_finish_no_pm() 653 v4l2_m2m_buf_done_and_job_finish(ctx->dev->m2m_dev, ctx->fh.m2m_ctx, in rkvdec_job_finish_no_pm() [all …]
|
/drivers/media/platform/samsung/exynos4-is/ |
D | fimc-m2m.c | 43 if (!ctx || !ctx->fh.m2m_ctx) in fimc_m2m_job_finish() 46 src_vb = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in fimc_m2m_job_finish() 47 dst_vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in fimc_m2m_job_finish() 55 ctx->fh.m2m_ctx); in fimc_m2m_job_finish() 114 src_vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in fimc_device_run() 119 dst_vb = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in fimc_device_run() 212 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in fimc_buf_queue() 352 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in fimc_m2m_s_fmt_mplane() 648 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(fimc->m2m.m2m_dev, ctx, queue_init); in fimc_m2m_open() 649 if (IS_ERR(ctx->fh.m2m_ctx)) { in fimc_m2m_open() [all …]
|
/drivers/media/platform/amlogic/meson-ge2d/ |
D | ge2d.c | 282 ctx->in.buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in device_run() 283 ctx->out.buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in device_run() 301 src = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in ge2d_isr() 302 dst = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in ge2d_isr() 313 v4l2_m2m_job_finish(ge2d->m2m_dev, ctx->fh.m2m_ctx); in ge2d_isr() 357 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in ge2d_buf_queue() 379 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in ge2d_stop_streaming() 381 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in ge2d_stop_streaming() 608 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_s_fmt_cap() 635 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_g_fmt() [all …]
|
/drivers/media/platform/nvidia/tegra-vde/ |
D | v4l2.c | 286 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in tegra_buf_queue() 309 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in tegra_stop_streaming() 311 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in tegra_stop_streaming() 482 v4l2_m2m_buf_done_and_job_finish(ctx->vde->m2m, ctx->fh.m2m_ctx, in tegra_job_finish() 581 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in tegra_s_decoded_fmt() 662 struct v4l2_m2m_ctx *m2m_ctx = ctx->fh.m2m_ctx; in tegra_s_coded_fmt() local 673 vq = v4l2_m2m_get_vq(m2m_ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE); in tegra_s_coded_fmt() 684 peer_vq = v4l2_m2m_get_vq(m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE); in tegra_s_coded_fmt() 802 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(ctx->vde->m2m, in tegra_init_m2m() 804 if (IS_ERR(ctx->fh.m2m_ctx)) in tegra_init_m2m() [all …]
|
/drivers/media/platform/samsung/s5p-g2d/ |
D | g2d.c | 129 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in g2d_buf_queue() 251 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, &queue_init); in g2d_open() 252 if (IS_ERR(ctx->fh.m2m_ctx)) { in g2d_open() 253 ret = PTR_ERR(ctx->fh.m2m_ctx); in g2d_open() 280 v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); in g2d_release() 314 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_g_fmt() 374 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_s_fmt() 511 src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in device_run() 512 dst = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in device_run() 553 src = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in g2d_isr() [all …]
|