Lines Matching defs:queue

325  * Video queue operations
328 static int isp_video_queue_setup(struct vb2_queue *queue,
332 struct isp_video_fh *vfh = vb2_get_drv_priv(queue);
357 * queue handler, which can't return an error, this check is just a best
378 * isp_video_buffer_queue - Add buffer to streaming queue
419 video->ops->queue(video, buffer);
457 static int isp_video_start_streaming(struct vb2_queue *queue,
460 struct isp_video_fh *vfh = vb2_get_drv_priv(queue);
501 * Remove the current video buffer from the DMA queue and fill its timestamp and
508 * The DMA queue is expected to contain at least one buffer.
510 * Return a pointer to the next buffer in the DMA queue, or NULL if the queue is
619 * requests video queue layer to discard buffers marked as DONE if it's in
620 * continuous mode and requests ISP modules to queue again the ACTIVE buffer
629 vb2_discard_done(video->queue);
636 video->ops->queue(video, buf);
907 ret = vb2_reqbufs(&vfh->queue, rb);
921 ret = vb2_querybuf(&vfh->queue, b);
935 ret = vb2_qbuf(&vfh->queue, video->video.v4l2_dev->mdev, b);
949 ret = vb2_dqbuf(&vfh->queue, b, file->f_flags & O_NONBLOCK);
1074 * and output. The pipeline must be started in the videobuf queue callback with
1075 * the buffers queue spinlock held. The modules subdev set stream operation must
1148 video->queue = &vfh->queue;
1154 ret = vb2_streamon(&vfh->queue, type);
1167 /* The DMA queue must be emptied here, otherwise CCDC interrupts that
1170 * DMA queue. This can easily get triggered if the above
1175 video->queue = NULL;
1202 streaming = vb2_is_streaming(&vfh->queue);
1225 vb2_streamoff(&vfh->queue, type);
1227 video->queue = NULL;
1297 struct vb2_queue *queue;
1319 queue = &handle->queue;
1320 queue->type = video->type;
1321 queue->io_modes = VB2_MMAP | VB2_USERPTR;
1322 queue->drv_priv = handle;
1323 queue->ops = &isp_video_queue_ops;
1324 queue->mem_ops = &vb2_dma_contig_memops;
1325 queue->buf_struct_size = sizeof(struct isp_buffer);
1326 queue->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
1327 queue->dev = video->isp->dev;
1329 ret = vb2_queue_init(&handle->queue);
1358 /* Disable streaming and free the buffers queue resources. */
1362 vb2_queue_release(&handle->queue);
1385 ret = vb2_poll(&vfh->queue, file, wait);
1395 return vb2_mmap(&vfh->queue, vma);