/drivers/staging/media/sunxi/cedrus/ |
D | cedrus_video.c | 510 struct vb2_queue *dst_vq) in cedrus_queue_init() argument 532 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in cedrus_queue_init() 533 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in cedrus_queue_init() 534 dst_vq->drv_priv = ctx; in cedrus_queue_init() 535 dst_vq->buf_struct_size = sizeof(struct cedrus_buffer); in cedrus_queue_init() 536 dst_vq->min_buffers_needed = 1; in cedrus_queue_init() 537 dst_vq->ops = &cedrus_qops; in cedrus_queue_init() 538 dst_vq->mem_ops = &vb2_dma_contig_memops; in cedrus_queue_init() 539 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in cedrus_queue_init() 540 dst_vq->lock = &ctx->dev->dev_mutex; in cedrus_queue_init() [all …]
|
D | cedrus_video.h | 28 struct vb2_queue *dst_vq);
|
/drivers/staging/media/hantro/ |
D | hantro_drv.c | 211 queue_init(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq) in queue_init() argument 247 dst_vq->mem_ops = &vb2_vmalloc_memops; in queue_init() 249 dst_vq->bidirectional = true; in queue_init() 250 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 251 dst_vq->dma_attrs = DMA_ATTR_ALLOC_SINGLE_PAGES | in queue_init() 255 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in queue_init() 256 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init() 257 dst_vq->drv_priv = ctx; in queue_init() 258 dst_vq->ops = &hantro_queue_ops; in queue_init() 259 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() [all …]
|
/drivers/media/platform/exynos-gsc/ |
D | gsc-m2m.c | 579 struct vb2_queue *dst_vq) in queue_init() argument 599 memset(dst_vq, 0, sizeof(*dst_vq)); in queue_init() 600 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in queue_init() 601 dst_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init() 602 dst_vq->drv_priv = ctx; in queue_init() 603 dst_vq->ops = &gsc_m2m_qops; in queue_init() 604 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 605 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 606 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 607 dst_vq->lock = &ctx->gsc_dev->lock; in queue_init() [all …]
|
/drivers/staging/media/imx/ |
D | imx-media-csc-scaler.c | 579 struct vb2_queue *dst_vq) in ipu_csc_scaler_queue_init() argument 599 memset(dst_vq, 0, sizeof(*dst_vq)); in ipu_csc_scaler_queue_init() 600 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in ipu_csc_scaler_queue_init() 601 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in ipu_csc_scaler_queue_init() 602 dst_vq->drv_priv = ctx; in ipu_csc_scaler_queue_init() 603 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in ipu_csc_scaler_queue_init() 604 dst_vq->ops = &ipu_csc_scaler_qops; in ipu_csc_scaler_queue_init() 605 dst_vq->mem_ops = &vb2_dma_contig_memops; in ipu_csc_scaler_queue_init() 606 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in ipu_csc_scaler_queue_init() 607 dst_vq->lock = &ctx->priv->mutex; in ipu_csc_scaler_queue_init() [all …]
|
/drivers/media/platform/ |
D | mx2_emmaprp.c | 685 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 …]
|
D | sh_veu.c | 297 struct vb2_queue *dst_vq); 920 struct vb2_queue *dst_vq) in sh_veu_queue_init() argument 940 memset(dst_vq, 0, sizeof(*dst_vq)); in sh_veu_queue_init() 941 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in sh_veu_queue_init() 942 dst_vq->io_modes = VB2_MMAP | VB2_USERPTR; in sh_veu_queue_init() 943 dst_vq->drv_priv = veu; in sh_veu_queue_init() 944 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in sh_veu_queue_init() 945 dst_vq->ops = &sh_veu_qops; in sh_veu_queue_init() 946 dst_vq->mem_ops = &vb2_dma_contig_memops; in sh_veu_queue_init() 947 dst_vq->lock = &veu->fop_lock; in sh_veu_queue_init() [all …]
|
D | m2m-deinterlace.c | 796 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 …]
|
D | rcar_jpu.c | 1191 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 …]
|
D | imx-pxp.c | 1470 struct vb2_queue *dst_vq) in queue_init() argument 1489 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in queue_init() 1490 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in queue_init() 1491 dst_vq->drv_priv = ctx; in queue_init() 1492 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 1493 dst_vq->ops = &pxp_qops; in queue_init() 1494 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 1495 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 1496 dst_vq->lock = &ctx->dev->dev_mutex; in queue_init() 1497 dst_vq->dev = ctx->dev->v4l2_dev.dev; in queue_init() [all …]
|
D | vim2m.c | 1126 struct vb2_queue *dst_vq) in queue_init() argument 1145 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in queue_init() 1146 dst_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init() 1147 dst_vq->drv_priv = ctx; in queue_init() 1148 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 1149 dst_vq->ops = &vim2m_qops; in queue_init() 1150 dst_vq->mem_ops = &vb2_vmalloc_memops; in queue_init() 1151 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 1152 dst_vq->lock = &ctx->vb_mutex; in queue_init() 1154 return vb2_queue_init(dst_vq); in queue_init()
|
/drivers/media/platform/exynos4-is/ |
D | fimc-m2m.c | 551 struct vb2_queue *dst_vq) in queue_init() argument 570 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in queue_init() 571 dst_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in queue_init() 572 dst_vq->drv_priv = ctx; in queue_init() 573 dst_vq->ops = &fimc_qops; in queue_init() 574 dst_vq->mem_ops = &vb2_dma_contig_memops; in queue_init() 575 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 576 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in queue_init() 577 dst_vq->lock = &ctx->fimc_dev->lock; in queue_init() 578 dst_vq->dev = &ctx->fimc_dev->pdev->dev; in queue_init() [all …]
|
/drivers/media/platform/s5p-g2d/ |
D | g2d.c | 141 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 …]
|
/drivers/media/platform/rockchip/rga/ |
D | rga.c | 97 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 …]
|
/drivers/staging/media/meson/vdec/ |
D | vdec.c | 785 struct vb2_queue *dst_vq) in m2m_queue_init() argument 804 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in m2m_queue_init() 805 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in m2m_queue_init() 806 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in m2m_queue_init() 807 dst_vq->ops = &vdec_vb2_ops; in m2m_queue_init() 808 dst_vq->mem_ops = &vb2_dma_contig_memops; in m2m_queue_init() 809 dst_vq->drv_priv = sess; in m2m_queue_init() 810 dst_vq->buf_struct_size = sizeof(struct dummy_buf); in m2m_queue_init() 811 dst_vq->min_buffers_needed = 1; in m2m_queue_init() 812 dst_vq->dev = sess->core->dev; in m2m_queue_init() [all …]
|
/drivers/media/platform/mtk-vcodec/ |
D | mtk_vcodec_dec.c | 503 struct vb2_queue *src_vq, *dst_vq; in vidioc_decoder_cmd() local 511 dst_vq = v4l2_m2m_get_vq(ctx->m2m_ctx, in vidioc_decoder_cmd() 521 if (!vb2_is_streaming(dst_vq)) { in vidioc_decoder_cmd() 530 vb2_clear_last_buffer_dequeued(dst_vq); in vidioc_decoder_cmd() 1479 struct vb2_queue *dst_vq) in mtk_vcodec_dec_queue_init() argument 1501 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in mtk_vcodec_dec_queue_init() 1502 dst_vq->io_modes = VB2_DMABUF | VB2_MMAP; in mtk_vcodec_dec_queue_init() 1503 dst_vq->drv_priv = ctx; in mtk_vcodec_dec_queue_init() 1504 dst_vq->buf_struct_size = sizeof(struct mtk_video_dec_buf); in mtk_vcodec_dec_queue_init() 1505 dst_vq->ops = &mtk_vdec_vb2_ops; in mtk_vcodec_dec_queue_init() [all …]
|
D | mtk_vcodec_enc.c | 1273 struct vb2_queue *dst_vq) in mtk_vcodec_enc_queue_init() argument 1297 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in mtk_vcodec_enc_queue_init() 1298 dst_vq->io_modes = VB2_DMABUF | VB2_MMAP | VB2_USERPTR; in mtk_vcodec_enc_queue_init() 1299 dst_vq->drv_priv = ctx; in mtk_vcodec_enc_queue_init() 1300 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in mtk_vcodec_enc_queue_init() 1301 dst_vq->ops = &mtk_venc_vb2_ops; in mtk_vcodec_enc_queue_init() 1302 dst_vq->mem_ops = &vb2_dma_contig_memops; in mtk_vcodec_enc_queue_init() 1303 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in mtk_vcodec_enc_queue_init() 1304 dst_vq->lock = &ctx->dev->dev_mutex; in mtk_vcodec_enc_queue_init() 1305 dst_vq->dev = &ctx->dev->plat_dev->dev; in mtk_vcodec_enc_queue_init() [all …]
|
/drivers/media/platform/mtk-mdp/ |
D | mtk_mdp_m2m.c | 953 struct vb2_queue *dst_vq) in mtk_mdp_m2m_queue_init() argument 973 memset(dst_vq, 0, sizeof(*dst_vq)); in mtk_mdp_m2m_queue_init() 974 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in mtk_mdp_m2m_queue_init() 975 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in mtk_mdp_m2m_queue_init() 976 dst_vq->drv_priv = ctx; in mtk_mdp_m2m_queue_init() 977 dst_vq->ops = &mtk_mdp_m2m_qops; in mtk_mdp_m2m_queue_init() 978 dst_vq->mem_ops = &vb2_dma_contig_memops; in mtk_mdp_m2m_queue_init() 979 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in mtk_mdp_m2m_queue_init() 980 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in mtk_mdp_m2m_queue_init() 981 dst_vq->dev = &ctx->mdp_dev->pdev->dev; in mtk_mdp_m2m_queue_init() [all …]
|
/drivers/media/platform/sti/bdisp/ |
D | bdisp-v4l2.c | 541 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 …]
|
/drivers/media/platform/mtk-jpeg/ |
D | mtk_jpeg_core.c | 685 struct vb2_queue *dst_vq = v4l2_m2m_get_vq( in mtk_jpeg_buf_queue() local 690 ctx->state = vb2_is_streaming(dst_vq) ? in mtk_jpeg_buf_queue() 862 struct vb2_queue *dst_vq) in mtk_jpeg_queue_init() argument 880 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in mtk_jpeg_queue_init() 881 dst_vq->io_modes = VB2_DMABUF | VB2_MMAP; in mtk_jpeg_queue_init() 882 dst_vq->drv_priv = ctx; in mtk_jpeg_queue_init() 883 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in mtk_jpeg_queue_init() 884 dst_vq->ops = &mtk_jpeg_qops; in mtk_jpeg_queue_init() 885 dst_vq->mem_ops = &vb2_dma_contig_memops; in mtk_jpeg_queue_init() 886 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in mtk_jpeg_queue_init() [all …]
|
/drivers/media/platform/qcom/venus/ |
D | venc.c | 1086 struct vb2_queue *dst_vq) in m2m_queue_init() argument 1107 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in m2m_queue_init() 1108 dst_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; in m2m_queue_init() 1109 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in m2m_queue_init() 1110 dst_vq->ops = &venc_vb2_ops; in m2m_queue_init() 1111 dst_vq->mem_ops = &vb2_dma_sg_memops; in m2m_queue_init() 1112 dst_vq->drv_priv = inst; in m2m_queue_init() 1113 dst_vq->buf_struct_size = sizeof(struct venus_buffer); in m2m_queue_init() 1114 dst_vq->allow_zero_bytesused = 1; in m2m_queue_init() 1115 dst_vq->min_buffers_needed = 1; in m2m_queue_init() [all …]
|
D | vdec.c | 1276 struct vb2_queue *dst_vq) in m2m_queue_init() argument 1295 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in m2m_queue_init() 1296 dst_vq->io_modes = VB2_MMAP | VB2_DMABUF; in m2m_queue_init() 1297 dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in m2m_queue_init() 1298 dst_vq->ops = &vdec_vb2_ops; in m2m_queue_init() 1299 dst_vq->mem_ops = &vb2_dma_sg_memops; in m2m_queue_init() 1300 dst_vq->drv_priv = inst; in m2m_queue_init() 1301 dst_vq->buf_struct_size = sizeof(struct venus_buffer); in m2m_queue_init() 1302 dst_vq->allow_zero_bytesused = 1; in m2m_queue_init() 1303 dst_vq->min_buffers_needed = 0; in m2m_queue_init() [all …]
|
/drivers/media/platform/coda/ |
D | coda.h | 189 struct vb2_queue *dst_vq); 296 struct vb2_queue *dst_vq); 298 struct vb2_queue *dst_vq);
|
D | coda-common.c | 804 struct vb2_queue *dst_vq; in coda_s_fmt_vid_out() local 832 dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); in coda_s_fmt_vid_out() 833 if (!dst_vq) in coda_s_fmt_vid_out() 842 if (vb2_is_busy(dst_vq)) in coda_s_fmt_vid_out() 1014 struct vb2_queue *dst_vq; in coda_wake_up_capture_queue() local 1018 dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); in coda_wake_up_capture_queue() 1019 dst_vq->last_buffer_dequeued = true; in coda_wake_up_capture_queue() 1020 wake_up(&dst_vq->done_wq); in coda_wake_up_capture_queue() 1076 struct vb2_queue *dst_vq; in coda_decoder_cmd() local 1090 dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in coda_decoder_cmd() [all …]
|
/drivers/media/platform/s5p-jpeg/ |
D | jpeg-core.c | 939 struct vb2_queue *dst_vq); 2544 struct vb2_queue *dst_vq; in s5p_jpeg_buf_queue() local 2548 dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in s5p_jpeg_buf_queue() 2569 if (vb2_is_streaming(dst_vq)) in s5p_jpeg_buf_queue() 2618 struct vb2_queue *dst_vq) in queue_init() argument 2637 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in queue_init() 2638 dst_vq->io_modes = VB2_MMAP | VB2_USERPTR; in queue_init() 2639 dst_vq->drv_priv = ctx; in queue_init() 2640 dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer); in queue_init() 2641 dst_vq->ops = &s5p_jpeg_qops; in queue_init() [all …]
|