Lines Matching defs:queue

318  * Video queue operations
321 static int isp_video_queue_setup(struct vb2_queue *queue,
325 struct isp_video_fh *vfh = vb2_get_drv_priv(queue);
350 * queue handler, which can't return an error, this check is just a best
371 * isp_video_buffer_queue - Add buffer to streaming queue
412 video->ops->queue(video, buffer);
450 static int isp_video_start_streaming(struct vb2_queue *queue,
453 struct isp_video_fh *vfh = vb2_get_drv_priv(queue);
494 * Remove the current video buffer from the DMA queue and fill its timestamp and
501 * The DMA queue is expected to contain at least one buffer.
503 * Return a pointer to the next buffer in the DMA queue, or NULL if the queue is
612 * requests video queue layer to discard buffers marked as DONE if it's in
613 * continuous mode and requests ISP modules to queue again the ACTIVE buffer
622 vb2_discard_done(video->queue);
629 video->ops->queue(video, buf);
902 ret = vb2_reqbufs(&vfh->queue, rb);
916 ret = vb2_querybuf(&vfh->queue, b);
930 ret = vb2_qbuf(&vfh->queue, video->video.v4l2_dev->mdev, b);
944 ret = vb2_dqbuf(&vfh->queue, b, file->f_flags & O_NONBLOCK);
1070 * and output. The pipeline must be started in the vb2 queue callback with
1071 * the buffers queue spinlock held. The modules subdev set stream operation must
1143 video->queue = &vfh->queue;
1149 ret = vb2_streamon(&vfh->queue, type);
1162 /* The DMA queue must be emptied here, otherwise CCDC interrupts that
1165 * DMA queue. This can easily get triggered if the above
1170 video->queue = NULL;
1197 streaming = vb2_is_streaming(&vfh->queue);
1220 vb2_streamoff(&vfh->queue, type);
1222 video->queue = NULL;
1292 struct vb2_queue *queue;
1314 queue = &handle->queue;
1315 queue->type = video->type;
1316 queue->io_modes = VB2_MMAP | VB2_USERPTR;
1317 queue->drv_priv = handle;
1318 queue->ops = &isp_video_queue_ops;
1319 queue->mem_ops = &vb2_dma_contig_memops;
1320 queue->buf_struct_size = sizeof(struct isp_buffer);
1321 queue->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
1322 queue->dev = video->isp->dev;
1324 ret = vb2_queue_init(&handle->queue);
1353 /* Disable streaming and free the buffers queue resources. */
1357 vb2_queue_release(&handle->queue);
1380 ret = vb2_poll(&vfh->queue, file, wait);
1390 return vb2_mmap(&vfh->queue, vma);