/Linux-v4.19/drivers/media/platform/ |
D | fsl-viu.c | 130 struct viu_dmaqueue vidq; member 295 static int restart_video_queue(struct viu_dmaqueue *vidq) in restart_video_queue() argument 299 dprintk(1, "%s vidq=%p\n", __func__, vidq); in restart_video_queue() 300 if (!list_empty(&vidq->active)) { in restart_video_queue() 301 buf = list_entry(vidq->active.next, struct viu_buf, vb.queue); in restart_video_queue() 305 viu_stop_dma(vidq->dev); in restart_video_queue() 308 list_for_each_entry_safe(buf, prev, &vidq->active, vb.queue) { in restart_video_queue() 313 mod_timer(&vidq->timeout, jiffies+BUFFER_TIMEOUT); in restart_video_queue() 319 if (list_empty(&vidq->queued)) in restart_video_queue() 321 buf = list_entry(vidq->queued.next, struct viu_buf, vb.queue); in restart_video_queue() [all …]
|
/Linux-v4.19/drivers/media/pci/solo6x10/ |
D | solo6x10-v4l2.c | 503 if (vb2_is_busy(&solo_dev->vidq)) in solo_set_fmt_cap() 545 if (vb2_is_busy(&solo_dev->vidq)) in solo_set_video_type() 548 if (vb2_is_busy(&solo_dev->v4l2_enc[i]->vidq)) in solo_set_video_type() 671 solo_dev->vfd->queue = &solo_dev->vidq; in solo_v4l2_init() 683 solo_dev->vidq.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in solo_v4l2_init() 684 solo_dev->vidq.io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ; in solo_v4l2_init() 685 solo_dev->vidq.ops = &solo_video_qops; in solo_v4l2_init() 686 solo_dev->vidq.mem_ops = &vb2_dma_contig_memops; in solo_v4l2_init() 687 solo_dev->vidq.drv_priv = solo_dev; in solo_v4l2_init() 688 solo_dev->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in solo_v4l2_init() [all …]
|
D | solo6x10-v4l2-enc.c | 913 if (vb2_is_busy(&solo_enc->vidq)) in solo_enc_set_fmt_cap() 1069 if (vb2_is_streaming(&solo_enc->vidq)) in solo_s_parm() 1284 solo_enc->vidq.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in solo_enc_alloc() 1285 solo_enc->vidq.io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ; in solo_enc_alloc() 1286 solo_enc->vidq.ops = &solo_enc_video_qops; in solo_enc_alloc() 1287 solo_enc->vidq.mem_ops = &vb2_dma_sg_memops; in solo_enc_alloc() 1288 solo_enc->vidq.drv_priv = solo_enc; in solo_enc_alloc() 1289 solo_enc->vidq.gfp_flags = __GFP_DMA32 | __GFP_KSWAPD_RECLAIM; in solo_enc_alloc() 1290 solo_enc->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in solo_enc_alloc() 1291 solo_enc->vidq.buf_struct_size = sizeof(struct solo_vb2_buf); in solo_enc_alloc() [all …]
|
D | solo6x10.h | 180 struct vb2_queue vidq; member 275 struct vb2_queue vidq; member
|
/Linux-v4.19/drivers/media/pci/dt3155/ |
D | dt3155.c | 357 if (vb2_is_busy(&pd->vidq)) in dt3155_s_std() 537 pd->vidq.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in dt3155_probe() 538 pd->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in dt3155_probe() 539 pd->vidq.io_modes = VB2_MMAP | VB2_DMABUF | VB2_READ; in dt3155_probe() 540 pd->vidq.ops = &q_ops; in dt3155_probe() 541 pd->vidq.mem_ops = &vb2_dma_contig_memops; in dt3155_probe() 542 pd->vidq.drv_priv = pd; in dt3155_probe() 543 pd->vidq.min_buffers_needed = 2; in dt3155_probe() 544 pd->vidq.gfp_flags = GFP_DMA32; in dt3155_probe() 545 pd->vidq.lock = &pd->mux; /* for locking v4l2_file_operations */ in dt3155_probe() [all …]
|
D | dt3155.h | 182 struct vb2_queue vidq; member
|
/Linux-v4.19/drivers/media/pci/tw68/ |
D | tw68-video.c | 755 if (vb2_is_busy(&dev->vidq)) in tw68_s_std() 973 dev->vidq.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in tw68_video_init2() 974 dev->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in tw68_video_init2() 975 dev->vidq.io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ | VB2_DMABUF; in tw68_video_init2() 976 dev->vidq.ops = &tw68_video_qops; in tw68_video_init2() 977 dev->vidq.mem_ops = &vb2_dma_sg_memops; in tw68_video_init2() 978 dev->vidq.drv_priv = dev; in tw68_video_init2() 979 dev->vidq.gfp_flags = __GFP_DMA32 | __GFP_KSWAPD_RECLAIM; in tw68_video_init2() 980 dev->vidq.buf_struct_size = sizeof(struct tw68_buf); in tw68_video_init2() 981 dev->vidq.lock = &dev->lock; in tw68_video_init2() [all …]
|
D | tw68.h | 166 struct vb2_queue vidq; member
|
/Linux-v4.19/drivers/media/pci/tw686x/ |
D | tw686x-video.c | 748 if (vb2_is_busy(&vc->vidq)) in tw686x_s_fmt_vid_cap() 821 if (vb2_is_busy(&vc->vidq)) in tw686x_s_std() 850 if (vb2_is_streaming(&vc->vidq)) in tw686x_querystd() 970 if (vb2_is_busy(&vc->vidq)) in tw686x_s_parm() 1011 if (vb2_is_busy(&vc->vidq)) in tw686x_s_input() 1227 vc->vidq.io_modes = VB2_READ | VB2_MMAP | VB2_DMABUF; in tw686x_video_init() 1228 vc->vidq.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in tw686x_video_init() 1229 vc->vidq.drv_priv = vc; in tw686x_video_init() 1230 vc->vidq.buf_struct_size = sizeof(struct tw686x_v4l2_buf); in tw686x_video_init() 1231 vc->vidq.ops = &tw686x_video_qops; in tw686x_video_init() [all …]
|
D | tw686x.h | 84 struct vb2_queue vidq; member
|
/Linux-v4.19/drivers/media/usb/go7007/ |
D | go7007-v4l2.c | 365 if (vb2_is_busy(&go->vidq)) in vidioc_s_fmt_vid_cap() 614 if (vb2_is_busy(&go->vidq)) in vidioc_s_std() 728 if (vb2_is_busy(&go->vidq)) in vidioc_s_input() 1111 go->vidq.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in go7007_v4l2_init() 1112 go->vidq.io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ; in go7007_v4l2_init() 1113 go->vidq.ops = &go7007_video_qops; in go7007_v4l2_init() 1114 go->vidq.mem_ops = &vb2_vmalloc_memops; in go7007_v4l2_init() 1115 go->vidq.drv_priv = go; in go7007_v4l2_init() 1116 go->vidq.buf_struct_size = sizeof(struct go7007_buffer); in go7007_v4l2_init() 1117 go->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in go7007_v4l2_init() [all …]
|
D | go7007-priv.h | 234 struct vb2_queue vidq; member
|
/Linux-v4.19/drivers/media/pci/tw5864/ |
D | tw5864-video.c | 1113 input->vidq.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in tw5864_video_input_init() 1114 input->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in tw5864_video_input_init() 1115 input->vidq.io_modes = VB2_MMAP | VB2_READ | VB2_DMABUF; in tw5864_video_input_init() 1116 input->vidq.ops = &tw5864_video_qops; in tw5864_video_input_init() 1117 input->vidq.mem_ops = &vb2_dma_contig_memops; in tw5864_video_input_init() 1118 input->vidq.drv_priv = input; in tw5864_video_input_init() 1119 input->vidq.gfp_flags = 0; in tw5864_video_input_init() 1120 input->vidq.buf_struct_size = sizeof(struct tw5864_buf); in tw5864_video_input_init() 1121 input->vidq.lock = &input->lock; in tw5864_video_input_init() 1122 input->vidq.min_buffers_needed = 2; in tw5864_video_input_init() [all …]
|
D | tw5864.h | 100 struct vb2_queue vidq; member
|
/Linux-v4.19/drivers/media/usb/cx231xx/ |
D | cx231xx-417.c | 1476 struct cx231xx_dmaqueue *vidq = &dev->video_mode.vidq; in bb_buf_queue() local 1479 list_add_tail(&buf->vb.queue, &vidq->active); in bb_buf_queue() 1635 return videobuf_reqbufs(&fh->vidq, p); in vidioc_reqbufs() 1643 return videobuf_querybuf(&fh->vidq, p); in vidioc_querybuf() 1651 return videobuf_qbuf(&fh->vidq, p); in vidioc_qbuf() 1658 return videobuf_dqbuf(&fh->vidq, b, file->f_flags & O_NONBLOCK); in vidioc_dqbuf() 1683 return videobuf_streamon(&fh->vidq); in vidioc_streamon() 1690 return videobuf_streamoff(&fh->vidq); in vidioc_streamoff() 1725 videobuf_queue_vmalloc_init(&fh->vidq, &cx231xx_qops, in mpeg_open() 1784 if (fh->vidq.streaming) in mpeg_release() [all …]
|
D | cx231xx-vbi.c | 271 struct cx231xx_dmaqueue *vidq = &dev->vbi_mode.vidq; in vbi_buffer_queue() local 274 list_add_tail(&buf->vb.queue, &vidq->active); in vbi_buffer_queue() 306 container_of(dma_q, struct cx231xx_video_mode, vidq); in cx231xx_irq_vbi_callback() 390 struct cx231xx_dmaqueue *dma_q = &dev->vbi_mode.vidq; in cx231xx_init_vbi_isoc() 614 container_of(dma_q, struct cx231xx_video_mode, vidq); in get_next_vbi_buf()
|
D | cx231xx-core.c | 800 container_of(dma_q, struct cx231xx_video_mode, vidq); in cx231xx_isoc_irq_callback() 846 container_of(dma_q, struct cx231xx_video_mode, vidq); in cx231xx_bulk_irq_callback() 883 struct cx231xx_dmaqueue *dma_q = &dev->video_mode.vidq; in cx231xx_uninit_isoc() 942 struct cx231xx_dmaqueue *dma_q = &dev->video_mode.vidq; in cx231xx_uninit_bulk() 1003 struct cx231xx_dmaqueue *dma_q = &dev->video_mode.vidq; in cx231xx_init_isoc() 1138 struct cx231xx_dmaqueue *dma_q = &dev->video_mode.vidq; in cx231xx_init_bulk()
|
/Linux-v4.19/drivers/media/usb/tm6000/ |
D | tm6000-video.c | 86 struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq); in get_next_buf() 122 struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq); in copy_streams() 290 struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq); in copy_multiplexed() 375 struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq); in tm6000_isoc_copy() 421 struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq); in tm6000_irq_callback() 553 struct tm6000_dmaqueue *dma_q = &dev->vidq; in tm6000_prepare_isoc() 646 struct tm6000_dmaqueue *dma_q = &dev->vidq; in tm6000_start_thread() 777 struct tm6000_dmaqueue *vidq = &dev->vidq; in buffer_queue() local 780 list_add_tail(&buf->vb.queue, &vidq->active); in buffer_queue() 1353 fh, dev, &dev->vidq); in __tm6000_open() [all …]
|
/Linux-v4.19/drivers/media/usb/au0828/ |
D | au0828-video.c | 122 struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vidq); in au0828_irq_callback() 208 struct au0828_dmaqueue *dma_q = &dev->vidq; in au0828_init_isoc() 402 struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vidq); in get_next_buf() 733 struct au0828_dmaqueue *vidq = &dev->vidq; in buffer_queue() local 740 list_add_tail(&buf->list, &vidq->active); in buffer_queue() 859 struct au0828_dmaqueue *vidq = &dev->vidq; in au0828_stop_streaming() local 877 while (!list_empty(&vidq->active)) { in au0828_stop_streaming() 880 buf = list_entry(vidq->active.next, struct au0828_buffer, list); in au0828_stop_streaming() 960 struct au0828_dmaqueue *dma_q = &dev->vidq; in au0828_vid_buffer_timeout() 1953 INIT_LIST_HEAD(&dev->vidq.active); in au0828_analog_register()
|
D | au0828.h | 255 struct au0828_dmaqueue vidq; member
|
/Linux-v4.19/drivers/media/platform/ti-vpe/ |
D | cal.c | 287 struct cal_dmaqueue vidq; member 818 struct cal_dmaqueue *dma_q = &ctx->vidq; in cal_schedule_next_buffer() 883 dma_q = &ctx->vidq; in cal_irq() 894 dma_q = &ctx->vidq; in cal_irq() 1271 struct cal_dmaqueue *vidq = &ctx->vidq; in cal_buffer_queue() local 1276 list_add_tail(&buf->list, &vidq->active); in cal_buffer_queue() 1283 struct cal_dmaqueue *dma_q = &ctx->vidq; in cal_start_streaming() 1345 struct cal_dmaqueue *dma_q = &ctx->vidq; in cal_stop_streaming() 1558 INIT_LIST_HEAD(&ctx->vidq.active); in cal_complete_ctx()
|
/Linux-v4.19/drivers/media/pci/cx88/ |
D | cx88-video.c | 526 struct cx88_dmaqueue *q = &dev->vidq; in buffer_queue() 551 struct cx88_dmaqueue *dmaq = &dev->vidq; in start_streaming() 563 struct cx88_dmaqueue *dmaq = &dev->vidq; in stop_streaming() 1124 cx88_wakeup(core, &dev->vidq, count); in cx8800_vid_irq() 1338 INIT_LIST_HEAD(&dev->vidq.active); in cx8800_initdev() 1586 if (!list_empty(&dev->vidq.active)) { in cx8800_suspend() 1645 if (!list_empty(&dev->vidq.active)) { in cx8800_resume() 1647 restart_video_queue(dev, &dev->vidq); in cx8800_resume()
|
/Linux-v4.19/drivers/media/usb/em28xx/ |
D | em28xx-video.c | 657 struct em28xx_dmaqueue *dma_q = &dev->vidq; in process_frame_data_em28xx() 740 struct em28xx_dmaqueue *dmaq = &dev->vidq; in process_frame_data_em25xx() 1156 struct em28xx_dmaqueue *vidq = &dev->vidq; in em28xx_stop_streaming() local 1177 while (!list_empty(&vidq->active)) { in em28xx_stop_streaming() 1180 buf = list_entry(vidq->active.next, struct em28xx_buffer, list); in em28xx_stop_streaming() 1229 struct em28xx_dmaqueue *vidq = &dev->vidq; in buffer_queue() local 1237 list_add_tail(&buf->list, &vidq->active); in buffer_queue() 2614 INIT_LIST_HEAD(&dev->vidq.active); in em28xx_v4l2_init()
|
/Linux-v4.19/drivers/media/pci/cx23885/ |
D | cx23885-video.c | 468 struct cx23885_dmaqueue *q = &dev->vidq; in buffer_queue() 497 struct cx23885_dmaqueue *dmaq = &dev->vidq; in cx23885_start_streaming() 508 struct cx23885_dmaqueue *dmaq = &dev->vidq; in cx23885_stop_streaming() 1085 cx23885_video_wakeup(dev, &dev->vidq, count); in cx23885_video_irq() 1198 INIT_LIST_HEAD(&dev->vidq.active); in cx23885_video_register()
|
/Linux-v4.19/drivers/media/usb/zr364xx/ |
D | zr364xx.c | 184 struct zr364xx_dmaqueue vidq; member 427 list_add_tail(&buf->vb.queue, &cam->vidq.active); in buffer_queue() 530 struct zr364xx_dmaqueue *dma_q = &cam->vidq; in zr364xx_got_frame() 1518 INIT_LIST_HEAD(&cam->vidq.active); in zr364xx_probe() 1519 cam->vidq.cam = cam; in zr364xx_probe()
|