Home
last modified time | relevance | path

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

1234

/linux-6.12.1/include/media/
Dv4l2-mem2mem.h157 struct vb2_queue *v4l2_m2m_get_vq(struct v4l2_m2m_ctx *m2m_ctx,
181 void v4l2_m2m_try_schedule(struct v4l2_m2m_ctx *m2m_ctx);
199 struct v4l2_m2m_ctx *m2m_ctx);
225 struct v4l2_m2m_ctx *m2m_ctx,
240 v4l2_m2m_clear_state(struct v4l2_m2m_ctx *m2m_ctx) in v4l2_m2m_clear_state() argument
242 m2m_ctx->next_buf_last = false; in v4l2_m2m_clear_state()
243 m2m_ctx->is_draining = false; in v4l2_m2m_clear_state()
244 m2m_ctx->has_stopped = false; in v4l2_m2m_clear_state()
253 v4l2_m2m_mark_stopped(struct v4l2_m2m_ctx *m2m_ctx) in v4l2_m2m_mark_stopped() argument
255 m2m_ctx->next_buf_last = false; in v4l2_m2m_mark_stopped()
[all …]
/linux-6.12.1/drivers/media/v4l2-core/
Dv4l2-mem2mem.c114 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 && !m2m_ctx->ignore_cap_streaming)) { in __v4l2_m2m_try_queue()
306 if (!m2m_ctx->ignore_cap_streaming) in __v4l2_m2m_try_queue()
[all …]
/linux-6.12.1/drivers/media/platform/chips-media/wave5/
Dwave5-vpu-dec.c174 static bool wave5_last_src_buffer_consumed(struct v4l2_m2m_ctx *m2m_ctx) in wave5_last_src_buffer_consumed() argument
178 if (!m2m_ctx->last_src_buf) in wave5_last_src_buffer_consumed()
181 vpu_buf = wave5_to_vpu_src_buf(m2m_ctx->last_src_buf); in wave5_last_src_buffer_consumed()
187 struct v4l2_m2m_ctx *m2m_ctx = inst->v4l2_fh.m2m_ctx; in wave5_handle_src_buffer() local
206 v4l2_m2m_for_each_src_buf_safe(m2m_ctx, buf, n) { in wave5_handle_src_buffer()
215 src_buf = v4l2_m2m_src_buf_remove(m2m_ctx); in wave5_handle_src_buffer()
221 if (src_buf == m2m_ctx->last_src_buf) { in wave5_handle_src_buffer()
224 m2m_ctx->last_src_buf = NULL; in wave5_handle_src_buffer()
306 struct v4l2_m2m_ctx *m2m_ctx = inst->v4l2_fh.m2m_ctx; in start_decode() local
313 src_buf = v4l2_m2m_src_buf_remove(m2m_ctx); in start_decode()
[all …]
Dwave5-vpu-enc.c150 struct v4l2_m2m_ctx *m2m_ctx = inst->v4l2_fh.m2m_ctx; in start_encode() local
163 dst_buf = v4l2_m2m_next_dst_buf(m2m_ctx); in start_encode()
174 src_buf = v4l2_m2m_next_src_buf(m2m_ctx); in start_encode()
177 if (m2m_ctx->is_draining) in start_encode()
215 src_buf = v4l2_m2m_src_buf_remove(m2m_ctx); in start_encode()
222 dst_buf = v4l2_m2m_dst_buf_remove(m2m_ctx); in start_encode()
242 v4l2_m2m_src_buf_remove_by_idx(m2m_ctx, src_buf->vb2_buf.index); in start_encode()
250 struct v4l2_m2m_ctx *m2m_ctx = inst->v4l2_fh.m2m_ctx; in wave5_vpu_enc_finish_encode() local
275 struct vb2_buffer *vb = vb2_get_buffer(v4l2_m2m_get_src_vq(m2m_ctx), in wave5_vpu_enc_finish_encode()
293 dst_buf = v4l2_m2m_dst_buf_remove(m2m_ctx); in wave5_vpu_enc_finish_encode()
[all …]
/linux-6.12.1/drivers/media/platform/amphion/
Dvpu_v4l2.c77 if (inst->fh.m2m_ctx) { in vpu_v4l2_set_error()
78 vb2_queue_error(v4l2_m2m_get_src_vq(inst->fh.m2m_ctx)); in vpu_v4l2_set_error()
79 vb2_queue_error(v4l2_m2m_get_dst_vq(inst->fh.m2m_ctx)); in vpu_v4l2_set_error()
114 if (!inst || !inst->fh.m2m_ctx) in vpu_set_last_buffer_dequeued()
117 q = v4l2_m2m_get_dst_vq(inst->fh.m2m_ctx); in vpu_set_last_buffer_dequeued()
135 if (!inst->fh.m2m_ctx) in vpu_is_source_empty()
137 v4l2_m2m_for_each_src_buf(inst->fh.m2m_ctx, buf) { in vpu_is_source_empty()
292 if (!inst || !inst->fh.m2m_ctx) in vpu_process_output_buffer()
298 v4l2_m2m_for_each_src_buf(inst->fh.m2m_ctx, buf) { in vpu_process_output_buffer()
318 if (!inst || !inst->fh.m2m_ctx) in vpu_process_capture_buffer()
[all …]
/linux-6.12.1/drivers/media/platform/samsung/exynos-gsc/
Dgsc-m2m.c67 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 …]
/linux-6.12.1/drivers/media/platform/mediatek/vcodec/decoder/
Dmtk_vcodec_dec_stateful.c135 v4l2_m2m_buf_queue(ctx->m2m_ctx, vb); in get_free_buffer()
151 v4l2_m2m_buf_queue(ctx->m2m_ctx, vb); in get_free_buffer()
287 src_buf = v4l2_m2m_next_src_buf(ctx->m2m_ctx); in mtk_vdec_worker()
289 v4l2_m2m_job_finish(dev->m2m_dev_dec, ctx->m2m_ctx); in mtk_vdec_worker()
294 dst_buf = v4l2_m2m_next_dst_buf(ctx->m2m_ctx); in mtk_vdec_worker()
296 v4l2_m2m_job_finish(dev->m2m_dev_dec, ctx->m2m_ctx); in mtk_vdec_worker()
324 src_buf = v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker()
327 dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker()
340 v4l2_m2m_job_finish(dev->m2m_dev_dec, ctx->m2m_ctx); in mtk_vdec_worker()
351 v4l2_m2m_job_finish(dev->m2m_dev_dec, ctx->m2m_ctx); in mtk_vdec_worker()
[all …]
/linux-6.12.1/drivers/media/platform/mediatek/jpeg/
Dmtk_jpeg_core.c312 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()
600 vq = v4l2_m2m_get_vq(fh->m2m_ctx, buf->type); in mtk_jpeg_qbuf()
610 return v4l2_m2m_qbuf(file, fh->m2m_ctx, buf); in mtk_jpeg_qbuf()
797 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, to_vb2_v4l2_buffer(vb)); in mtk_jpeg_enc_buf_queue()
828 ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE); in mtk_jpeg_dec_buf_queue()
836 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, to_vb2_v4l2_buffer(vb)); in mtk_jpeg_dec_buf_queue()
843 return v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in mtk_jpeg_buf_remove()
845 return v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in mtk_jpeg_buf_remove()
871 vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in mtk_jpeg_dec_stop_streaming()
[all …]
/linux-6.12.1/drivers/staging/media/imx/
Dimx-media-csc-scaler.c96 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 …]
/linux-6.12.1/drivers/media/platform/mediatek/vcodec/encoder/
Dmtk_vcodec_enc.c424 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); in vidioc_venc_s_fmt_cap()
479 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); in vidioc_venc_s_fmt_out()
532 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); in vidioc_venc_g_fmt()
666 return v4l2_m2m_qbuf(file, ctx->m2m_ctx, buf); in vidioc_venc_qbuf()
681 ret = v4l2_m2m_dqbuf(file, ctx->m2m_ctx, buf); in vidioc_venc_dqbuf()
730 dst_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in vidioc_encoder_cmd()
734 src_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in vidioc_encoder_cmd()
745 v4l2_m2m_buf_queue(ctx->m2m_ctx, &ctx->empty_flush_buf.vb); in vidioc_encoder_cmd()
746 v4l2_m2m_try_schedule(ctx->m2m_ctx); in vidioc_encoder_cmd()
862 v4l2_m2m_buf_queue(ctx->m2m_ctx, to_vb2_v4l2_buffer(vb)); in vb2ops_venc_buf_queue()
[all …]
/linux-6.12.1/drivers/media/platform/mediatek/mdp3/
Dmtk-mdp3-m2m.c48 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()
147 vq = v4l2_m2m_get_src_vq(ctx->m2m_ctx); in mdp_m2m_start_streaming()
149 vq = v4l2_m2m_get_dst_vq(ctx->m2m_ctx); in mdp_m2m_start_streaming()
184 v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in mdp_m2m_buf_remove()
187 v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mdp_m2m_buf_remove()
264 v4l2_m2m_buf_queue(ctx->m2m_ctx, to_vb2_v4l2_buffer(vb)); in mdp_m2m_buf_queue()
[all …]
/linux-6.12.1/drivers/media/test-drivers/vicodec/
Dvicodec-core.c284 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 …]
/linux-6.12.1/drivers/media/platform/nxp/imx-jpeg/
Dmxc-jpeg.c825 if (v4l2_m2m_is_last_draining_src_buf(ctx->fh.m2m_ctx, src_buf)) { in mxc_jpeg_check_and_set_last_buffer()
827 v4l2_m2m_mark_stopped(ctx->fh.m2m_ctx); in mxc_jpeg_check_and_set_last_buffer()
839 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in mxc_jpeg_job_finish()
840 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in mxc_jpeg_job_finish()
842 v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in mxc_jpeg_job_finish()
843 v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in mxc_jpeg_job_finish()
918 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq()
919 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq()
985 v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq()
1329 next_dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in mxc_jpeg_set_last_buffer()
[all …]
/linux-6.12.1/drivers/media/platform/imagination/
De5010-jpeg-enc.c398 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in e5010_s_fmt()
498 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, s->type); in e5010_s_selection()
749 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(e5010->m2m_dev, ctx, queue_init); in e5010_open()
750 if (IS_ERR(ctx->fh.m2m_ctx)) { in e5010_open()
752 ret = PTR_ERR(ctx->fh.m2m_ctx); in e5010_open()
765 dprintk(e5010, 1, "Created instance: 0x%p, m2m_ctx: 0x%p\n", ctx, ctx->fh.m2m_ctx); in e5010_open()
771 v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); in e5010_open()
786 dprintk(e5010, 1, "Releasing instance: 0x%p, m2m_ctx: 0x%p\n", ctx, ctx->fh.m2m_ctx); in e5010_release()
789 v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); in e5010_release()
940 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in e5010_irq()
[all …]
/linux-6.12.1/drivers/media/platform/verisilicon/
Dhantro_v4l2.c461 ctx->fh.m2m_ctx->out_q_ctx.q.requires_requests = false; in hantro_update_requires_request()
468 ctx->fh.m2m_ctx->out_q_ctx.q.requires_requests = true; in hantro_update_requires_request()
480 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in hantro_update_requires_hold_capture_buf()
506 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in hantro_set_fmt_out()
575 peer_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in hantro_set_fmt_cap()
674 vq = v4l2_m2m_get_src_vq(ctx->fh.m2m_ctx); in vidioc_s_selection()
718 if (!vb2_is_streaming(v4l2_m2m_get_src_vq(ctx->fh.m2m_ctx)) || in vidioc_encoder_cmd()
719 !vb2_is_streaming(v4l2_m2m_get_dst_vq(ctx->fh.m2m_ctx))) in vidioc_encoder_cmd()
727 v4l2_m2m_has_stopped(ctx->fh.m2m_ctx)) in vidioc_encoder_cmd()
731 vb2_clear_last_buffer_dequeued(&ctx->fh.m2m_ctx->cap_q_ctx.q); in vidioc_encoder_cmd()
[all …]
Dhantro_postproc.c90 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in hantro_postproc_g1_enable()
180 struct v4l2_m2m_ctx *m2m_ctx = ctx->fh.m2m_ctx; in hantro_postproc_free() local
181 struct vb2_queue *queue = &m2m_ctx->cap_q_ctx.q; in hantro_postproc_free()
255 struct v4l2_m2m_ctx *m2m_ctx = ctx->fh.m2m_ctx; in hantro_postproc_init() local
256 struct vb2_queue *cap_queue = &m2m_ctx->cap_q_ctx.q; in hantro_postproc_init()
/linux-6.12.1/drivers/media/platform/st/stm32/dma2d/
Ddma2d.c154 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 …]
/linux-6.12.1/drivers/media/platform/nxp/imx8-isi/
Dimx8-isi-m2m.c107 src_vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in mxc_isi_m2m_frame_write_done()
108 dst_vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in mxc_isi_m2m_frame_write_done()
118 v4l2_m2m_job_finish(m2m->m2m_dev, ctx->fh.m2m_ctx); in mxc_isi_m2m_frame_write_done()
168 src_vbuf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in mxc_isi_m2m_device_run()
169 dst_vbuf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in mxc_isi_m2m_device_run()
235 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in mxc_isi_m2m_vb2_buffer_queue()
257 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in mxc_isi_m2m_vb2_stop_streaming()
259 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in mxc_isi_m2m_vb2_stop_streaming()
461 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in mxc_isi_m2m_s_fmt_vid()
663 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(m2m->m2m_dev, ctx, in mxc_isi_m2m_open()
[all …]
/linux-6.12.1/drivers/media/platform/sunxi/sun8i-rotate/
Dsun8i_rotate.c70 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 …]
/linux-6.12.1/drivers/media/platform/st/sti/hva/
Dhva-v4l2.c464 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()
581 return v4l2_m2m_qbuf(file, ctx->fh.m2m_ctx, buf); in hva_qbuf()
818 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in hva_run_work()
819 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in hva_run_work()
849 v4l2_m2m_job_finish(ctx->hva_dev->m2m_dev, ctx->fh.m2m_ctx); in hva_run_work()
875 if (!v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx)) { in hva_job_ready()
881 if (!v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx)) { in hva_job_ready()
987 if (ctx->fh.m2m_ctx) in hva_buf_queue()
[all …]
/linux-6.12.1/drivers/media/platform/nxp/
Dmx2_emmaprp.c243 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 …]
/linux-6.12.1/drivers/media/platform/sunxi/sun8i-di/
Dsun8i-di.c71 src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in deinterlace_device_run()
72 dst = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in deinterlace_device_run()
205 return v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) >= 1 && in deinterlace_job_ready()
206 v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx) >= 2; in deinterlace_job_ready()
249 dst = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in deinterlace_irq()
255 src = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in deinterlace_irq()
260 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 …]
/linux-6.12.1/drivers/media/platform/
Dm2m-deinterlace.c153 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 …]
/linux-6.12.1/drivers/media/platform/qcom/venus/
Dhelpers.c437 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()
1417 struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; in venus_helper_find_buf() local
1420 return v4l2_m2m_src_buf_remove_by_idx(m2m_ctx, idx); in venus_helper_find_buf()
1422 return v4l2_m2m_dst_buf_remove_by_idx(m2m_ctx, idx); in venus_helper_find_buf()
1500 struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; in venus_helper_vb2_buf_queue() local
1503 v4l2_m2m_buf_queue(m2m_ctx, vbuf); in venus_helper_vb2_buf_queue()
1535 while ((buf = v4l2_m2m_src_buf_remove(inst->m2m_ctx))) in venus_helper_buffers_done()
1538 while ((buf = v4l2_m2m_dst_buf_remove(inst->m2m_ctx))) in venus_helper_buffers_done()
[all …]
/linux-6.12.1/drivers/media/platform/renesas/
Drcar_jpu.c828 if (!v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type)) in jpu_try_fmt()
838 struct v4l2_m2m_ctx *m2m_ctx = ctx->fh.m2m_ctx; in jpu_s_fmt() local
843 vq = v4l2_m2m_get_vq(m2m_ctx, f->type); in jpu_s_fmt()
869 if (!v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type)) in jpu_g_fmt()
931 return v4l2_m2m_streamon(file, ctx->fh.m2m_ctx, type); in jpu_streamon()
1103 if (ctx->fh.m2m_ctx) in jpu_buf_queue()
1104 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in jpu_buf_queue()
1156 vb = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in jpu_stop_streaming()
1158 vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in jpu_stop_streaming()
1242 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(jpu->m2m_dev, ctx, jpu_queue_init); in jpu_open()
[all …]

1234