Lines Matching refs:vb2_buf
230 return vb2_plane_vaddr(&buf->vb.vb2_buf, p); in plane_vaddr()
231 vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in plane_vaddr()
240 bool blank = dev->must_blank[vid_cap_buf->vb.vb2_buf.index]; in vivid_copy_buffer()
282 voutbuf += vid_out_buf->vb.vb2_buf.planes[p].data_offset; in vivid_copy_buffer()
450 tpg_s_perc_fill_blank(tpg, dev->must_blank[buf->vb.vb2_buf.index]); in vivid_fillbuff()
473 dev->must_blank[buf->vb.vb2_buf.index] = false; in vivid_fillbuff()
600 void *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_overlay()
726 v4l2_ctrl_request_setup(vid_cap_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_cap_tick()
731 vid_cap_buf->vb.vb2_buf.index); in vivid_thread_vid_cap_tick()
738 v4l2_ctrl_request_complete(vid_cap_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_cap_tick()
740 vb2_buffer_done(&vid_cap_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_vid_cap_tick()
743 vid_cap_buf->vb.vb2_buf.index); in vivid_thread_vid_cap_tick()
745 vid_cap_buf->vb.vb2_buf.timestamp = f_time; in vivid_thread_vid_cap_tick()
747 vid_cap_buf->vb.vb2_buf.timestamp += dev->cap_frame_eof_offset; in vivid_thread_vid_cap_tick()
753 v4l2_ctrl_request_setup(vbi_cap_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_cap_tick()
755 if (vbi_cap_buf->vb.vb2_buf.type == V4L2_BUF_TYPE_SLICED_VBI_CAPTURE) in vivid_thread_vid_cap_tick()
759 v4l2_ctrl_request_complete(vbi_cap_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_cap_tick()
761 vb2_buffer_done(&vbi_cap_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_vid_cap_tick()
764 vbi_cap_buf->vb.vb2_buf.index); in vivid_thread_vid_cap_tick()
769 vbi_cap_buf->vb.vb2_buf.timestamp = f_time + dev->cap_frame_eof_offset + vbi_period; in vivid_thread_vid_cap_tick()
773 v4l2_ctrl_request_setup(meta_cap_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_cap_tick()
776 v4l2_ctrl_request_complete(meta_cap_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_cap_tick()
778 vb2_buffer_done(&meta_cap_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_vid_cap_tick()
781 meta_cap_buf->vb.vb2_buf.index); in vivid_thread_vid_cap_tick()
782 meta_cap_buf->vb.vb2_buf.timestamp = f_time + dev->cap_frame_eof_offset; in vivid_thread_vid_cap_tick()
969 v4l2_ctrl_request_complete(buf->vb.vb2_buf.req_obj.req, in vivid_stop_generating_vid_cap()
971 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in vivid_stop_generating_vid_cap()
973 buf->vb.vb2_buf.index); in vivid_stop_generating_vid_cap()
984 v4l2_ctrl_request_complete(buf->vb.vb2_buf.req_obj.req, in vivid_stop_generating_vid_cap()
986 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in vivid_stop_generating_vid_cap()
988 buf->vb.vb2_buf.index); in vivid_stop_generating_vid_cap()
999 v4l2_ctrl_request_complete(buf->vb.vb2_buf.req_obj.req, in vivid_stop_generating_vid_cap()
1001 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in vivid_stop_generating_vid_cap()
1003 buf->vb.vb2_buf.index); in vivid_stop_generating_vid_cap()