Lines Matching refs:vb
57 struct vpif_disp_buffer *to_vpif_buffer(struct vb2_v4l2_buffer *vb) in to_vpif_buffer() argument
59 return container_of(vb, struct vpif_disp_buffer, vb); in to_vpif_buffer()
70 static int vpif_buffer_prepare(struct vb2_buffer *vb) in vpif_buffer_prepare() argument
72 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpif_buffer_prepare()
73 struct channel_obj *ch = vb2_get_drv_priv(vb->vb2_queue); in vpif_buffer_prepare()
78 vb2_set_plane_payload(vb, 0, common->fmt.fmt.pix.sizeimage); in vpif_buffer_prepare()
79 if (vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) in vpif_buffer_prepare()
84 if (vb->vb2_queue->type != V4L2_BUF_TYPE_SLICED_VBI_OUTPUT) { in vpif_buffer_prepare()
85 unsigned long addr = vb2_dma_contig_plane_dma_addr(vb, 0); in vpif_buffer_prepare()
142 static void vpif_buffer_queue(struct vb2_buffer *vb) in vpif_buffer_queue() argument
144 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpif_buffer_queue()
146 struct channel_obj *ch = vb2_get_drv_priv(vb->vb2_queue); in vpif_buffer_queue()
204 addr = vb2_dma_contig_plane_dma_addr(&common->cur_frm->vb.vb2_buf, 0); in vpif_start_streaming()
236 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_QUEUED); in vpif_start_streaming()
271 vb2_buffer_done(&common->cur_frm->vb.vb2_buf, in vpif_stop_streaming()
275 vb2_buffer_done(&common->cur_frm->vb.vb2_buf, in vpif_stop_streaming()
278 vb2_buffer_done(&common->next_frm->vb.vb2_buf, in vpif_stop_streaming()
286 vb2_buffer_done(&common->next_frm->vb.vb2_buf, in vpif_stop_streaming()
315 addr = vb2_dma_contig_plane_dma_addr(&common->next_frm->vb.vb2_buf, 0); in process_progressive_mode()
333 v4l2_get_timestamp(&common->cur_frm->vb.timestamp); in process_interlaced_mode()
335 vb2_buffer_done(&common->cur_frm->vb.vb2_buf, in process_interlaced_mode()
390 &common->cur_frm->vb.timestamp); in vpif_channel_isr()
391 vb2_buffer_done(&common->cur_frm->vb.vb2_buf, in vpif_channel_isr()