Lines Matching refs:vb_buf
160 struct cx18_videobuf_buffer *vb_buf; in cx18_mdl_send_to_videobuf() local
174 vb_buf = list_first_entry(&s->vb_capture, struct cx18_videobuf_buffer, in cx18_mdl_send_to_videobuf()
177 p = videobuf_to_vmalloc(&vb_buf->vb); in cx18_mdl_send_to_videobuf()
181 offset = vb_buf->bytes_used; in cx18_mdl_send_to_videobuf()
186 if ((offset + buf->bytesused) <= vb_buf->vb.bsize) { in cx18_mdl_send_to_videobuf()
189 vb_buf->bytes_used += buf->bytesused; in cx18_mdl_send_to_videobuf()
194 if (vb_buf->bytes_used >= s->vb_bytes_per_frame) { in cx18_mdl_send_to_videobuf()
196 vb_buf->bytes_used = 0; in cx18_mdl_send_to_videobuf()
200 v4l2_get_timestamp(&vb_buf->vb.ts); in cx18_mdl_send_to_videobuf()
201 list_del(&vb_buf->vb.queue); in cx18_mdl_send_to_videobuf()
202 vb_buf->vb.state = VIDEOBUF_DONE; in cx18_mdl_send_to_videobuf()
203 wake_up(&vb_buf->vb.done); in cx18_mdl_send_to_videobuf()