Lines Matching refs:reqbufs
445 struct v4l2_requestbuffers *reqbufs) in reqbufs_output() argument
451 if (reqbufs->count == 0) { in reqbufs_output()
453 ret = vb2_reqbufs(&ctx->vq_src, reqbufs); in reqbufs_output()
468 reqbufs->count); in reqbufs_output()
469 ret = vb2_reqbufs(&ctx->vq_src, reqbufs); in reqbufs_output()
475 reqbufs->count = 0; in reqbufs_output()
476 vb2_reqbufs(&ctx->vq_src, reqbufs); in reqbufs_output()
493 struct v4l2_requestbuffers *reqbufs) in reqbufs_capture() argument
499 if (reqbufs->count == 0) { in reqbufs_capture()
501 ret = vb2_reqbufs(&ctx->vq_dst, reqbufs); in reqbufs_capture()
509 reqbufs->count); in reqbufs_capture()
510 ret = vb2_reqbufs(&ctx->vq_dst, reqbufs); in reqbufs_capture()
515 ctx->total_dpb_count = reqbufs->count; in reqbufs_capture()
520 reqbufs->count = 0; in reqbufs_capture()
521 vb2_reqbufs(&ctx->vq_dst, reqbufs); in reqbufs_capture()
548 struct v4l2_requestbuffers *reqbufs) in vidioc_reqbufs() argument
553 if (reqbufs->memory != V4L2_MEMORY_MMAP) { in vidioc_reqbufs()
558 if (reqbufs->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { in vidioc_reqbufs()
559 return reqbufs_output(dev, ctx, reqbufs); in vidioc_reqbufs()
560 } else if (reqbufs->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { in vidioc_reqbufs()
561 return reqbufs_capture(dev, ctx, reqbufs); in vidioc_reqbufs()