Lines Matching refs:vb_buf
165 struct cx18_videobuf_buffer *vb_buf; in cx18_mdl_send_to_videobuf() local
179 vb_buf = list_first_entry(&s->vb_capture, struct cx18_videobuf_buffer, in cx18_mdl_send_to_videobuf()
182 p = videobuf_to_vmalloc(&vb_buf->vb); in cx18_mdl_send_to_videobuf()
186 offset = vb_buf->bytes_used; in cx18_mdl_send_to_videobuf()
191 if ((offset + buf->bytesused) <= vb_buf->vb.bsize) { in cx18_mdl_send_to_videobuf()
194 vb_buf->bytes_used += buf->bytesused; in cx18_mdl_send_to_videobuf()
199 if (vb_buf->bytes_used >= s->vb_bytes_per_frame) { in cx18_mdl_send_to_videobuf()
201 vb_buf->bytes_used = 0; in cx18_mdl_send_to_videobuf()
205 v4l2_get_timestamp(&vb_buf->vb.ts); in cx18_mdl_send_to_videobuf()
206 list_del(&vb_buf->vb.queue); in cx18_mdl_send_to_videobuf()
207 vb_buf->vb.state = VIDEOBUF_DONE; in cx18_mdl_send_to_videobuf()
208 wake_up(&vb_buf->vb.done); in cx18_mdl_send_to_videobuf()