Lines Matching full:vb

54 static int _buffer_prepare(struct vb2_buffer *vb)  in _buffer_prepare()  argument
56 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _buffer_prepare()
59 if (vb2_plane_size(vb, 0) < size) { in _buffer_prepare()
61 ctx->name, vb2_plane_size(vb, 0), size); in _buffer_prepare()
65 vb2_set_plane_payload(vb, 0, size); in _buffer_prepare()
71 static void _buffer_queue(struct vb2_buffer *vb) in _buffer_queue() argument
73 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _buffer_queue()
74 struct dvb_buffer *buf = container_of(vb, struct dvb_buffer, vb); in _buffer_queue()
104 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in _stop_streaming()
137 static void _fill_dmx_buffer(struct vb2_buffer *vb, void *pb) in _fill_dmx_buffer() argument
139 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _fill_dmx_buffer()
142 b->index = vb->index; in _fill_dmx_buffer()
143 b->length = vb->planes[0].length; in _fill_dmx_buffer()
144 b->bytesused = vb->planes[0].bytesused; in _fill_dmx_buffer()
145 b->offset = vb->planes[0].m.offset; in _fill_dmx_buffer()
149 static int _fill_vb2_buffer(struct vb2_buffer *vb, struct vb2_plane *planes) in _fill_vb2_buffer() argument
151 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _fill_vb2_buffer()
288 ctx->remain = vb2_plane_size(&ctx->buf->vb, 0); in dvb_vb2_fill_buffer()
293 vb2_buffer_done(&ctx->buf->vb, VB2_BUF_STATE_ERROR); in dvb_vb2_fill_buffer()
301 vbuf = vb2_plane_vaddr(&ctx->buf->vb, 0); in dvb_vb2_fill_buffer()
310 vb2_buffer_done(&ctx->buf->vb, VB2_BUF_STATE_DONE); in dvb_vb2_fill_buffer()
317 vb2_set_plane_payload(&ctx->buf->vb, 0, ll); in dvb_vb2_fill_buffer()
318 vb2_buffer_done(&ctx->buf->vb, VB2_BUF_STATE_DONE); in dvb_vb2_fill_buffer()