Home
last modified time | relevance | path

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

12

/drivers/staging/media/sunxi/cedrus/
Dcedrus_video.c563 int cedrus_queue_init(void *priv, struct vb2_queue *src_vq, in cedrus_queue_init() argument
569 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in cedrus_queue_init()
570 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in cedrus_queue_init()
571 src_vq->drv_priv = ctx; in cedrus_queue_init()
572 src_vq->buf_struct_size = sizeof(struct cedrus_buffer); in cedrus_queue_init()
573 src_vq->ops = &cedrus_qops; in cedrus_queue_init()
574 src_vq->mem_ops = &vb2_dma_contig_memops; in cedrus_queue_init()
575 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in cedrus_queue_init()
576 src_vq->lock = &ctx->dev->dev_mutex; in cedrus_queue_init()
577 src_vq->dev = ctx->dev->dev; in cedrus_queue_init()
[all …]
/drivers/media/platform/amphion/
Dvpu_v4l2.c552 static int vpu_m2m_queue_init(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq) in vpu_m2m_queue_init() argument
557 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in vpu_m2m_queue_init()
558 inst->out_format.type = src_vq->type; in vpu_m2m_queue_init()
559 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in vpu_m2m_queue_init()
560 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in vpu_m2m_queue_init()
561 src_vq->ops = &vpu_vb2_ops; in vpu_m2m_queue_init()
562 src_vq->mem_ops = &vb2_dma_contig_memops; in vpu_m2m_queue_init()
564 src_vq->mem_ops = &vb2_vmalloc_memops; in vpu_m2m_queue_init()
565 src_vq->drv_priv = inst; in vpu_m2m_queue_init()
566 src_vq->buf_struct_size = sizeof(struct vpu_vb2_buffer); in vpu_m2m_queue_init()
[all …]
/drivers/media/platform/samsung/exynos-gsc/
Dgsc-m2m.c571 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument
577 memset(src_vq, 0, sizeof(*src_vq)); in queue_init()
578 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in queue_init()
579 src_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init()
580 src_vq->drv_priv = ctx; in queue_init()
581 src_vq->ops = &gsc_m2m_qops; in queue_init()
582 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
583 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
584 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
585 src_vq->lock = &ctx->gsc_dev->lock; in queue_init()
[all …]
/drivers/media/platform/mediatek/vcodec/
Dmtk_vcodec_dec.c78 struct vb2_queue *src_vq, *dst_vq; in vidioc_decoder_cmd() local
90 src_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in vidioc_decoder_cmd()
92 if (!vb2_is_streaming(src_vq)) { in vidioc_decoder_cmd()
970 int mtk_vcodec_dec_queue_init(void *priv, struct vb2_queue *src_vq, in mtk_vcodec_dec_queue_init() argument
978 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in mtk_vcodec_dec_queue_init()
979 src_vq->io_modes = VB2_DMABUF | VB2_MMAP; in mtk_vcodec_dec_queue_init()
980 src_vq->drv_priv = ctx; in mtk_vcodec_dec_queue_init()
981 src_vq->buf_struct_size = sizeof(struct mtk_video_dec_buf); in mtk_vcodec_dec_queue_init()
982 src_vq->ops = ctx->dev->vdec_pdata->vdec_vb2_ops; in mtk_vcodec_dec_queue_init()
983 src_vq->mem_ops = &vb2_dma_contig_memops; in mtk_vcodec_dec_queue_init()
[all …]
Dmtk_vcodec_enc.c723 struct vb2_queue *src_vq, *dst_vq; in vidioc_encoder_cmd() local
746 src_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in vidioc_encoder_cmd()
748 if (!vb2_is_streaming(src_vq)) { in vidioc_encoder_cmd()
1425 int mtk_vcodec_enc_queue_init(void *priv, struct vb2_queue *src_vq, in mtk_vcodec_enc_queue_init() argument
1436 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in mtk_vcodec_enc_queue_init()
1437 src_vq->io_modes = VB2_DMABUF | VB2_MMAP | VB2_USERPTR; in mtk_vcodec_enc_queue_init()
1438 src_vq->drv_priv = ctx; in mtk_vcodec_enc_queue_init()
1439 src_vq->buf_struct_size = sizeof(struct mtk_video_enc_buf); in mtk_vcodec_enc_queue_init()
1440 src_vq->ops = &mtk_venc_vb2_ops; in mtk_vcodec_enc_queue_init()
1441 src_vq->mem_ops = &vb2_dma_contig_memops; in mtk_vcodec_enc_queue_init()
[all …]
/drivers/media/platform/nvidia/tegra-vde/
Dv4l2.c336 struct vb2_queue *src_vq, in tegra_queue_init() argument
359 src_vq->buf_struct_size = sizeof(struct tegra_m2m_buffer); in tegra_queue_init()
360 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in tegra_queue_init()
361 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in tegra_queue_init()
362 src_vq->io_modes = VB2_DMABUF | VB2_MMAP; in tegra_queue_init()
363 src_vq->supports_requests = true; in tegra_queue_init()
364 src_vq->requires_requests = true; in tegra_queue_init()
365 src_vq->lock = &vde->v4l2_lock; in tegra_queue_init()
366 src_vq->dma_attrs = dma_attrs; in tegra_queue_init()
367 src_vq->mem_ops = mem_ops; in tegra_queue_init()
[all …]
/drivers/media/platform/st/stm32/dma2d/
Ddma2d.c193 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument
199 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init()
200 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init()
201 src_vq->drv_priv = ctx; in queue_init()
202 src_vq->ops = &dma2d_qops; in queue_init()
203 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
204 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
205 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
206 src_vq->lock = &ctx->dev->mutex; in queue_init()
207 src_vq->dev = ctx->dev->v4l2_dev.dev; in queue_init()
[all …]
/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 …]
/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 …]
/drivers/media/platform/samsung/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 …]
/drivers/media/platform/nxp/
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 …]
/drivers/media/platform/mediatek/mdp3/
Dmtk-mdp3-m2m.c469 struct vb2_queue *src_vq, in mdp_m2m_queue_init() argument
475 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in mdp_m2m_queue_init()
476 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in mdp_m2m_queue_init()
477 src_vq->ops = &mdp_m2m_qops; in mdp_m2m_queue_init()
478 src_vq->mem_ops = &vb2_dma_contig_memops; in mdp_m2m_queue_init()
479 src_vq->drv_priv = ctx; in mdp_m2m_queue_init()
480 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in mdp_m2m_queue_init()
481 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in mdp_m2m_queue_init()
482 src_vq->dev = &ctx->mdp_dev->pdev->dev; in mdp_m2m_queue_init()
483 src_vq->lock = &ctx->ctx_lock; in mdp_m2m_queue_init()
[all …]
/drivers/media/platform/samsung/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 …]
/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 …]
/drivers/media/platform/verisilicon/
Dhantro_drv.c203 queue_init(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq) in queue_init() argument
208 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in queue_init()
209 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init()
210 src_vq->drv_priv = ctx; in queue_init()
211 src_vq->ops = &hantro_queue_ops; in queue_init()
212 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
219 src_vq->dma_attrs = DMA_ATTR_ALLOC_SINGLE_PAGES | in queue_init()
221 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
222 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
223 src_vq->lock = &ctx->dev->vpu_mutex; in queue_init()
[all …]
/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 …]
/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 …]
/drivers/media/platform/
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 …]
/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 …]
/drivers/media/platform/st/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 …]
/drivers/media/platform/mediatek/mdp/
Dmtk_mdp_m2m.c918 static int mtk_mdp_m2m_queue_init(void *priv, struct vb2_queue *src_vq, in mtk_mdp_m2m_queue_init() argument
924 memset(src_vq, 0, sizeof(*src_vq)); in mtk_mdp_m2m_queue_init()
925 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in mtk_mdp_m2m_queue_init()
926 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in mtk_mdp_m2m_queue_init()
927 src_vq->drv_priv = ctx; in mtk_mdp_m2m_queue_init()
928 src_vq->ops = &mtk_mdp_m2m_qops; in mtk_mdp_m2m_queue_init()
929 src_vq->mem_ops = &vb2_dma_contig_memops; in mtk_mdp_m2m_queue_init()
930 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in mtk_mdp_m2m_queue_init()
931 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in mtk_mdp_m2m_queue_init()
932 src_vq->dev = &ctx->mdp_dev->pdev->dev; in mtk_mdp_m2m_queue_init()
[all …]
/drivers/media/platform/amlogic/meson-ge2d/
Dge2d.c399 queue_init(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq) in queue_init() argument
404 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init()
405 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init()
406 src_vq->drv_priv = ctx; in queue_init()
407 src_vq->ops = &ge2d_qops; in queue_init()
408 src_vq->mem_ops = &vb2_dma_contig_memops; in queue_init()
409 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
410 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
411 src_vq->lock = &ctx->ge2d->mutex; in queue_init()
412 src_vq->dev = ctx->ge2d->v4l2_dev.dev; in queue_init()
[all …]
/drivers/media/platform/qcom/venus/
Dvenc.c1294 static int m2m_queue_init(void *priv, struct vb2_queue *src_vq, in m2m_queue_init() argument
1300 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in m2m_queue_init()
1301 src_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in m2m_queue_init()
1302 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in m2m_queue_init()
1303 src_vq->ops = &venc_vb2_ops; in m2m_queue_init()
1304 src_vq->mem_ops = &vb2_dma_contig_memops; in m2m_queue_init()
1305 src_vq->drv_priv = inst; in m2m_queue_init()
1306 src_vq->buf_struct_size = sizeof(struct venus_buffer); in m2m_queue_init()
1307 src_vq->allow_zero_bytesused = 1; in m2m_queue_init()
1308 src_vq->min_buffers_needed = 1; in m2m_queue_init()
[all …]
/drivers/media/platform/renesas/
Drcar_jpu.c1184 static int jpu_queue_init(void *priv, struct vb2_queue *src_vq, in jpu_queue_init() argument
1190 memset(src_vq, 0, sizeof(*src_vq)); in jpu_queue_init()
1191 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in jpu_queue_init()
1192 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in jpu_queue_init()
1193 src_vq->drv_priv = ctx; in jpu_queue_init()
1194 src_vq->buf_struct_size = sizeof(struct jpu_buffer); in jpu_queue_init()
1195 src_vq->ops = &jpu_qops; in jpu_queue_init()
1196 src_vq->mem_ops = &vb2_dma_contig_memops; in jpu_queue_init()
1197 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in jpu_queue_init()
1198 src_vq->lock = &ctx->jpu->mutex; in jpu_queue_init()
[all …]
/drivers/media/test-drivers/
Dvim2m.c1108 static int queue_init(void *priv, struct vb2_queue *src_vq, in queue_init() argument
1114 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in queue_init()
1115 src_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init()
1116 src_vq->drv_priv = ctx; in queue_init()
1117 src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init()
1118 src_vq->ops = &vim2m_qops; in queue_init()
1119 src_vq->mem_ops = &vb2_vmalloc_memops; in queue_init()
1120 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init()
1121 src_vq->lock = &ctx->vb_mutex; in queue_init()
1122 src_vq->supports_requests = true; in queue_init()
[all …]

12