Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/staging/media/sunxi/cedrus/
Dcedrus_video.c553 struct vb2_queue *dst_vq) in cedrus_queue_init() argument
575 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in cedrus_queue_init()
576 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in cedrus_queue_init()
577 dst_vq->drv_priv = ctx; in cedrus_queue_init()
578 dst_vq->buf_struct_size = sizeof(struct cedrus_buffer); in cedrus_queue_init()
579 dst_vq->min_buffers_needed = 1; in cedrus_queue_init()
580 dst_vq->ops = &cedrus_qops; in cedrus_queue_init()
581 dst_vq->mem_ops = &vb2_dma_contig_memops; in cedrus_queue_init()
582 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in cedrus_queue_init()
583 dst_vq->lock = &ctx->dev->dev_mutex; in cedrus_queue_init()
[all …]
Dcedrus_video.h28 struct vb2_queue *dst_vq);
/kernel/linux/linux-5.10/drivers/media/platform/exynos-gsc/
Dgsc-m2m.c577 struct vb2_queue *dst_vq) in queue_init() argument
597 memset(dst_vq, 0, sizeof(*dst_vq)); in queue_init()
598 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in queue_init()
599 dst_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init()
600 dst_vq->drv_priv = ctx; in queue_init()
601 dst_vq->ops = &gsc_m2m_qops; in queue_init()
602 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
603 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
604 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
605 dst_vq->lock = &ctx->gsc_dev->lock; in queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/hantro/
Dhantro_drv.c187 queue_init(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq) in queue_init() argument
223 dst_vq->mem_ops = &vb2_vmalloc_memops; in queue_init()
225 dst_vq->bidirectional = true; in queue_init()
226 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
227 dst_vq->dma_attrs = DMA_ATTR_ALLOC_SINGLE_PAGES | in queue_init()
231 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in queue_init()
232 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init()
233 dst_vq->drv_priv = ctx; in queue_init()
234 dst_vq->ops = &hantro_queue_ops; in queue_init()
235 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/imx/
Dimx-media-csc-scaler.c582 struct vb2_queue *dst_vq) in ipu_csc_scaler_queue_init() argument
602 memset(dst_vq, 0, sizeof(*dst_vq)); in ipu_csc_scaler_queue_init()
603 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in ipu_csc_scaler_queue_init()
604 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in ipu_csc_scaler_queue_init()
605 dst_vq->drv_priv = ctx; in ipu_csc_scaler_queue_init()
606 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in ipu_csc_scaler_queue_init()
607 dst_vq->ops = &ipu_csc_scaler_qops; in ipu_csc_scaler_queue_init()
608 dst_vq->mem_ops = &vb2_dma_contig_memops; in ipu_csc_scaler_queue_init()
609 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in ipu_csc_scaler_queue_init()
610 dst_vq->lock = &ctx->priv->mutex; in ipu_csc_scaler_queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun8i-rotate/
Dsun8i_rotate.c530 struct vb2_queue *dst_vq) in rotate_queue_init() argument
550 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in rotate_queue_init()
551 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in rotate_queue_init()
552 dst_vq->drv_priv = ctx; in rotate_queue_init()
553 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in rotate_queue_init()
554 dst_vq->min_buffers_needed = 2; in rotate_queue_init()
555 dst_vq->ops = &rotate_qops; in rotate_queue_init()
556 dst_vq->mem_ops = &vb2_dma_contig_memops; in rotate_queue_init()
557 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in rotate_queue_init()
558 dst_vq->lock = &ctx->dev->dev_mutex; in rotate_queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/
Dfimc-m2m.c548 struct vb2_queue *dst_vq) in queue_init() argument
567 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in queue_init()
568 dst_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init()
569 dst_vq->drv_priv = ctx; in queue_init()
570 dst_vq->ops = &fimc_qops; in queue_init()
571 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
572 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
573 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
574 dst_vq->lock = &ctx->fimc_dev->lock; in queue_init()
575 dst_vq->dev = &ctx->fimc_dev->pdev->dev; in queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/
Dmx2_emmaprp.c685 struct vb2_queue *dst_vq) in queue_init() argument
704 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in queue_init()
705 dst_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init()
706 dst_vq->drv_priv = ctx; in queue_init()
707 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
708 dst_vq->ops = &emmaprp_qops; in queue_init()
709 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
710 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
711 dst_vq->dev = ctx->dev->v4l2_dev.dev; in queue_init()
712 dst_vq->lock = &ctx->dev->dev_mutex; in queue_init()
[all …]
Dm2m-deinterlace.c796 struct vb2_queue *dst_vq) in queue_init() argument
820 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in queue_init()
821 dst_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init()
822 dst_vq->drv_priv = ctx; in queue_init()
823 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
824 dst_vq->ops = &deinterlace_qops; in queue_init()
825 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
826 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
827 dst_vq->dev = ctx->dev->v4l2_dev.dev; in queue_init()
828 dst_vq->lock = &ctx->dev->dev_mutex; in queue_init()
[all …]
Drcar_jpu.c1191 struct vb2_queue *dst_vq) in jpu_queue_init() argument
1211 memset(dst_vq, 0, sizeof(*dst_vq)); in jpu_queue_init()
1212 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in jpu_queue_init()
1213 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in jpu_queue_init()
1214 dst_vq->drv_priv = ctx; in jpu_queue_init()
1215 dst_vq->buf_struct_size = sizeof(struct jpu_buffer); in jpu_queue_init()
1216 dst_vq->ops = &jpu_qops; in jpu_queue_init()
1217 dst_vq->mem_ops = &vb2_dma_contig_memops; in jpu_queue_init()
1218 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in jpu_queue_init()
1219 dst_vq->lock = &ctx->jpu->mutex; in jpu_queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/s5p-g2d/
Dg2d.c141 struct vb2_queue *dst_vq) in queue_init() argument
160 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in queue_init()
161 dst_vq->io_modes = VB2_MMAP | VB2_USERPTR; in queue_init()
162 dst_vq->drv_priv = ctx; in queue_init()
163 dst_vq->ops = &g2d_qops; in queue_init()
164 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
165 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
166 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
167 dst_vq->lock = &ctx->dev->mutex; in queue_init()
168 dst_vq->dev = ctx->dev->v4l2_dev.dev; in queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/rkvdec/
Drkvdec.c719 struct vb2_queue *dst_vq) in rkvdec_queue_init() argument
749 dst_vq->bidirectional = true; in rkvdec_queue_init()
750 dst_vq->mem_ops = &vb2_dma_contig_memops; in rkvdec_queue_init()
751 dst_vq->dma_attrs = DMA_ATTR_ALLOC_SINGLE_PAGES | in rkvdec_queue_init()
753 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in rkvdec_queue_init()
754 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in rkvdec_queue_init()
755 dst_vq->drv_priv = ctx; in rkvdec_queue_init()
756 dst_vq->ops = &rkvdec_queue_ops; in rkvdec_queue_init()
757 dst_vq->buf_struct_size = sizeof(struct rkvdec_decoded_buffer); in rkvdec_queue_init()
758 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in rkvdec_queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun8i-di/
Dsun8i-di.c667 struct vb2_queue *dst_vq) in deinterlace_queue_init() argument
687 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in deinterlace_queue_init()
688 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in deinterlace_queue_init()
689 dst_vq->drv_priv = ctx; in deinterlace_queue_init()
690 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in deinterlace_queue_init()
691 dst_vq->min_buffers_needed = 2; in deinterlace_queue_init()
692 dst_vq->ops = &deinterlace_qops; in deinterlace_queue_init()
693 dst_vq->mem_ops = &vb2_dma_contig_memops; in deinterlace_queue_init()
694 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in deinterlace_queue_init()
695 dst_vq->lock = &ctx->dev->dev_mutex; in deinterlace_queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/rockchip/rga/
Drga.c97 queue_init(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq) in queue_init() argument
116 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in queue_init()
117 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init()
118 dst_vq->drv_priv = ctx; in queue_init()
119 dst_vq->ops = &rga_qops; in queue_init()
120 dst_vq->mem_ops = &vb2_dma_sg_memops; in queue_init()
121 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
122 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
123 dst_vq->lock = &ctx->rga->mutex; in queue_init()
124 dst_vq->dev = ctx->rga->v4l2_dev.dev; in queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/
Dmtk_vcodec_dec.c506 struct vb2_queue *src_vq, *dst_vq; in vidioc_decoder_cmd() local
514 dst_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in vidioc_decoder_cmd()
524 if (!vb2_is_streaming(dst_vq)) { in vidioc_decoder_cmd()
534 vb2_clear_last_buffer_dequeued(dst_vq); in vidioc_decoder_cmd()
1494 struct vb2_queue *dst_vq) in mtk_vcodec_dec_queue_init() argument
1516 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in mtk_vcodec_dec_queue_init()
1517 dst_vq->io_modes = VB2_DMABUF | VB2_MMAP; in mtk_vcodec_dec_queue_init()
1518 dst_vq->drv_priv = ctx; in mtk_vcodec_dec_queue_init()
1519 dst_vq->buf_struct_size = sizeof(struct mtk_video_dec_buf); in mtk_vcodec_dec_queue_init()
1520 dst_vq->ops = &mtk_vdec_vb2_ops; in mtk_vcodec_dec_queue_init()
[all …]
Dmtk_vcodec_enc.c1259 struct vb2_queue *dst_vq) in mtk_vcodec_enc_queue_init() argument
1283 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in mtk_vcodec_enc_queue_init()
1284 dst_vq->io_modes = VB2_DMABUF | VB2_MMAP | VB2_USERPTR; in mtk_vcodec_enc_queue_init()
1285 dst_vq->drv_priv = ctx; in mtk_vcodec_enc_queue_init()
1286 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in mtk_vcodec_enc_queue_init()
1287 dst_vq->ops = &mtk_venc_vb2_ops; in mtk_vcodec_enc_queue_init()
1288 dst_vq->mem_ops = &vb2_dma_contig_memops; in mtk_vcodec_enc_queue_init()
1289 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in mtk_vcodec_enc_queue_init()
1290 dst_vq->lock = &ctx->dev->dev_mutex; in mtk_vcodec_enc_queue_init()
1291 dst_vq->dev = &ctx->dev->plat_dev->dev; in mtk_vcodec_enc_queue_init()
[all …]
Dmtk_vcodec_enc.h45 struct vb2_queue *dst_vq);
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/
Dvenc.c997 struct vb2_queue *dst_vq) in m2m_queue_init() argument
1018 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in m2m_queue_init()
1019 dst_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in m2m_queue_init()
1020 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in m2m_queue_init()
1021 dst_vq->ops = &venc_vb2_ops; in m2m_queue_init()
1022 dst_vq->mem_ops = &vb2_dma_sg_memops; in m2m_queue_init()
1023 dst_vq->drv_priv = inst; in m2m_queue_init()
1024 dst_vq->buf_struct_size = sizeof(struct venus_buffer); in m2m_queue_init()
1025 dst_vq->allow_zero_bytesused = 1; in m2m_queue_init()
1026 dst_vq->min_buffers_needed = 1; in m2m_queue_init()
[all …]
Dvdec.c498 struct vb2_queue *dst_vq; in vdec_decoder_cmd() local
528 dst_vq = v4l2_m2m_get_vq(inst->fh.m2m_ctx, in vdec_decoder_cmd()
530 vb2_clear_last_buffer_dequeued(dst_vq); in vdec_decoder_cmd()
1479 struct vb2_queue *dst_vq) in m2m_queue_init() argument
1498 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in m2m_queue_init()
1499 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in m2m_queue_init()
1500 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in m2m_queue_init()
1501 dst_vq->ops = &vdec_vb2_ops; in m2m_queue_init()
1502 dst_vq->mem_ops = &vb2_dma_sg_memops; in m2m_queue_init()
1503 dst_vq->drv_priv = inst; in m2m_queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/meson/vdec/
Dvdec.c815 struct vb2_queue *dst_vq) in m2m_queue_init() argument
834 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in m2m_queue_init()
835 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in m2m_queue_init()
836 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in m2m_queue_init()
837 dst_vq->ops = &vdec_vb2_ops; in m2m_queue_init()
838 dst_vq->mem_ops = &vb2_dma_contig_memops; in m2m_queue_init()
839 dst_vq->drv_priv = sess; in m2m_queue_init()
840 dst_vq->buf_struct_size = sizeof(struct dummy_buf); in m2m_queue_init()
841 dst_vq->min_buffers_needed = 1; in m2m_queue_init()
842 dst_vq->dev = sess->core->dev; in m2m_queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/mtk-mdp/
Dmtk_mdp_m2m.c922 struct vb2_queue *dst_vq) in mtk_mdp_m2m_queue_init() argument
942 memset(dst_vq, 0, sizeof(*dst_vq)); in mtk_mdp_m2m_queue_init()
943 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in mtk_mdp_m2m_queue_init()
944 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in mtk_mdp_m2m_queue_init()
945 dst_vq->drv_priv = ctx; in mtk_mdp_m2m_queue_init()
946 dst_vq->ops = &mtk_mdp_m2m_qops; in mtk_mdp_m2m_queue_init()
947 dst_vq->mem_ops = &vb2_dma_contig_memops; in mtk_mdp_m2m_queue_init()
948 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in mtk_mdp_m2m_queue_init()
949 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in mtk_mdp_m2m_queue_init()
950 dst_vq->dev = &ctx->mdp_dev->pdev->dev; in mtk_mdp_m2m_queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/sti/bdisp/
Dbdisp-v4l2.c541 struct vb2_queue *src_vq, struct vb2_queue *dst_vq) in queue_init() argument
561 memset(dst_vq, 0, sizeof(*dst_vq)); in queue_init()
562 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in queue_init()
563 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init()
564 dst_vq->drv_priv = ctx; in queue_init()
565 dst_vq->ops = &bdisp_qops; in queue_init()
566 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
567 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
568 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
569 dst_vq->lock = &ctx->bdisp_dev->lock; in queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/coda/
Dcoda-common.c889 struct vb2_queue *dst_vq; in coda_s_fmt_vid_out() local
917 dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); in coda_s_fmt_vid_out()
918 if (!dst_vq) in coda_s_fmt_vid_out()
927 if (vb2_is_busy(dst_vq)) in coda_s_fmt_vid_out()
1101 struct vb2_queue *dst_vq; in coda_wake_up_capture_queue() local
1105 dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); in coda_wake_up_capture_queue()
1106 dst_vq->last_buffer_dequeued = true; in coda_wake_up_capture_queue()
1107 wake_up(&dst_vq->done_wq); in coda_wake_up_capture_queue()
1181 struct vb2_queue *dst_vq; in coda_mark_last_dst_buf() local
1186 dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); in coda_mark_last_dst_buf()
[all …]
Dcoda.h196 struct vb2_queue *dst_vq);
304 struct vb2_queue *dst_vq);
306 struct vb2_queue *dst_vq);
/kernel/linux/linux-5.10/drivers/media/platform/mtk-jpeg/
Dmtk_jpeg_core.c800 struct vb2_queue *dst_vq = v4l2_m2m_get_vq( in mtk_jpeg_dec_buf_queue() local
805 ctx->state = vb2_is_streaming(dst_vq) ? in mtk_jpeg_dec_buf_queue()
1021 struct vb2_queue *dst_vq) in mtk_jpeg_queue_init() argument
1040 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in mtk_jpeg_queue_init()
1041 dst_vq->io_modes = VB2_DMABUF | VB2_MMAP; in mtk_jpeg_queue_init()
1042 dst_vq->drv_priv = ctx; in mtk_jpeg_queue_init()
1043 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in mtk_jpeg_queue_init()
1044 dst_vq->ops = jpeg->variant->qops; in mtk_jpeg_queue_init()
1045 dst_vq->mem_ops = &vb2_dma_contig_memops; in mtk_jpeg_queue_init()
1046 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in mtk_jpeg_queue_init()
[all …]

12