Lines Matching refs:vbuf
1182 struct vb2_v4l2_buffer *vbuf; in fdp1_prepare_job() local
1216 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in fdp1_prepare_job()
1217 fbuf = to_fdp1_buffer(vbuf); in fdp1_prepare_job()
1786 struct vb2_v4l2_buffer *vbuf, in fdp1_buf_prepare_field() argument
1789 struct fdp1_buffer *buf = to_fdp1_buffer(vbuf); in fdp1_buf_prepare_field()
1794 num_fields = V4L2_FIELD_HAS_BOTH(vbuf->field) ? 2 : 1; in fdp1_buf_prepare_field()
1796 fbuf->vb = vbuf; in fdp1_buf_prepare_field()
1799 for (i = 0; i < vbuf->vb2_buf.num_planes; ++i) in fdp1_buf_prepare_field()
1800 fbuf->addrs[i] = vb2_dma_contig_plane_dma_addr(&vbuf->vb2_buf, i); in fdp1_buf_prepare_field()
1802 switch (vbuf->field) { in fdp1_buf_prepare_field()
1821 fbuf->field = vbuf->field; in fdp1_buf_prepare_field()
1830 switch (vbuf->field) { in fdp1_buf_prepare_field()
1834 for (i = 0; i < vbuf->vb2_buf.num_planes; i++) in fdp1_buf_prepare_field()
1840 for (i = 0; i < vbuf->vb2_buf.num_planes; i++) in fdp1_buf_prepare_field()
1851 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in fdp1_buf_prepare() local
1852 struct fdp1_buffer *buf = to_fdp1_buffer(vbuf); in fdp1_buf_prepare()
1861 if (vbuf->field != V4L2_FIELD_NONE) in fdp1_buf_prepare()
1866 if (vbuf->field != V4L2_FIELD_TOP && in fdp1_buf_prepare()
1867 vbuf->field != V4L2_FIELD_BOTTOM) in fdp1_buf_prepare()
1876 if (vbuf->field != q_data->format.field) in fdp1_buf_prepare()
1884 vbuf->field, q_data->format.field); in fdp1_buf_prepare()
1888 vbuf->field = V4L2_FIELD_NONE; in fdp1_buf_prepare()
1907 buf->num_fields = V4L2_FIELD_HAS_BOTH(vbuf->field) ? 2 : 1; in fdp1_buf_prepare()
1909 fdp1_buf_prepare_field(q_data, vbuf, i); in fdp1_buf_prepare()
1916 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in fdp1_buf_queue() local
1919 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in fdp1_buf_queue()
1964 struct vb2_v4l2_buffer *vbuf; in fdp1_stop_streaming() local
1969 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in fdp1_stop_streaming()
1971 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in fdp1_stop_streaming()
1972 if (vbuf == NULL) in fdp1_stop_streaming()
1975 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR); in fdp1_stop_streaming()