Lines Matching refs:vb
72 buf->vb.width, buf->risc.dma); in cx23885_start_vbi_dma()
98 buf = list_entry(q->active.next, struct cx23885_buffer, vb.queue); in cx23885_restart_vbi_queue()
100 buf, buf->vb.i); in cx23885_restart_vbi_queue()
103 buf = list_entry(item, struct cx23885_buffer, vb.queue); in cx23885_restart_vbi_queue()
124 vb.queue); in cx23885_vbi_timeout()
125 list_del(&buf->vb.queue); in cx23885_vbi_timeout()
126 buf->vb.state = VIDEOBUF_ERROR; in cx23885_vbi_timeout()
127 wake_up(&buf->vb.done); in cx23885_vbi_timeout()
129 buf, buf->vb.i, (unsigned long)buf->risc.dma); in cx23885_vbi_timeout()
153 vbi_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb, in vbi_prepare() argument
158 struct cx23885_buffer *buf = container_of(vb, in vbi_prepare()
159 struct cx23885_buffer, vb); in vbi_prepare()
160 struct videobuf_dmabuf *dma = videobuf_to_dma(&buf->vb); in vbi_prepare()
165 if (0 != buf->vb.baddr && buf->vb.bsize < size) in vbi_prepare()
168 if (VIDEOBUF_NEEDS_INIT == buf->vb.state) { in vbi_prepare()
169 buf->vb.width = VBI_LINE_LENGTH; in vbi_prepare()
170 buf->vb.height = VBI_LINE_COUNT; in vbi_prepare()
171 buf->vb.size = size; in vbi_prepare()
172 buf->vb.field = V4L2_FIELD_SEQ_TB; in vbi_prepare()
174 rc = videobuf_iolock(q, &buf->vb, NULL); in vbi_prepare()
179 0, buf->vb.width * buf->vb.height, in vbi_prepare()
180 buf->vb.width, 0, in vbi_prepare()
181 buf->vb.height); in vbi_prepare()
183 buf->vb.state = VIDEOBUF_PREPARED; in vbi_prepare()
192 vbi_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb) in vbi_queue() argument
195 container_of(vb, struct cx23885_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()
217 vb.queue); in vbi_queue()
218 list_add_tail(&buf->vb.queue, &q->active); in vbi_queue()
219 buf->vb.state = VIDEOBUF_ACTIVE; in vbi_queue()
224 buf, buf->vb.i); in vbi_queue()
228 static void vbi_release(struct videobuf_queue *q, struct videobuf_buffer *vb) in vbi_release() argument
231 container_of(vb, struct cx23885_buffer, vb); in vbi_release()