Lines Matching refs:vb_buf

126 	struct v4l2_buffer		*vb_buf;  member
1511 buf = vs->vs_buf[i]->vb_buf; in video_request_bufs()
1535 memcpy(buf, vs->vs_buf[buf->index]->vb_buf, sizeof(*buf)); in video_query_buf()
1571 driverbuf = vb->vb_buf; in video_queue_buf()
1639 memcpy(buf, vb->vb_buf, sizeof(*buf)); in video_dequeue_buf()
1851 if (vb->vb_buf->bytesused == 0) { in videoread()
1860 len = uimin(uio->uio_resid, vb->vb_buf->bytesused - vs->vs_bytesread); in videoread()
1861 offset = vb->vb_buf->m.offset + vs->vs_bytesread; in videoread()
1874 if (vs->vs_bytesread >= vb->vb_buf->bytesused) { in videoread()
2436 if (!(vs->vs_buf[i]->vb_buf->flags & V4L2_BUF_FLAG_QUEUED)) { in video_stream_setup_bufs()
2453 if (!(vs->vs_buf[i]->vb_buf->flags & V4L2_BUF_FLAG_QUEUED)) in video_stream_setup_bufs()
2502 vb->vb_buf = kmem_alloc(sizeof(*vb->vb_buf), KM_SLEEP); in video_buffer_alloc()
2509 kmem_free(vb->vb_buf, sizeof(*vb->vb_buf)); in video_buffer_free()
2510 vb->vb_buf = NULL; in video_buffer_free()
2572 buf = vs->vs_buf[i]->vb_buf; in video_stream_realloc_bufs()
2596 if (vb->vb_buf->flags & V4L2_BUF_FLAG_QUEUED) { in video_stream_enqueue()
2601 vb->vb_buf->flags |= V4L2_BUF_FLAG_QUEUED; in video_stream_enqueue()
2602 vb->vb_buf->flags &= ~V4L2_BUF_FLAG_DONE; in video_stream_enqueue()
2604 vb->vb_buf->bytesused = 0; in video_stream_enqueue()
2620 vb->vb_buf->flags &= ~V4L2_BUF_FLAG_QUEUED; in video_stream_dequeue()
2621 vb->vb_buf->flags |= V4L2_BUF_FLAG_DONE; in video_stream_dequeue()
2661 buf = vb->vb_buf; in video_stream_write()
2704 vb->vb_buf->sequence = vs->vs_sequence; in video_stream_sample_done()