Lines Matching refs:vb_buf
150 struct cx18_vb2_buffer *vb_buf; in cx18_mdl_send_to_vb2() local
165 vb_buf = list_first_entry(&s->vb_capture, struct cx18_vb2_buffer, in cx18_mdl_send_to_vb2()
168 p = vb2_plane_vaddr(&vb_buf->vb.vb2_buf, 0); in cx18_mdl_send_to_vb2()
172 bsize = vb2_get_plane_payload(&vb_buf->vb.vb2_buf, 0); in cx18_mdl_send_to_vb2()
173 offset = vb_buf->bytes_used; in cx18_mdl_send_to_vb2()
181 vb_buf->bytes_used += buf->bytesused; in cx18_mdl_send_to_vb2()
186 if (vb_buf->bytes_used >= s->vb_bytes_per_frame) { in cx18_mdl_send_to_vb2()
188 vb_buf->bytes_used = 0; in cx18_mdl_send_to_vb2()
192 vb_buf->vb.vb2_buf.timestamp = ktime_get_ns(); in cx18_mdl_send_to_vb2()
193 vb_buf->vb.sequence = s->sequence++; in cx18_mdl_send_to_vb2()
194 list_del(&vb_buf->list); in cx18_mdl_send_to_vb2()
195 vb2_buffer_done(&vb_buf->vb.vb2_buf, VB2_BUF_STATE_DONE); in cx18_mdl_send_to_vb2()