Lines Matching refs:q
98 struct cx23885_dmaqueue *q, u32 count) in cx23885_video_wakeup() argument
102 if (list_empty(&q->active)) in cx23885_video_wakeup()
104 buf = list_entry(q->active.next, in cx23885_video_wakeup()
107 buf->vb.sequence = q->count++; in cx23885_video_wakeup()
110 buf->vb.vb2_buf.index, count, q->count); in cx23885_video_wakeup()
291 struct cx23885_dmaqueue *q, in cx23885_start_video_dma() argument
305 q->count = 0; in cx23885_start_video_dma()
318 static int queue_setup(struct vb2_queue *q, const void *parg, in queue_setup() argument
322 struct cx23885_dev *dev = q->drv_priv; in queue_setup()
448 struct cx23885_dmaqueue *q = &dev->vidq; in buffer_queue() local
458 if (list_empty(&q->active)) { in buffer_queue()
459 list_add_tail(&buf->queue, &q->active); in buffer_queue()
464 prev = list_entry(q->active.prev, struct cx23885_buffer, in buffer_queue()
466 list_add_tail(&buf->queue, &q->active); in buffer_queue()
474 static int cx23885_start_streaming(struct vb2_queue *q, unsigned int count) in cx23885_start_streaming() argument
476 struct cx23885_dev *dev = q->drv_priv; in cx23885_start_streaming()
485 static void cx23885_stop_streaming(struct vb2_queue *q) in cx23885_stop_streaming() argument
487 struct cx23885_dev *dev = q->drv_priv; in cx23885_stop_streaming()
1141 struct vb2_queue *q; in cx23885_video_register() local
1221 q = &dev->vb2_vidq; in cx23885_video_register()
1222 q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in cx23885_video_register()
1223 q->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF | VB2_READ; in cx23885_video_register()
1224 q->gfp_flags = GFP_DMA32; in cx23885_video_register()
1225 q->min_buffers_needed = 2; in cx23885_video_register()
1226 q->drv_priv = dev; in cx23885_video_register()
1227 q->buf_struct_size = sizeof(struct cx23885_buffer); in cx23885_video_register()
1228 q->ops = &cx23885_video_qops; in cx23885_video_register()
1229 q->mem_ops = &vb2_dma_sg_memops; in cx23885_video_register()
1230 q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in cx23885_video_register()
1231 q->lock = &dev->lock; in cx23885_video_register()
1233 err = vb2_queue_init(q); in cx23885_video_register()
1237 q = &dev->vb2_vbiq; in cx23885_video_register()
1238 q->type = V4L2_BUF_TYPE_VBI_CAPTURE; in cx23885_video_register()
1239 q->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF | VB2_READ; in cx23885_video_register()
1240 q->gfp_flags = GFP_DMA32; in cx23885_video_register()
1241 q->min_buffers_needed = 2; in cx23885_video_register()
1242 q->drv_priv = dev; in cx23885_video_register()
1243 q->buf_struct_size = sizeof(struct cx23885_buffer); in cx23885_video_register()
1244 q->ops = &cx23885_vbi_qops; in cx23885_video_register()
1245 q->mem_ops = &vb2_dma_sg_memops; in cx23885_video_register()
1246 q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in cx23885_video_register()
1247 q->lock = &dev->lock; in cx23885_video_register()
1249 err = vb2_queue_init(q); in cx23885_video_register()