Lines Matching refs:fbuf
221 struct pwc_frame_buf *fbuf = pdev->fill_buf; in pwc_frame_complete() local
228 unsigned char *ptr = (unsigned char *)fbuf->data; in pwc_frame_complete()
253 if (fbuf->filled == 4) in pwc_frame_complete()
256 unsigned char *ptr = (unsigned char *)fbuf->data; in pwc_frame_complete()
268 if (fbuf->filled < pdev->frame_total_size) { in pwc_frame_complete()
270 fbuf->filled); in pwc_frame_complete()
272 fbuf->vb.field = V4L2_FIELD_NONE; in pwc_frame_complete()
273 fbuf->vb.sequence = pdev->vframe_count; in pwc_frame_complete()
274 vb2_buffer_done(&fbuf->vb.vb2_buf, VB2_BUF_STATE_DONE); in pwc_frame_complete()
354 struct pwc_frame_buf *fbuf = pdev->fill_buf; in pwc_isoc_handler() local
357 fbuf->vb.vb2_buf.timestamp = ktime_get_ns(); in pwc_isoc_handler()
361 if (flen + fbuf->filled > pdev->frame_total_size) { in pwc_isoc_handler()
363 flen + fbuf->filled, in pwc_isoc_handler()
367 memcpy(fbuf->data + fbuf->filled, iso_buf, in pwc_isoc_handler()
369 fbuf->filled += flen; in pwc_isoc_handler()