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.v4l2_buf.sequence = q->count++; in cx23885_video_wakeup()
110 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 struct v4l2_format *fmt, in queue_setup() argument
322 struct cx23885_dev *dev = q->drv_priv; in queue_setup()
445 struct cx23885_dmaqueue *q = &dev->vidq; in buffer_queue() local
455 if (list_empty(&q->active)) { in buffer_queue()
456 list_add_tail(&buf->queue, &q->active); in buffer_queue()
461 prev = list_entry(q->active.prev, struct cx23885_buffer, in buffer_queue()
463 list_add_tail(&buf->queue, &q->active); in buffer_queue()
471 static int cx23885_start_streaming(struct vb2_queue *q, unsigned int count) in cx23885_start_streaming() argument
473 struct cx23885_dev *dev = q->drv_priv; in cx23885_start_streaming()
482 static void cx23885_stop_streaming(struct vb2_queue *q) in cx23885_stop_streaming() argument
484 struct cx23885_dev *dev = q->drv_priv; in cx23885_stop_streaming()
1136 struct vb2_queue *q; in cx23885_video_register() local
1216 q = &dev->vb2_vidq; in cx23885_video_register()
1217 q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in cx23885_video_register()
1218 q->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF | VB2_READ; in cx23885_video_register()
1219 q->gfp_flags = GFP_DMA32; in cx23885_video_register()
1220 q->min_buffers_needed = 2; in cx23885_video_register()
1221 q->drv_priv = dev; in cx23885_video_register()
1222 q->buf_struct_size = sizeof(struct cx23885_buffer); in cx23885_video_register()
1223 q->ops = &cx23885_video_qops; in cx23885_video_register()
1224 q->mem_ops = &vb2_dma_sg_memops; in cx23885_video_register()
1225 q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in cx23885_video_register()
1226 q->lock = &dev->lock; in cx23885_video_register()
1228 err = vb2_queue_init(q); in cx23885_video_register()
1232 q = &dev->vb2_vbiq; in cx23885_video_register()
1233 q->type = V4L2_BUF_TYPE_VBI_CAPTURE; in cx23885_video_register()
1234 q->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF | VB2_READ; in cx23885_video_register()
1235 q->gfp_flags = GFP_DMA32; in cx23885_video_register()
1236 q->min_buffers_needed = 2; in cx23885_video_register()
1237 q->drv_priv = dev; in cx23885_video_register()
1238 q->buf_struct_size = sizeof(struct cx23885_buffer); in cx23885_video_register()
1239 q->ops = &cx23885_vbi_qops; in cx23885_video_register()
1240 q->mem_ops = &vb2_dma_sg_memops; in cx23885_video_register()
1241 q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in cx23885_video_register()
1242 q->lock = &dev->lock; in cx23885_video_register()
1244 err = vb2_queue_init(q); in cx23885_video_register()