Lines Matching full:vv

8 	struct saa7146_vv *vv = dev->vv_data;  in vbi_workaround()  local
98 add_wait_queue(&vv->vbi_wq, &wait); in vbi_workaround()
109 remove_wait_queue(&vv->vbi_wq, &wait); in vbi_workaround()
137 struct saa7146_vv *vv = dev->vv_data; in saa7146_set_vbi_capture() local
142 unsigned long e_wait = vv->current_hps_sync == SAA7146_HPS_SYNC_PORT_A ? CMD_E_FID_A : CMD_E_FID_B; in saa7146_set_vbi_capture()
143 unsigned long o_wait = vv->current_hps_sync == SAA7146_HPS_SYNC_PORT_A ? CMD_O_FID_A : CMD_O_FID_B; in saa7146_set_vbi_capture()
209 struct saa7146_vv *vv = dev->vv_data; in buffer_activate() local
215 mod_timer(&vv->vbi_dmaq.timeout, jiffies+BUFFER_TIMEOUT); in buffer_activate()
294 struct saa7146_vv *vv = dev->vv_data; in buffer_queue() local
298 saa7146_buffer_queue(dev, &vv->vbi_dmaq, buf); in buffer_queue()
324 struct saa7146_vv *vv = dev->vv_data; in vbi_stop() local
339 if (vv->vbi_dmaq.curr) in vbi_stop()
340 saa7146_buffer_finish(dev, &vv->vbi_dmaq, VIDEOBUF_DONE); in vbi_stop()
344 vv->vbi_streaming = NULL; in vbi_stop()
346 del_timer(&vv->vbi_dmaq.timeout); in vbi_stop()
347 del_timer(&vv->vbi_read_timeout); in vbi_stop()
354 struct saa7146_vv *vv = from_timer(vv, t, vbi_read_timeout); in vbi_read_timeout() local
355 struct file *file = vv->vbi_read_timeout_file; in vbi_read_timeout()
364 static void vbi_init(struct saa7146_dev *dev, struct saa7146_vv *vv) in vbi_init() argument
368 INIT_LIST_HEAD(&vv->vbi_dmaq.queue); in vbi_init()
370 timer_setup(&vv->vbi_dmaq.timeout, saa7146_buffer_timeout, 0); in vbi_init()
371 vv->vbi_dmaq.dev = dev; in vbi_init()
373 init_waitqueue_head(&vv->vbi_wq); in vbi_init()
379 struct saa7146_vv *vv = fh->dev->vv_data; in vbi_open() local
405 vv->vbi_read_timeout.function = vbi_read_timeout; in vbi_open()
406 vv->vbi_read_timeout_file = file; in vbi_open()
428 struct saa7146_vv *vv = dev->vv_data; in vbi_close() local
431 if( fh == vv->vbi_streaming ) { in vbi_close()
439 struct saa7146_vv *vv = dev->vv_data; in vbi_irq_done() local
442 if (vv->vbi_dmaq.curr) { in vbi_irq_done()
443 DEB_VBI("dev:%p, curr:%p\n", dev, vv->vbi_dmaq.curr); in vbi_irq_done()
445 vv->vbi_fieldcount+=2; in vbi_irq_done()
446 vv->vbi_dmaq.curr->vb.field_count = vv->vbi_fieldcount; in vbi_irq_done()
447 saa7146_buffer_finish(dev, &vv->vbi_dmaq, VIDEOBUF_DONE); in vbi_irq_done()
451 saa7146_buffer_next(dev, &vv->vbi_dmaq, 1); in vbi_irq_done()
460 struct saa7146_vv *vv = dev->vv_data; in vbi_read() local
465 if( NULL == vv->vbi_streaming ) { in vbi_read()
468 vv->vbi_streaming = fh; in vbi_read()
471 if( fh != vv->vbi_streaming ) { in vbi_read()
473 vv->vbi_streaming); in vbi_read()
477 mod_timer(&vv->vbi_read_timeout, jiffies+BUFFER_TIMEOUT); in vbi_read()