Lines Matching defs:buf
50 struct saa7146_buf *buf)
53 DEB_EE("dev:%p, dmaq:%p, buf:%p\n", dev, q, buf);
59 q->curr = buf;
60 DEB_D("immediately activating buffer %p\n", buf);
61 buf->activate(dev,buf,NULL);
63 list_add_tail(&buf->list, &q->queue);
65 buf);
75 struct saa7146_buf *buf = q->curr;
82 if (!buf) {
88 buf->vb.vb2_buf.timestamp = ktime_get_ns();
90 buf->vb.field = vv->last_field;
92 buf->vb.field = (vv->video_fmt.height > vv->standard->v_max_out / 2)
96 buf->vb.field = vv->video_fmt.field;
97 buf->vb.sequence = vv->seqnr++;
98 vb2_buffer_done(&buf->vb.vb2_buf, state);
104 struct saa7146_buf *buf,*next = NULL;
114 buf = list_entry(q->queue.next, struct saa7146_buf, list);
115 list_del(&buf->list);
118 q->curr = buf;
119 DEB_INT("next buffer: buf:%p, prev:%p, next:%p\n",
120 buf, q->queue.prev, q->queue.next);
121 buf->activate(dev,buf,next);