Lines Matching defs:btv
51 pr_debug("%d: " fmt, btv->c.nr, ##__VA_ARGS__); \
64 struct bttv *btv = vb2_get_drv_priv(q);
65 unsigned int size = IMAGE_SIZE(&btv->vbi_fmt.fmt);
79 struct bttv *btv = vb2_get_drv_priv(vq);
83 spin_lock_irqsave(&btv->s_lock, flags);
84 if (list_empty(&btv->vcapture)) {
85 btv->loop_irq = BT848_RISC_VBI;
86 if (vb2_is_streaming(&btv->capq))
87 btv->loop_irq |= BT848_RISC_VIDEO;
88 bttv_set_dma(btv, BT848_CAP_CTL_CAPTURE_VBI_ODD |
91 list_add_tail(&buf->list, &btv->vcapture);
92 spin_unlock_irqrestore(&btv->s_lock, flags);
99 struct bttv *btv = vb2_get_drv_priv(vq);
102 unsigned int size = IMAGE_SIZE(&btv->vbi_fmt.fmt);
108 ret = bttv_buffer_risc_vbi(btv, buf);
118 struct bttv *btv = vb2_get_drv_priv(vq);
120 btcx_riscmem_free(btv->c.pci, &buf->top);
121 btcx_riscmem_free(btv->c.pci, &buf->bottom);
128 struct bttv *btv = vb2_get_drv_priv(q);
130 btv->framedrop = 0;
131 if (!check_alloc_btres_lock(btv, RESOURCE_VBI)) {
132 if (btv->field_count)
134 while (!list_empty(&btv->vcapture)) {
135 buf = list_entry(btv->vcapture.next,
138 buf->vbuf.sequence = (btv->field_count >> 1) + seqnr++;
144 if (!vb2_is_streaming(&btv->capq)) {
145 init_irqreg(btv);
146 btv->field_count = 0;
153 struct bttv *btv = vb2_get_drv_priv(q);
157 spin_lock_irqsave(&btv->s_lock, flags);
158 free_btres_lock(btv, RESOURCE_VBI);
159 if (!vb2_is_streaming(&btv->capq)) {
163 spin_unlock_irqrestore(&btv->s_lock, flags);
248 struct bttv *btv = video_drvdata(file);
252 mutex_lock(&btv->lock);
254 tvnorm = &bttv_tvnorms[btv->tvnorm];
255 crop_start = btv->crop_start;
257 mutex_unlock(&btv->lock);
265 struct bttv *btv = video_drvdata(file);
270 mutex_lock(&btv->lock);
273 if (btv->resources & RESOURCE_VBI)
276 tvnorm = &bttv_tvnorms[btv->tvnorm];
278 rc = try_fmt(&frt->fmt.vbi, tvnorm, btv->crop_start);
293 btv->vbi_fmt.fmt = frt->fmt.vbi;
294 btv->vbi_fmt.tvnorm = tvnorm;
295 btv->vbi_fmt.end = end;
300 mutex_unlock(&btv->lock);
309 struct bttv *btv = video_drvdata(file);
311 frt->fmt.vbi = btv->vbi_fmt.fmt;
313 tvnorm = &bttv_tvnorms[btv->tvnorm];
315 if (tvnorm != btv->vbi_fmt.tvnorm) {
332 - btv->vbi_fmt.tvnorm->vbistart[i];