Lines Matching refs:buf
38 free_buffer(struct videobuf_queue *vq, struct au0828_buffer *buf)
56 if (dev->isoc_ctl.vbi_buf == buf)
60 videobuf_vmalloc_free(&buf->vb);
61 buf->vb.state = VIDEOBUF_NEEDS_INIT;
87 struct au0828_buffer *buf = container_of(vb, struct au0828_buffer, vb);
90 buf->vb.size = dev->vbi_width * dev->vbi_height * 2;
92 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size)
95 buf->vb.width = dev->vbi_width;
96 buf->vb.height = dev->vbi_height;
97 buf->vb.field = field;
99 if (VIDEOBUF_NEEDS_INIT == buf->vb.state) {
100 rc = videobuf_iolock(q, &buf->vb, NULL);
105 buf->vb.state = VIDEOBUF_PREPARED;
109 free_buffer(q, buf);
116 struct au0828_buffer *buf = container_of(vb,
123 buf->vb.state = VIDEOBUF_QUEUED;
124 list_add_tail(&buf->vb.queue, &vbiq->active);
129 struct au0828_buffer *buf = container_of(vb, struct au0828_buffer, vb);
130 free_buffer(q, buf);