Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/staging/media/sunxi/cedrus/
Dcedrus_video.c552 int cedrus_queue_init(void *priv, struct vb2_queue *src_vq, in cedrus_queue_init() argument
558 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in cedrus_queue_init()
559 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in cedrus_queue_init()
560 src_vq->drv_priv = ctx; in cedrus_queue_init()
561 src_vq->buf_struct_size = sizeof(struct cedrus_buffer); in cedrus_queue_init()
562 src_vq->min_buffers_needed = 1; in cedrus_queue_init()
563 src_vq->ops = &cedrus_qops; in cedrus_queue_init()
564 src_vq->mem_ops = &vb2_dma_contig_memops; in cedrus_queue_init()
565 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in cedrus_queue_init()
566 src_vq->lock = &ctx->dev->dev_mutex; in cedrus_queue_init()
[all …]
Dcedrus_video.h27 int cedrus_queue_init(void *priv, struct vb2_queue *src_vq,
/kernel/linux/linux-5.10/drivers/media/platform/exynos-gsc/
Dgsc-m2m.c576 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument
582 memset(src_vq, 0, sizeof(*src_vq)); in queue_init()
583 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in queue_init()
584 src_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init()
585 src_vq->drv_priv = ctx; in queue_init()
586 src_vq->ops = &gsc_m2m_qops; in queue_init()
587 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
588 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
589 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
590 src_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
192 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in queue_init()
193 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init()
194 src_vq->drv_priv = ctx; in queue_init()
195 src_vq->ops = &hantro_queue_ops; in queue_init()
196 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
203 src_vq->dma_attrs = DMA_ATTR_ALLOC_SINGLE_PAGES | in queue_init()
205 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
206 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
207 src_vq->lock = &ctx->dev->vpu_mutex; in queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/rkvdec/
Drkvdec.c718 struct vb2_queue *src_vq, in rkvdec_queue_init() argument
725 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in rkvdec_queue_init()
726 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in rkvdec_queue_init()
727 src_vq->drv_priv = ctx; in rkvdec_queue_init()
728 src_vq->ops = &rkvdec_queue_ops; in rkvdec_queue_init()
729 src_vq->mem_ops = &vb2_dma_contig_memops; in rkvdec_queue_init()
736 src_vq->dma_attrs = DMA_ATTR_ALLOC_SINGLE_PAGES | in rkvdec_queue_init()
738 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in rkvdec_queue_init()
739 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in rkvdec_queue_init()
740 src_vq->lock = &rkvdec->vdev_lock; in rkvdec_queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/imx/
Dimx-media-csc-scaler.c581 static int ipu_csc_scaler_queue_init(void *priv, struct vb2_queue *src_vq, in ipu_csc_scaler_queue_init() argument
587 memset(src_vq, 0, sizeof(*src_vq)); in ipu_csc_scaler_queue_init()
588 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in ipu_csc_scaler_queue_init()
589 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in ipu_csc_scaler_queue_init()
590 src_vq->drv_priv = ctx; in ipu_csc_scaler_queue_init()
591 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in ipu_csc_scaler_queue_init()
592 src_vq->ops = &ipu_csc_scaler_qops; in ipu_csc_scaler_queue_init()
593 src_vq->mem_ops = &vb2_dma_contig_memops; in ipu_csc_scaler_queue_init()
594 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in ipu_csc_scaler_queue_init()
595 src_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.c529 static int rotate_queue_init(void *priv, struct vb2_queue *src_vq, in rotate_queue_init() argument
535 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in rotate_queue_init()
536 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in rotate_queue_init()
537 src_vq->drv_priv = ctx; in rotate_queue_init()
538 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in rotate_queue_init()
539 src_vq->min_buffers_needed = 1; in rotate_queue_init()
540 src_vq->ops = &rotate_qops; in rotate_queue_init()
541 src_vq->mem_ops = &vb2_dma_contig_memops; in rotate_queue_init()
542 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in rotate_queue_init()
543 src_vq->lock = &ctx->dev->dev_mutex; in rotate_queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/s5p-g2d/
Dg2d.c140 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument
146 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init()
147 src_vq->io_modes = VB2_MMAP | VB2_USERPTR; in queue_init()
148 src_vq->drv_priv = ctx; in queue_init()
149 src_vq->ops = &g2d_qops; in queue_init()
150 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
151 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
152 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
153 src_vq->lock = &ctx->dev->mutex; in queue_init()
154 src_vq->dev = ctx->dev->v4l2_dev.dev; in queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/
Dmx2_emmaprp.c684 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument
690 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init()
691 src_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init()
692 src_vq->drv_priv = ctx; in queue_init()
693 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
694 src_vq->ops = &emmaprp_qops; in queue_init()
695 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
696 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
697 src_vq->dev = ctx->dev->v4l2_dev.dev; in queue_init()
698 src_vq->lock = &ctx->dev->dev_mutex; in queue_init()
[all …]
Dm2m-deinterlace.c795 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument
801 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init()
802 src_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init()
803 src_vq->drv_priv = ctx; in queue_init()
804 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
805 src_vq->ops = &deinterlace_qops; in queue_init()
806 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
807 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
808 src_vq->dev = ctx->dev->v4l2_dev.dev; in queue_init()
809 src_vq->lock = &ctx->dev->dev_mutex; in queue_init()
[all …]
Drcar_jpu.c1190 static int jpu_queue_init(void *priv, struct vb2_queue *src_vq, in jpu_queue_init() argument
1196 memset(src_vq, 0, sizeof(*src_vq)); in jpu_queue_init()
1197 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in jpu_queue_init()
1198 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in jpu_queue_init()
1199 src_vq->drv_priv = ctx; in jpu_queue_init()
1200 src_vq->buf_struct_size = sizeof(struct jpu_buffer); in jpu_queue_init()
1201 src_vq->ops = &jpu_qops; in jpu_queue_init()
1202 src_vq->mem_ops = &vb2_dma_contig_memops; in jpu_queue_init()
1203 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in jpu_queue_init()
1204 src_vq->lock = &ctx->jpu->mutex; in jpu_queue_init()
[all …]
Dimx-pxp.c1469 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument
1475 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init()
1476 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init()
1477 src_vq->drv_priv = ctx; in queue_init()
1478 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
1479 src_vq->ops = &pxp_qops; in queue_init()
1480 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
1481 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
1482 src_vq->lock = &ctx->dev->dev_mutex; in queue_init()
1483 src_vq->dev = ctx->dev->v4l2_dev.dev; in queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/
Dfimc-m2m.c547 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument
553 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in queue_init()
554 src_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init()
555 src_vq->drv_priv = ctx; in queue_init()
556 src_vq->ops = &fimc_qops; in queue_init()
557 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
558 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
559 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
560 src_vq->lock = &ctx->fimc_dev->lock; in queue_init()
561 src_vq->dev = &ctx->fimc_dev->pdev->dev; in queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun8i-di/
Dsun8i-di.c666 static int deinterlace_queue_init(void *priv, struct vb2_queue *src_vq, in deinterlace_queue_init() argument
672 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in deinterlace_queue_init()
673 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in deinterlace_queue_init()
674 src_vq->drv_priv = ctx; in deinterlace_queue_init()
675 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in deinterlace_queue_init()
676 src_vq->min_buffers_needed = 1; in deinterlace_queue_init()
677 src_vq->ops = &deinterlace_qops; in deinterlace_queue_init()
678 src_vq->mem_ops = &vb2_dma_contig_memops; in deinterlace_queue_init()
679 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in deinterlace_queue_init()
680 src_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
102 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init()
103 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init()
104 src_vq->drv_priv = ctx; in queue_init()
105 src_vq->ops = &rga_qops; in queue_init()
106 src_vq->mem_ops = &vb2_dma_sg_memops; in queue_init()
107 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
108 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
109 src_vq->lock = &ctx->rga->mutex; in queue_init()
110 src_vq->dev = ctx->rga->v4l2_dev.dev; in queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/
Dvenc.c996 static int m2m_queue_init(void *priv, struct vb2_queue *src_vq, in m2m_queue_init() argument
1002 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in m2m_queue_init()
1003 src_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in m2m_queue_init()
1004 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in m2m_queue_init()
1005 src_vq->ops = &venc_vb2_ops; in m2m_queue_init()
1006 src_vq->mem_ops = &vb2_dma_sg_memops; in m2m_queue_init()
1007 src_vq->drv_priv = inst; in m2m_queue_init()
1008 src_vq->buf_struct_size = sizeof(struct venus_buffer); in m2m_queue_init()
1009 src_vq->allow_zero_bytesused = 1; in m2m_queue_init()
1010 src_vq->min_buffers_needed = 1; in m2m_queue_init()
[all …]
Dvdec.c1434 static int m2m_queue_init(void *priv, struct vb2_queue *src_vq, in m2m_queue_init() argument
1440 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in m2m_queue_init()
1441 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in m2m_queue_init()
1442 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in m2m_queue_init()
1443 src_vq->ops = &vdec_vb2_ops; in m2m_queue_init()
1444 src_vq->mem_ops = &vb2_dma_sg_memops; in m2m_queue_init()
1445 src_vq->drv_priv = inst; in m2m_queue_init()
1446 src_vq->buf_struct_size = sizeof(struct venus_buffer); in m2m_queue_init()
1447 src_vq->allow_zero_bytesused = 1; in m2m_queue_init()
1448 src_vq->min_buffers_needed = 0; in m2m_queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/meson/vdec/
Dvdec.c814 static int m2m_queue_init(void *priv, struct vb2_queue *src_vq, in m2m_queue_init() argument
820 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in m2m_queue_init()
821 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in m2m_queue_init()
822 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in m2m_queue_init()
823 src_vq->ops = &vdec_vb2_ops; in m2m_queue_init()
824 src_vq->mem_ops = &vb2_dma_contig_memops; in m2m_queue_init()
825 src_vq->drv_priv = sess; in m2m_queue_init()
826 src_vq->buf_struct_size = sizeof(struct dummy_buf); in m2m_queue_init()
827 src_vq->min_buffers_needed = 1; in m2m_queue_init()
828 src_vq->dev = sess->core->dev; in 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
546 memset(src_vq, 0, sizeof(*src_vq)); in queue_init()
547 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init()
548 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init()
549 src_vq->drv_priv = ctx; in queue_init()
550 src_vq->ops = &bdisp_qops; in queue_init()
551 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
552 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
553 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
554 src_vq->lock = &ctx->bdisp_dev->lock; in queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/mtk-mdp/
Dmtk_mdp_m2m.c921 static int mtk_mdp_m2m_queue_init(void *priv, struct vb2_queue *src_vq, in mtk_mdp_m2m_queue_init() argument
927 memset(src_vq, 0, sizeof(*src_vq)); in mtk_mdp_m2m_queue_init()
928 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in mtk_mdp_m2m_queue_init()
929 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in mtk_mdp_m2m_queue_init()
930 src_vq->drv_priv = ctx; in mtk_mdp_m2m_queue_init()
931 src_vq->ops = &mtk_mdp_m2m_qops; in mtk_mdp_m2m_queue_init()
932 src_vq->mem_ops = &vb2_dma_contig_memops; in mtk_mdp_m2m_queue_init()
933 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in mtk_mdp_m2m_queue_init()
934 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in mtk_mdp_m2m_queue_init()
935 src_vq->dev = &ctx->mdp_dev->pdev->dev; in mtk_mdp_m2m_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
518 src_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in vidioc_decoder_cmd()
520 if (!vb2_is_streaming(src_vq)) { in vidioc_decoder_cmd()
1493 int mtk_vcodec_dec_queue_init(void *priv, struct vb2_queue *src_vq, in mtk_vcodec_dec_queue_init() argument
1501 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in mtk_vcodec_dec_queue_init()
1502 src_vq->io_modes = VB2_DMABUF | VB2_MMAP; in mtk_vcodec_dec_queue_init()
1503 src_vq->drv_priv = ctx; in mtk_vcodec_dec_queue_init()
1504 src_vq->buf_struct_size = sizeof(struct mtk_video_dec_buf); in mtk_vcodec_dec_queue_init()
1505 src_vq->ops = &mtk_vdec_vb2_ops; in mtk_vcodec_dec_queue_init()
1506 src_vq->mem_ops = &vb2_dma_contig_memops; in mtk_vcodec_dec_queue_init()
[all …]
Dmtk_vcodec_enc.c1258 int mtk_vcodec_enc_queue_init(void *priv, struct vb2_queue *src_vq, in mtk_vcodec_enc_queue_init() argument
1269 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in mtk_vcodec_enc_queue_init()
1270 src_vq->io_modes = VB2_DMABUF | VB2_MMAP | VB2_USERPTR; in mtk_vcodec_enc_queue_init()
1271 src_vq->drv_priv = ctx; in mtk_vcodec_enc_queue_init()
1272 src_vq->buf_struct_size = sizeof(struct mtk_video_enc_buf); in mtk_vcodec_enc_queue_init()
1273 src_vq->ops = &mtk_venc_vb2_ops; in mtk_vcodec_enc_queue_init()
1274 src_vq->mem_ops = &vb2_dma_contig_memops; in mtk_vcodec_enc_queue_init()
1275 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in mtk_vcodec_enc_queue_init()
1276 src_vq->lock = &ctx->dev->dev_mutex; in mtk_vcodec_enc_queue_init()
1277 src_vq->dev = &ctx->dev->plat_dev->dev; in mtk_vcodec_enc_queue_init()
[all …]
Dmtk_vcodec_enc.h44 int mtk_vcodec_enc_queue_init(void *priv, struct vb2_queue *src_vq,
/kernel/linux/linux-5.10/drivers/media/test-drivers/
Dvim2m.c1118 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument
1124 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init()
1125 src_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init()
1126 src_vq->drv_priv = ctx; in queue_init()
1127 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
1128 src_vq->ops = &vim2m_qops; in queue_init()
1129 src_vq->mem_ops = &vb2_vmalloc_memops; in queue_init()
1130 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
1131 src_vq->lock = &ctx->vb_mutex; in queue_init()
1132 src_vq->supports_requests = true; in queue_init()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/coda/
Dcoda.h195 int (*queue_init)(void *priv, struct vb2_queue *src_vq,
303 int coda_encoder_queue_init(void *priv, struct vb2_queue *src_vq,
305 int coda_decoder_queue_init(void *priv, struct vb2_queue *src_vq,

12