• Home
  • Raw
  • Download

Lines Matching refs:vbuf

28 #define to_au(__vbuf) container_of(__vbuf, struct delta_au, vbuf)
29 #define to_frame(__vbuf) container_of(__vbuf, struct delta_frame, vbuf)
69 ctx->name, au->vbuf.vb2_buf.index, au->dts, au->size, in dump_au()
73 ctx->name, au->vbuf.vb2_buf.index, au->dts, au->size, in dump_au()
92 struct vb2_v4l2_buffer *vbuf; in delta_au_done() local
94 vbuf = &au->vbuf; in delta_au_done()
95 vbuf->sequence = ctx->au_num++; in delta_au_done()
96 v4l2_m2m_buf_done(vbuf, err ? VB2_BUF_STATE_ERROR : VB2_BUF_STATE_DONE); in delta_au_done()
102 struct vb2_v4l2_buffer *vbuf; in delta_frame_done() local
109 vbuf = &frame->vbuf; in delta_frame_done()
110 vbuf->sequence = ctx->frame_num++; in delta_frame_done()
111 v4l2_m2m_buf_done(vbuf, err ? VB2_BUF_STATE_ERROR : VB2_BUF_STATE_DONE); in delta_frame_done()
119 struct vb2_v4l2_buffer *vbuf; in requeue_free_frames() local
127 vbuf = &frame->vbuf; in requeue_free_frames()
128 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in requeue_free_frames()
146 struct vb2_v4l2_buffer *vbuf = &frame->vbuf; in delta_recycle() local
148 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in delta_recycle()
931 struct vb2_v4l2_buffer *vbuf; in delta_run_work() local
941 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in delta_run_work()
942 if (!vbuf) { in delta_run_work()
947 au = to_au(vbuf); in delta_run_work()
948 au->size = vb2_get_plane_payload(&vbuf->vb2_buf, 0); in delta_run_work()
949 au->dts = vbuf->vb2_buf.timestamp; in delta_run_work()
1119 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in delta_vb2_au_prepare() local
1120 struct delta_au *au = to_au(vbuf); in delta_vb2_au_prepare()
1124 au->vaddr = vb2_plane_vaddr(&au->vbuf.vb2_buf, 0); in delta_vb2_au_prepare()
1126 (&au->vbuf.vb2_buf, 0); in delta_vb2_au_prepare()
1132 if (vbuf->field == V4L2_FIELD_ANY) in delta_vb2_au_prepare()
1133 vbuf->field = V4L2_FIELD_NONE; in delta_vb2_au_prepare()
1242 struct vb2_v4l2_buffer *vbuf; in delta_get_free_frame() local
1247 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in delta_get_free_frame()
1248 if (!vbuf) { in delta_get_free_frame()
1254 frame = to_frame(vbuf); in delta_get_free_frame()
1298 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in delta_vb2_au_queue() local
1300 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in delta_vb2_au_queue()
1311 struct vb2_v4l2_buffer *vbuf = NULL; in delta_vb2_au_start_streaming() local
1337 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in delta_vb2_au_start_streaming()
1338 if (!vbuf) { in delta_vb2_au_start_streaming()
1344 au = to_au(vbuf); in delta_vb2_au_start_streaming()
1345 au->size = vb2_get_plane_payload(&vbuf->vb2_buf, 0); in delta_vb2_au_start_streaming()
1346 au->dts = vbuf->vb2_buf.timestamp; in delta_vb2_au_start_streaming()
1389 if (vbuf) in delta_vb2_au_start_streaming()
1390 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_QUEUED); in delta_vb2_au_start_streaming()
1392 while ((vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx))) in delta_vb2_au_start_streaming()
1393 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_QUEUED); in delta_vb2_au_start_streaming()
1400 struct vb2_v4l2_buffer *vbuf; in delta_vb2_au_stop_streaming() local
1405 while ((vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx))) in delta_vb2_au_stop_streaming()
1406 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR); in delta_vb2_au_stop_streaming()
1465 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in delta_vb2_frame_prepare() local
1466 struct delta_frame *frame = to_frame(vbuf); in delta_vb2_frame_prepare()
1470 frame->index = vbuf->vb2_buf.index; in delta_vb2_frame_prepare()
1471 frame->vaddr = vb2_plane_vaddr(&vbuf->vb2_buf, 0); in delta_vb2_frame_prepare()
1472 frame->paddr = vb2_dma_contig_plane_dma_addr(&vbuf->vb2_buf, 0); in delta_vb2_frame_prepare()
1489 frame->flags = vbuf->flags; in delta_vb2_frame_prepare()
1496 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in delta_vb2_frame_finish() local
1497 struct delta_frame *frame = to_frame(vbuf); in delta_vb2_frame_finish()
1500 vb2_set_plane_payload(&vbuf->vb2_buf, 0, frame->info.size); in delta_vb2_frame_finish()
1502 vbuf->field = frame->field; in delta_vb2_frame_finish()
1503 vbuf->flags = frame->flags; in delta_vb2_frame_finish()
1510 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in delta_vb2_frame_queue() local
1511 struct delta_frame *frame = to_frame(vbuf); in delta_vb2_frame_queue()
1530 struct vb2_v4l2_buffer *vbuf; in delta_vb2_frame_stop_streaming() local
1546 vbuf = &frame->vbuf; in delta_vb2_frame_stop_streaming()
1547 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR); in delta_vb2_frame_stop_streaming()