Lines Matching refs:vb

109 			struct tm6000_buffer, vb.queue);  in get_next_buf()
120 dprintk(dev, V4L2_DEBUG_ISOC, "[%p/%d] wakeup\n", buf, buf->vb.i); in buffer_filled()
121 buf->vb.state = VIDEOBUF_DONE; in buffer_filled()
122 buf->vb.field_count++; in buffer_filled()
123 v4l2_get_timestamp(&buf->vb.ts); in buffer_filled()
125 list_del(&buf->vb.queue); in buffer_filled()
126 wake_up(&buf->vb.done); in buffer_filled()
151 voutp = videobuf_to_vmalloc(&vbuf->vb); in copy_streams()
219 voutp = videobuf_to_vmalloc(&vbuf->vb); in copy_streams()
222 memset(voutp, 0, vbuf->vb.size); in copy_streams()
224 linewidth = vbuf->vb.width << 1; in copy_streams()
228 if (pos + size > vbuf->vb.size) in copy_streams()
312 outp = videobuf_to_vmalloc(&buf->vb); in copy_multiplexed()
318 cpysize = min(len, buf->vb.size-pos); in copy_multiplexed()
323 if (pos >= buf->vb.size) { in copy_multiplexed()
331 outp = videobuf_to_vmalloc(&(buf->vb)); in copy_multiplexed()
733 videobuf_vmalloc_free(&buf->vb); in free_buffer()
734 buf->vb.state = VIDEOBUF_NEEDS_INIT; in free_buffer()
738 buffer_prepare(struct videobuf_queue *vq, struct videobuf_buffer *vb, in buffer_prepare() argument
742 struct tm6000_buffer *buf = container_of(vb, struct tm6000_buffer, vb); in buffer_prepare()
751 buf->vb.size = fh->fmt->depth*fh->width*fh->height >> 3; in buffer_prepare()
752 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) in buffer_prepare()
756 buf->vb.width != fh->width || in buffer_prepare()
757 buf->vb.height != fh->height || in buffer_prepare()
758 buf->vb.field != field) { in buffer_prepare()
760 buf->vb.width = fh->width; in buffer_prepare()
761 buf->vb.height = fh->height; in buffer_prepare()
762 buf->vb.field = field; in buffer_prepare()
763 buf->vb.state = VIDEOBUF_NEEDS_INIT; in buffer_prepare()
766 if (VIDEOBUF_NEEDS_INIT == buf->vb.state) { in buffer_prepare()
767 rc = videobuf_iolock(vq, &buf->vb, NULL); in buffer_prepare()
783 buf->vb.state = VIDEOBUF_PREPARED; in buffer_prepare()
792 buffer_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb) in buffer_queue() argument
794 struct tm6000_buffer *buf = container_of(vb, struct tm6000_buffer, vb); in buffer_queue()
799 buf->vb.state = VIDEOBUF_QUEUED; in buffer_queue()
800 list_add_tail(&buf->vb.queue, &vidq->active); in buffer_queue()
803 static void buffer_release(struct videobuf_queue *vq, struct videobuf_buffer *vb) in buffer_release() argument
805 struct tm6000_buffer *buf = container_of(vb, struct tm6000_buffer, vb); in buffer_release()
1459 buf = list_entry(fh->vb_vidq.stream.next, struct tm6000_buffer, vb.stream); in __tm6000_poll()
1460 poll_wait(file, &buf->vb.done, wait); in __tm6000_poll()
1461 if (buf->vb.state == VIDEOBUF_DONE || in __tm6000_poll()
1462 buf->vb.state == VIDEOBUF_ERROR) in __tm6000_poll()