/drivers/media/platform/ |
D | fsl-viu.c | 166 struct viu_dmaqueue vidq; member 329 static int restart_video_queue(struct viu_dmaqueue *vidq) in restart_video_queue() argument 333 dprintk(1, "%s vidq=0x%08lx\n", __func__, (unsigned long)vidq); in restart_video_queue() 334 if (!list_empty(&vidq->active)) { in restart_video_queue() 335 buf = list_entry(vidq->active.next, struct viu_buf, vb.queue); in restart_video_queue() 339 viu_stop_dma(vidq->dev); in restart_video_queue() 342 list_for_each_entry_safe(buf, prev, &vidq->active, vb.queue) { in restart_video_queue() 347 mod_timer(&vidq->timeout, jiffies+BUFFER_TIMEOUT); in restart_video_queue() 353 if (list_empty(&vidq->queued)) in restart_video_queue() 355 buf = list_entry(vidq->queued.next, struct viu_buf, vb.queue); in restart_video_queue() [all …]
|
/drivers/media/pci/solo6x10/ |
D | solo6x10-v4l2.c | 492 if (vb2_is_busy(&solo_dev->vidq)) in solo_set_fmt_cap() 534 if (vb2_is_busy(&solo_dev->vidq)) in solo_set_video_type() 537 if (vb2_is_busy(&solo_dev->v4l2_enc[i]->vidq)) in solo_set_video_type() 660 solo_dev->vfd->queue = &solo_dev->vidq; in solo_v4l2_init() 672 solo_dev->vidq.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in solo_v4l2_init() 673 solo_dev->vidq.io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ; in solo_v4l2_init() 674 solo_dev->vidq.ops = &solo_video_qops; in solo_v4l2_init() 675 solo_dev->vidq.mem_ops = &vb2_dma_contig_memops; in solo_v4l2_init() 676 solo_dev->vidq.drv_priv = solo_dev; in solo_v4l2_init() 677 solo_dev->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in solo_v4l2_init() [all …]
|
D | solo6x10-v4l2-enc.c | 940 if (vb2_is_busy(&solo_enc->vidq)) in solo_enc_set_fmt_cap() 1096 if (vb2_is_streaming(&solo_enc->vidq)) in solo_s_parm() 1312 solo_enc->vidq.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in solo_enc_alloc() 1313 solo_enc->vidq.io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ; in solo_enc_alloc() 1314 solo_enc->vidq.ops = &solo_enc_video_qops; in solo_enc_alloc() 1315 solo_enc->vidq.mem_ops = &vb2_dma_sg_memops; in solo_enc_alloc() 1316 solo_enc->vidq.drv_priv = solo_enc; in solo_enc_alloc() 1317 solo_enc->vidq.gfp_flags = __GFP_DMA32; in solo_enc_alloc() 1318 solo_enc->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in solo_enc_alloc() 1319 solo_enc->vidq.buf_struct_size = sizeof(struct solo_vb2_buf); in solo_enc_alloc() [all …]
|
D | solo6x10.h | 181 struct vb2_queue vidq; member 273 struct vb2_queue vidq; member
|
/drivers/media/pci/cx25821/ |
D | cx25821-video.c | 404 return videobuf_mmap_mapper(&chan->vidq, vma); in cx25821_video_mmap() 489 err = videobuf_read_one(&chan->vidq, data, count, ppos, in video_read() 504 res |= videobuf_poll_stream(file, &chan->vidq, wait); in video_poll() 538 videobuf_queue_cancel(&chan->vidq); in video_release() 542 if (chan->vidq.read_buf) { in video_release() 543 cx25821_buffer_release(&chan->vidq, chan->vidq.read_buf); in video_release() 544 kfree(chan->vidq.read_buf); in video_release() 547 videobuf_mmap_free(&chan->vidq); in video_release() 574 f->fmt.pix.field = chan->vidq.field; in cx25821_vidioc_g_fmt_vid_cap() 635 chan->vidq.field = f->fmt.pix.field; in vidioc_s_fmt_vid_cap() [all …]
|
D | cx25821.h | 217 struct videobuf_queue vidq; member
|
/drivers/media/pci/cx88/ |
D | cx88-video.c | 626 struct cx88_dmaqueue *q = &dev->vidq; in buffer_queue() 694 return &fh->vidq; in get_queue() 751 videobuf_queue_sg_init(&fh->vidq, &cx8800_video_qops, in video_open() 804 return videobuf_read_one(&fh->vidq, data, count, ppos, in video_read() 829 mutex_lock(&fh->vidq.vb_lock); in video_poll() 832 if (list_empty(&fh->vidq.stream)) in video_poll() 834 buf = list_entry(fh->vidq.stream.next,struct cx88_buffer,vb.stream); in video_poll() 837 buf = (struct cx88_buffer*)fh->vidq.read_buf; in video_poll() 846 mutex_unlock(&fh->vidq.vb_lock); in video_poll() 863 videobuf_queue_cancel(&fh->vidq); in video_release() [all …]
|
D | cx88.h | 468 struct videobuf_queue vidq; member 496 struct cx88_dmaqueue vidq; member
|
/drivers/media/pci/tw68/ |
D | tw68-video.c | 761 if (vb2_is_busy(&dev->vidq)) in tw68_s_std() 979 dev->vidq.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in tw68_video_init2() 980 dev->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in tw68_video_init2() 981 dev->vidq.io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ | VB2_DMABUF; in tw68_video_init2() 982 dev->vidq.ops = &tw68_video_qops; in tw68_video_init2() 983 dev->vidq.mem_ops = &vb2_dma_sg_memops; in tw68_video_init2() 984 dev->vidq.drv_priv = dev; in tw68_video_init2() 985 dev->vidq.gfp_flags = __GFP_DMA32; in tw68_video_init2() 986 dev->vidq.buf_struct_size = sizeof(struct tw68_buf); in tw68_video_init2() 987 dev->vidq.lock = &dev->lock; in tw68_video_init2() [all …]
|
D | tw68.h | 182 struct vb2_queue vidq; member
|
D | tw68-core.c | 386 vb2_discard_done(&dev->vidq); in tw68_suspend()
|
/drivers/media/usb/go7007/ |
D | go7007-v4l2.c | 363 if (vb2_is_busy(&go->vidq)) in vidioc_s_fmt_vid_cap() 611 if (vb2_is_busy(&go->vidq)) in vidioc_s_std() 725 if (vb2_is_busy(&go->vidq)) in vidioc_s_input() 1109 go->vidq.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in go7007_v4l2_init() 1110 go->vidq.io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ; in go7007_v4l2_init() 1111 go->vidq.ops = &go7007_video_qops; in go7007_v4l2_init() 1112 go->vidq.mem_ops = &vb2_vmalloc_memops; in go7007_v4l2_init() 1113 go->vidq.drv_priv = go; in go7007_v4l2_init() 1114 go->vidq.buf_struct_size = sizeof(struct go7007_buffer); in go7007_v4l2_init() 1115 go->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in go7007_v4l2_init() [all …]
|
D | go7007-priv.h | 234 struct vb2_queue vidq; member
|
/drivers/media/usb/cx231xx/ |
D | cx231xx-417.c | 1459 struct cx231xx_dmaqueue *vidq = &dev->video_mode.vidq; in bb_buf_queue() local 1462 list_add_tail(&buf->vb.queue, &vidq->active); in bb_buf_queue() 1595 return videobuf_reqbufs(&fh->vidq, p); in vidioc_reqbufs() 1603 return videobuf_querybuf(&fh->vidq, p); in vidioc_querybuf() 1611 return videobuf_qbuf(&fh->vidq, p); in vidioc_qbuf() 1618 return videobuf_dqbuf(&fh->vidq, b, file->f_flags & O_NONBLOCK); in vidioc_dqbuf() 1643 return videobuf_streamon(&fh->vidq); in vidioc_streamon() 1650 return videobuf_streamoff(&fh->vidq); in vidioc_streamoff() 1685 videobuf_queue_vmalloc_init(&fh->vidq, &cx231xx_qops, in mpeg_open() 1744 if (fh->vidq.streaming) in mpeg_release() [all …]
|
D | cx231xx-vbi.c | 272 struct cx231xx_dmaqueue *vidq = &dev->vbi_mode.vidq; in vbi_buffer_queue() local 275 list_add_tail(&buf->vb.queue, &vidq->active); in vbi_buffer_queue() 307 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() 612 container_of(dma_q, struct cx231xx_video_mode, vidq); in get_next_vbi_buf()
|
D | cx231xx-core.c | 805 container_of(dma_q, struct cx231xx_video_mode, vidq); in cx231xx_isoc_irq_callback() 850 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() 984 struct cx231xx_dmaqueue *dma_q = &dev->video_mode.vidq; in cx231xx_init_isoc() 1121 struct cx231xx_dmaqueue *dma_q = &dev->video_mode.vidq; in cx231xx_init_bulk()
|
D | cx231xx-cards.c | 1209 INIT_LIST_HEAD(&dev->video_mode.vidq.active); in cx231xx_init_dev() 1210 INIT_LIST_HEAD(&dev->video_mode.vidq.queued); in cx231xx_init_dev() 1213 INIT_LIST_HEAD(&dev->vbi_mode.vidq.active); in cx231xx_init_dev() 1214 INIT_LIST_HEAD(&dev->vbi_mode.vidq.queued); in cx231xx_init_dev()
|
D | cx231xx.h | 445 struct videobuf_queue vidq; member 522 struct cx231xx_dmaqueue vidq; member
|
/drivers/media/usb/tm6000/ |
D | tm6000-video.c | 100 struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq); in get_next_buf() 136 struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq); in copy_streams() 304 struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq); in copy_multiplexed() 389 struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq); in tm6000_isoc_copy() 435 struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq); in tm6000_irq_callback() 570 struct tm6000_dmaqueue *dma_q = &dev->vidq; in tm6000_prepare_isoc() 666 struct tm6000_dmaqueue *dma_q = &dev->vidq; in tm6000_start_thread() 798 struct tm6000_dmaqueue *vidq = &dev->vidq; in buffer_queue() local 801 list_add_tail(&buf->vb.queue, &vidq->active); in buffer_queue() 1374 (unsigned long)&dev->vidq); in __tm6000_open() [all …]
|
D | tm6000.h | 225 struct tm6000_dmaqueue vidq; member
|
/drivers/media/usb/au0828/ |
D | au0828-video.c | 127 struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vidq); in au0828_irq_callback() 213 struct au0828_dmaqueue *dma_q = &dev->vidq; in au0828_init_isoc() 428 struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vidq); in get_next_buf() 757 struct au0828_dmaqueue *vidq = &dev->vidq; in buffer_queue() local 760 list_add_tail(&buf->vb.queue, &vidq->active); in buffer_queue() 945 struct au0828_dmaqueue *dma_q = &dev->vidq; in au0828_vid_buffer_timeout() 2041 INIT_LIST_HEAD(&dev->vidq.active); in au0828_analog_register() 2042 INIT_LIST_HEAD(&dev->vidq.queued); in au0828_analog_register()
|
D | au0828.h | 257 struct au0828_dmaqueue vidq; member
|
/drivers/media/usb/em28xx/ |
D | em28xx-video.c | 645 struct em28xx_dmaqueue *dma_q = &dev->vidq; in process_frame_data_em28xx() 722 struct em28xx_dmaqueue *dmaq = &dev->vidq; in process_frame_data_em25xx() 987 struct em28xx_dmaqueue *vidq = &dev->vidq; in em28xx_stop_streaming() local 1004 while (!list_empty(&vidq->active)) { in em28xx_stop_streaming() 1006 buf = list_entry(vidq->active.next, struct em28xx_buffer, list); in em28xx_stop_streaming() 1048 struct em28xx_dmaqueue *vidq = &dev->vidq; in buffer_queue() local 1056 list_add_tail(&buf->list, &vidq->active); in buffer_queue() 2401 INIT_LIST_HEAD(&dev->vidq.active); in em28xx_v4l2_init()
|
/drivers/media/pci/cx23885/ |
D | cx23885-video.c | 453 struct cx23885_dmaqueue *q = &dev->vidq; in buffer_queue() 482 struct cx23885_dmaqueue *dmaq = &dev->vidq; in cx23885_start_streaming() 493 struct cx23885_dmaqueue *dmaq = &dev->vidq; in cx23885_stop_streaming() 1048 cx23885_video_wakeup(dev, &dev->vidq, count); in cx23885_video_irq() 1161 INIT_LIST_HEAD(&dev->vidq.active); in cx23885_video_register()
|
/drivers/media/usb/zr364xx/ |
D | zr364xx.c | 188 struct zr364xx_dmaqueue vidq; member 434 list_add_tail(&buf->vb.queue, &cam->vidq.active); in buffer_queue() 538 struct zr364xx_dmaqueue *dma_q = &cam->vidq; in zr364xx_got_frame() 1534 INIT_LIST_HEAD(&cam->vidq.active); in zr364xx_probe() 1535 cam->vidq.cam = cam; in zr364xx_probe()
|