Lines Matching refs:vb
57 buf->vb.width, buf->risc.dma); in cx8800_start_vbi_dma()
105 buf = list_entry(q->active.next, struct cx88_buffer, vb.queue); in cx8800_restart_vbi_queue()
107 buf, buf->vb.i); in cx8800_restart_vbi_queue()
109 list_for_each_entry(buf, &q->active, vb.queue) in cx8800_restart_vbi_queue()
130 buf = list_entry(q->active.next, struct cx88_buffer, vb.queue); in cx8800_vbi_timeout()
131 list_del(&buf->vb.queue); in cx8800_vbi_timeout()
132 buf->vb.state = VIDEOBUF_ERROR; in cx8800_vbi_timeout()
133 wake_up(&buf->vb.done); in cx8800_vbi_timeout()
135 buf, buf->vb.i, (unsigned long)buf->risc.dma); in cx8800_vbi_timeout()
157 vbi_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb, in vbi_prepare() argument
162 struct cx88_buffer *buf = container_of(vb,struct cx88_buffer,vb); in vbi_prepare()
167 if (0 != buf->vb.baddr && buf->vb.bsize < size) in vbi_prepare()
170 if (VIDEOBUF_NEEDS_INIT == buf->vb.state) { in vbi_prepare()
171 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); in vbi_prepare()
172 buf->vb.width = VBI_LINE_LENGTH; in vbi_prepare()
173 buf->vb.height = VBI_LINE_COUNT; in vbi_prepare()
174 buf->vb.size = size; in vbi_prepare()
175 buf->vb.field = V4L2_FIELD_SEQ_TB; in vbi_prepare()
177 if (0 != (rc = videobuf_iolock(q,&buf->vb,NULL))) in vbi_prepare()
181 0, buf->vb.width * buf->vb.height, in vbi_prepare()
182 buf->vb.width, 0, in vbi_prepare()
183 buf->vb.height); in vbi_prepare()
185 buf->vb.state = VIDEOBUF_PREPARED; in vbi_prepare()
194 vbi_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb) in vbi_queue() argument
196 struct cx88_buffer *buf = container_of(vb,struct cx88_buffer,vb); in vbi_queue()
207 list_add_tail(&buf->vb.queue,&q->active); in vbi_queue()
209 buf->vb.state = VIDEOBUF_ACTIVE; in vbi_queue()
213 buf, buf->vb.i); in vbi_queue()
216 prev = list_entry(q->active.prev, struct cx88_buffer, vb.queue); in vbi_queue()
217 list_add_tail(&buf->vb.queue,&q->active); in vbi_queue()
218 buf->vb.state = VIDEOBUF_ACTIVE; in vbi_queue()
222 buf, buf->vb.i); in vbi_queue()
226 static void vbi_release(struct videobuf_queue *q, struct videobuf_buffer *vb) in vbi_release() argument
228 struct cx88_buffer *buf = container_of(vb,struct cx88_buffer,vb); in vbi_release()