Home
last modified time | relevance | path

Searched refs:vidq (Results 1 – 25 of 41) sorted by relevance

12

/drivers/media/platform/
Dfsl-viu.c125 struct viu_dmaqueue vidq; member
290 static int restart_video_queue(struct viu_dmaqueue *vidq) in restart_video_queue() argument
294 dprintk(1, "%s vidq=%p\n", __func__, vidq); in restart_video_queue()
295 if (!list_empty(&vidq->active)) { in restart_video_queue()
296 buf = list_entry(vidq->active.next, struct viu_buf, vb.queue); in restart_video_queue()
300 viu_stop_dma(vidq->dev); in restart_video_queue()
303 list_for_each_entry_safe(buf, prev, &vidq->active, vb.queue) { in restart_video_queue()
308 mod_timer(&vidq->timeout, jiffies+BUFFER_TIMEOUT); in restart_video_queue()
314 if (list_empty(&vidq->queued)) in restart_video_queue()
316 buf = list_entry(vidq->queued.next, struct viu_buf, vb.queue); in restart_video_queue()
[all …]
/drivers/media/pci/solo6x10/
Dsolo6x10-v4l2.c488 if (vb2_is_busy(&solo_dev->vidq)) in solo_set_fmt_cap()
529 if (vb2_is_busy(&solo_dev->vidq)) in solo_set_video_type()
532 if (vb2_is_busy(&solo_dev->v4l2_enc[i]->vidq)) in solo_set_video_type()
657 solo_dev->vfd->queue = &solo_dev->vidq; in solo_v4l2_init()
669 solo_dev->vidq.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in solo_v4l2_init()
670 solo_dev->vidq.io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ; in solo_v4l2_init()
671 solo_dev->vidq.ops = &solo_video_qops; in solo_v4l2_init()
672 solo_dev->vidq.mem_ops = &vb2_dma_contig_memops; in solo_v4l2_init()
673 solo_dev->vidq.drv_priv = solo_dev; in solo_v4l2_init()
674 solo_dev->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in solo_v4l2_init()
[all …]
Dsolo6x10-v4l2-enc.c894 if (vb2_is_busy(&solo_enc->vidq)) in solo_enc_set_fmt_cap()
1049 if (vb2_is_streaming(&solo_enc->vidq)) in solo_s_parm()
1267 solo_enc->vidq.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in solo_enc_alloc()
1268 solo_enc->vidq.io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ; in solo_enc_alloc()
1269 solo_enc->vidq.ops = &solo_enc_video_qops; in solo_enc_alloc()
1270 solo_enc->vidq.mem_ops = &vb2_dma_sg_memops; in solo_enc_alloc()
1271 solo_enc->vidq.drv_priv = solo_enc; in solo_enc_alloc()
1272 solo_enc->vidq.gfp_flags = __GFP_DMA32 | __GFP_KSWAPD_RECLAIM; in solo_enc_alloc()
1273 solo_enc->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in solo_enc_alloc()
1274 solo_enc->vidq.buf_struct_size = sizeof(struct solo_vb2_buf); in solo_enc_alloc()
[all …]
Dsolo6x10.h171 struct vb2_queue vidq; member
266 struct vb2_queue vidq; member
/drivers/media/platform/sunxi/sun6i-csi/
Dsun6i_video.c601 struct vb2_queue *vidq = &video->vb2_vidq; in sun6i_video_init() local
630 vidq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in sun6i_video_init()
631 vidq->io_modes = VB2_MMAP | VB2_DMABUF; in sun6i_video_init()
632 vidq->drv_priv = video; in sun6i_video_init()
633 vidq->buf_struct_size = sizeof(struct sun6i_csi_buffer); in sun6i_video_init()
634 vidq->ops = &sun6i_csi_vb2_ops; in sun6i_video_init()
635 vidq->mem_ops = &vb2_dma_contig_memops; in sun6i_video_init()
636 vidq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in sun6i_video_init()
637 vidq->lock = &video->lock; in sun6i_video_init()
639 vidq->min_buffers_needed = 3; in sun6i_video_init()
[all …]
/drivers/media/usb/cx231xx/
Dcx231xx-vbi.c193 struct cx231xx_dmaqueue *vidq = &dev->vbi_mode.vidq; in vbi_buf_queue() local
197 list_add_tail(&buf->list, &vidq->active); in vbi_buf_queue()
204 struct cx231xx_dmaqueue *vidq = &dev->vbi_mode.vidq; in return_all_buffers() local
210 list_for_each_entry_safe(buf, node, &vidq->active, list) { in return_all_buffers()
220 struct cx231xx_dmaqueue *vidq = &dev->vbi_mode.vidq; in vbi_start_streaming() local
223 vidq->sequence = 0; in vbi_start_streaming()
261 container_of(dma_q, struct cx231xx_video_mode, vidq); in cx231xx_irq_vbi_callback()
345 struct cx231xx_dmaqueue *dma_q = &dev->vbi_mode.vidq; in cx231xx_init_vbi_isoc()
568 container_of(dma_q, struct cx231xx_video_mode, vidq); in get_next_vbi_buf()
Dcx231xx-video.c229 container_of(dma_q, struct cx231xx_video_mode, vidq); in get_next_buf()
736 struct cx231xx_dmaqueue *vidq = &dev->video_mode.vidq; in buffer_queue() local
740 list_add_tail(&buf->list, &vidq->active); in buffer_queue()
747 struct cx231xx_dmaqueue *vidq = &dev->video_mode.vidq; in return_all_buffers() local
756 list_for_each_entry_safe(buf, node, &vidq->active, list) { in return_all_buffers()
766 struct cx231xx_dmaqueue *vidq = &dev->video_mode.vidq; in start_streaming() local
769 vidq->sequence = 0; in start_streaming()
902 if (vb2_is_busy(&dev->vidq)) { in vidioc_s_fmt_vid_cap()
937 if (vb2_is_busy(&dev->vidq)) in vidioc_s_std()
1805 q = &dev->vidq; in cx231xx_register_analog_devices()
Dcx231xx-417.c1370 struct cx231xx_dmaqueue *vidq = &dev->video_mode.vidq; in buffer_queue() local
1374 list_add_tail(&buf->list, &vidq->active); in buffer_queue()
1381 struct cx231xx_dmaqueue *vidq = &dev->video_mode.vidq; in return_all_buffers() local
1386 list_for_each_entry_safe(buf, node, &vidq->active, list) { in return_all_buffers()
1396 struct cx231xx_dmaqueue *vidq = &dev->video_mode.vidq; in start_streaming() local
1399 vidq->sequence = 0; in start_streaming()
Dcx231xx-core.c784 container_of(dma_q, struct cx231xx_video_mode, vidq); in cx231xx_isoc_irq_callback()
830 container_of(dma_q, struct cx231xx_video_mode, vidq); in cx231xx_bulk_irq_callback()
867 struct cx231xx_dmaqueue *dma_q = &dev->video_mode.vidq; in cx231xx_uninit_isoc()
926 struct cx231xx_dmaqueue *dma_q = &dev->video_mode.vidq; in cx231xx_uninit_bulk()
987 struct cx231xx_dmaqueue *dma_q = &dev->video_mode.vidq; in cx231xx_init_isoc()
1124 struct cx231xx_dmaqueue *dma_q = &dev->video_mode.vidq; in cx231xx_init_bulk()
/drivers/media/pci/dt3155/
Ddt3155.c340 if (vb2_is_busy(&pd->vidq)) in dt3155_s_std()
519 pd->vidq.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in dt3155_probe()
520 pd->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in dt3155_probe()
521 pd->vidq.io_modes = VB2_MMAP | VB2_DMABUF | VB2_READ; in dt3155_probe()
522 pd->vidq.ops = &q_ops; in dt3155_probe()
523 pd->vidq.mem_ops = &vb2_dma_contig_memops; in dt3155_probe()
524 pd->vidq.drv_priv = pd; in dt3155_probe()
525 pd->vidq.min_buffers_needed = 2; in dt3155_probe()
526 pd->vidq.gfp_flags = GFP_DMA32; in dt3155_probe()
527 pd->vidq.lock = &pd->mux; /* for locking v4l2_file_operations */ in dt3155_probe()
[all …]
Ddt3155.h174 struct vb2_queue vidq; member
/drivers/media/pci/tw68/
Dtw68-video.c729 if (vb2_is_busy(&dev->vidq)) in tw68_s_std()
946 dev->vidq.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in tw68_video_init2()
947 dev->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in tw68_video_init2()
948 dev->vidq.io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ | VB2_DMABUF; in tw68_video_init2()
949 dev->vidq.ops = &tw68_video_qops; in tw68_video_init2()
950 dev->vidq.mem_ops = &vb2_dma_sg_memops; in tw68_video_init2()
951 dev->vidq.drv_priv = dev; in tw68_video_init2()
952 dev->vidq.gfp_flags = __GFP_DMA32 | __GFP_KSWAPD_RECLAIM; in tw68_video_init2()
953 dev->vidq.buf_struct_size = sizeof(struct tw68_buf); in tw68_video_init2()
954 dev->vidq.lock = &dev->lock; in tw68_video_init2()
[all …]
Dtw68.h156 struct vb2_queue vidq; member
/drivers/media/pci/tw686x/
Dtw686x-video.c744 if (vb2_is_busy(&vc->vidq)) in tw686x_s_fmt_vid_cap()
814 if (vb2_is_busy(&vc->vidq)) in tw686x_s_std()
843 if (vb2_is_streaming(&vc->vidq)) in tw686x_querystd()
963 if (vb2_is_busy(&vc->vidq)) in tw686x_s_parm()
1004 if (vb2_is_busy(&vc->vidq)) in tw686x_s_input()
1220 vc->vidq.io_modes = VB2_READ | VB2_MMAP | VB2_DMABUF; in tw686x_video_init()
1221 vc->vidq.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in tw686x_video_init()
1222 vc->vidq.drv_priv = vc; in tw686x_video_init()
1223 vc->vidq.buf_struct_size = sizeof(struct tw686x_v4l2_buf); in tw686x_video_init()
1224 vc->vidq.ops = &tw686x_video_qops; in tw686x_video_init()
[all …]
Dtw686x.h81 struct vb2_queue vidq; member
/drivers/media/usb/go7007/
Dgo7007-v4l2.c337 if (vb2_is_busy(&go->vidq)) in vidioc_s_fmt_vid_cap()
586 if (vb2_is_busy(&go->vidq)) in vidioc_s_std()
700 if (vb2_is_busy(&go->vidq)) in vidioc_s_input()
1083 go->vidq.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in go7007_v4l2_init()
1084 go->vidq.io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ; in go7007_v4l2_init()
1085 go->vidq.ops = &go7007_video_qops; in go7007_v4l2_init()
1086 go->vidq.mem_ops = &vb2_vmalloc_memops; in go7007_v4l2_init()
1087 go->vidq.drv_priv = go; in go7007_v4l2_init()
1088 go->vidq.buf_struct_size = sizeof(struct go7007_buffer); in go7007_v4l2_init()
1089 go->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in go7007_v4l2_init()
[all …]
/drivers/media/pci/tw5864/
Dtw5864-video.c1109 input->vidq.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in tw5864_video_input_init()
1110 input->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in tw5864_video_input_init()
1111 input->vidq.io_modes = VB2_MMAP | VB2_READ | VB2_DMABUF; in tw5864_video_input_init()
1112 input->vidq.ops = &tw5864_video_qops; in tw5864_video_input_init()
1113 input->vidq.mem_ops = &vb2_dma_contig_memops; in tw5864_video_input_init()
1114 input->vidq.drv_priv = input; in tw5864_video_input_init()
1115 input->vidq.gfp_flags = 0; in tw5864_video_input_init()
1116 input->vidq.buf_struct_size = sizeof(struct tw5864_buf); in tw5864_video_input_init()
1117 input->vidq.lock = &input->lock; in tw5864_video_input_init()
1118 input->vidq.min_buffers_needed = 2; in tw5864_video_input_init()
[all …]
Dtw5864.h91 struct vb2_queue vidq; member
/drivers/media/usb/tm6000/
Dtm6000-video.c83 struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq); in get_next_buf()
119 struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq); in copy_streams()
287 struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq); in copy_multiplexed()
372 struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq); in tm6000_isoc_copy()
418 struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq); in tm6000_irq_callback()
552 struct tm6000_dmaqueue *dma_q = &dev->vidq; in tm6000_prepare_isoc()
645 struct tm6000_dmaqueue *dma_q = &dev->vidq; in tm6000_start_thread()
776 struct tm6000_dmaqueue *vidq = &dev->vidq; in buffer_queue() local
779 list_add_tail(&buf->vb.queue, &vidq->active); in buffer_queue()
1346 fh, dev, &dev->vidq); in __tm6000_open()
[all …]
/drivers/media/usb/au0828/
Dau0828-video.c113 struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vidq); in au0828_irq_callback()
199 struct au0828_dmaqueue *dma_q = &dev->vidq; in au0828_init_isoc()
393 struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vidq); in get_next_buf()
724 struct au0828_dmaqueue *vidq = &dev->vidq; in buffer_queue() local
731 list_add_tail(&buf->list, &vidq->active); in buffer_queue()
853 struct au0828_dmaqueue *vidq = &dev->vidq; in au0828_stop_streaming() local
872 while (!list_empty(&vidq->active)) { in au0828_stop_streaming()
875 buf = list_entry(vidq->active.next, struct au0828_buffer, list); in au0828_stop_streaming()
957 struct au0828_dmaqueue *dma_q = &dev->vidq; in au0828_vid_buffer_timeout()
1953 INIT_LIST_HEAD(&dev->vidq.active); in au0828_analog_register()
/drivers/media/platform/ti-vpe/
Dcal-video.c578 struct cal_dmaqueue *vidq = &ctx->vidq; in cal_buffer_queue() local
583 list_add_tail(&buf->list, &vidq->active); in cal_buffer_queue()
590 struct cal_dmaqueue *dma_q = &ctx->vidq; in cal_start_streaming()
649 struct cal_dmaqueue *dma_q = &ctx->vidq; in cal_stop_streaming()
833 INIT_LIST_HEAD(&ctx->vidq.active); in cal_ctx_v4l2_init()
/drivers/media/pci/cx88/
Dcx88-video.c506 struct cx88_dmaqueue *q = &dev->vidq; in buffer_queue()
531 struct cx88_dmaqueue *dmaq = &dev->vidq; in start_streaming()
543 struct cx88_dmaqueue *dmaq = &dev->vidq; in stop_streaming()
1088 cx88_wakeup(core, &dev->vidq, count); in cx8800_vid_irq()
1302 INIT_LIST_HEAD(&dev->vidq.active); in cx8800_initdev()
1561 if (!list_empty(&dev->vidq.active)) { in cx8800_suspend()
1597 if (!list_empty(&dev->vidq.active)) { in cx8800_resume()
1599 restart_video_queue(dev, &dev->vidq); in cx8800_resume()
/drivers/media/usb/em28xx/
Dem28xx-video.c650 struct em28xx_dmaqueue *dma_q = &dev->vidq; in process_frame_data_em28xx()
733 struct em28xx_dmaqueue *dmaq = &dev->vidq; in process_frame_data_em25xx()
1151 struct em28xx_dmaqueue *vidq = &dev->vidq; in em28xx_stop_streaming() local
1172 while (!list_empty(&vidq->active)) { in em28xx_stop_streaming()
1175 buf = list_entry(vidq->active.next, struct em28xx_buffer, list); in em28xx_stop_streaming()
1224 struct em28xx_dmaqueue *vidq = &dev->vidq; in buffer_queue() local
1232 list_add_tail(&buf->list, &vidq->active); in buffer_queue()
2663 INIT_LIST_HEAD(&dev->vidq.active); in em28xx_v4l2_init()
/drivers/media/pci/cx23885/
Dcx23885-video.c461 struct cx23885_dmaqueue *q = &dev->vidq; in buffer_queue()
490 struct cx23885_dmaqueue *dmaq = &dev->vidq; in cx23885_start_streaming()
501 struct cx23885_dmaqueue *dmaq = &dev->vidq; in cx23885_stop_streaming()
1140 cx23885_video_wakeup(dev, &dev->vidq, count); in cx23885_video_irq()
1255 INIT_LIST_HEAD(&dev->vidq.active); in cx23885_video_register()
/drivers/media/usb/zr364xx/
Dzr364xx.c172 struct zr364xx_dmaqueue vidq; member
412 list_add_tail(&buf->vb.queue, &cam->vidq.active); in buffer_queue()
515 struct zr364xx_dmaqueue *dma_q = &cam->vidq; in zr364xx_got_frame()
1513 INIT_LIST_HEAD(&cam->vidq.active); in zr364xx_probe()
1514 cam->vidq.cam = cam; in zr364xx_probe()

12