Home
last modified time | relevance | path

Searched refs:vb2_buf (Results 1 – 25 of 52) sorted by relevance

123

/linux/drivers/media/platform/mediatek/vcodec/decoder/
H A Dmtk_vcodec_dec_stateful.c81 vb->vb2_buf.index, dstbuf->queued_in_vb2); in get_display_buffer()
87 return &vb->vb2_buf; in get_display_buffer()
134 vb->vb2_buf.index, dstbuf->queued_in_vb2); in get_free_buffer()
150 vb->vb2_buf.index); in get_free_buffer()
164 vb->vb2_buf.index, dstbuf->queued_in_vb2, in get_free_buffer()
170 return &vb->vb2_buf; in get_free_buffer()
305 pfb->base_y.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in mtk_vdec_worker()
307 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in mtk_vdec_worker()
310 pfb->base_c.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 1); in mtk_vdec_worker()
312 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 1); in mtk_vdec_worker()
[all …]
/linux/drivers/staging/media/meson/vdec/
H A Dvdec_helpers.c200 ret = set_canvas_nv12m(sess, &buf->vb.vb2_buf, width, in amvdec_set_canvases()
206 ret = set_canvas_yuv420m(sess, &buf->vb.vb2_buf, width, in amvdec_set_canvases()
223 sess->fw_idx_to_vb2_idx[i++] = buf->vb.vb2_buf.index; in amvdec_set_canvases()
283 vb2_set_plane_payload(&vbuf->vb2_buf, 0, output_size); in dst_buf_done()
284 vb2_set_plane_payload(&vbuf->vb2_buf, 1, output_size / 2); in dst_buf_done()
287 vb2_set_plane_payload(&vbuf->vb2_buf, 0, output_size); in dst_buf_done()
288 vb2_set_plane_payload(&vbuf->vb2_buf, 1, output_size / 4); in dst_buf_done()
289 vb2_set_plane_payload(&vbuf->vb2_buf, 2, output_size / 4); in dst_buf_done()
293 vbuf->vb2_buf.timestamp = timestamp; in dst_buf_done()
315 vbuf->vb2_buf.index, timestamp, flags); in dst_buf_done()
[all …]
H A Dcodec_hevc_common.c72 struct vb2_buffer *vb = &buf->vb.vb2_buf; in codec_hevc_setup_buffers_gxbb()
125 struct vb2_buffer *vb = &buf->vb.vb2_buf; in codec_hevc_setup_buffers_gxl()
179 u32 idx = buf->vb.vb2_buf.index; in codec_hevc_alloc_fbc_buffers()
232 u32 idx = buf->vb.vb2_buf.index; in codec_hevc_alloc_mmu_headers()
/linux/drivers/staging/media/sunxi/cedrus/
H A Dcedrus_mpeg2.c133 dst_luma_addr = cedrus_dst_buf_addr(ctx, &run->dst->vb2_buf, 0); in cedrus_mpeg2_setup()
134 dst_chroma_addr = cedrus_dst_buf_addr(ctx, &run->dst->vb2_buf, 1); in cedrus_mpeg2_setup()
143 reg = vb2_get_plane_payload(&run->src->vb2_buf, 0) * 8; in cedrus_mpeg2_setup()
148 src_buf_addr = vb2_dma_contig_plane_dma_addr(&run->src->vb2_buf, 0); in cedrus_mpeg2_setup()
157 reg = src_buf_addr + vb2_get_plane_payload(&run->src->vb2_buf, 0); in cedrus_mpeg2_setup()
/linux/drivers/media/usb/pwc/
H A Dpwc-uncompress.c28 image = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0); in pwc_decompress()
43 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, in pwc_decompress()
48 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, in pwc_decompress()
/linux/drivers/usb/gadget/function/
H A Duvc_queue.c271 vb2_buffer_done(&buf->buf.vb2_buf, VB2_BUF_STATE_ERROR); in uvcg_queue_cancel()
345 vb2_set_plane_payload(&buf->buf.vb2_buf, 0, 0); in uvcg_complete_buffer()
346 vb2_buffer_done(&buf->buf.vb2_buf, VB2_BUF_STATE_ERROR); in uvcg_complete_buffer()
352 buf->buf.vb2_buf.timestamp = ktime_get_ns(); in uvcg_complete_buffer()
354 vb2_set_plane_payload(&buf->buf.vb2_buf, 0, buf->bytesused); in uvcg_complete_buffer()
355 vb2_buffer_done(&buf->buf.vb2_buf, VB2_BUF_STATE_DONE); in uvcg_complete_buffer()
/linux/drivers/media/platform/verisilicon/
H A Dhantro_h1_jpeg_enc.c119 jpeg_ctx.buffer = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in hantro_h1_jpeg_enc_run()
130 hantro_h1_jpeg_enc_set_buffers(vpu, ctx, &src_buf->vb2_buf, in hantro_h1_jpeg_enc_run()
131 &dst_buf->vb2_buf); in hantro_h1_jpeg_enc_run()
164 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, in hantro_h1_jpeg_enc_done()
H A Drockchip_vpu2_hw_jpeg_enc.c145 jpeg_ctx.buffer = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in rockchip_vpu2_jpeg_enc_run()
159 rockchip_vpu2_jpeg_enc_set_buffers(vpu, ctx, &src_buf->vb2_buf, in rockchip_vpu2_jpeg_enc_run()
160 &dst_buf->vb2_buf); in rockchip_vpu2_jpeg_enc_run()
195 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, in rockchip_vpu2_jpeg_enc_done()
H A Dhantro_g1_vp8_dec.c246 src_dma = vb2_dma_contig_plane_dma_addr(&vb2_src->vb2_buf, 0); in cfg_parts()
381 ref = vb2_dma_contig_plane_dma_addr(&vb2_dst->vb2_buf, 0); in cfg_ref()
390 ref = vb2_dma_contig_plane_dma_addr(&vb2_dst->vb2_buf, 0); in cfg_ref()
400 ref = vb2_dma_contig_plane_dma_addr(&vb2_dst->vb2_buf, 0); in cfg_ref()
428 dst_dma = hantro_get_dec_buf_addr(ctx, &vb2_dst->vb2_buf); in cfg_buffers()
H A Drockchip_vpu2_hw_vp8_dec.c358 src_dma = vb2_dma_contig_plane_dma_addr(&vb2_src->vb2_buf, 0); in cfg_parts()
457 ref = vb2_dma_contig_plane_dma_addr(&vb2_dst->vb2_buf, 0); in cfg_ref()
466 ref = vb2_dma_contig_plane_dma_addr(&vb2_dst->vb2_buf, 0); in cfg_ref()
476 ref = vb2_dma_contig_plane_dma_addr(&vb2_dst->vb2_buf, 0); in cfg_ref()
505 dst_dma = vb2_dma_contig_plane_dma_addr(&vb2_dst->vb2_buf, 0); in cfg_buffers()
H A Dhantro_g1_h264_dec.c70 G1_REG_DEC_CTRL3_STREAM_LEN(vb2_get_plane_payload(&src_buf->vb2_buf, 0)); in set_params()
214 src_dma = vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, 0); in set_buffers()
219 dst_dma = hantro_get_dec_buf_addr(ctx, &dst_buf->vb2_buf); in set_buffers()
H A Dhantro_g1_mpeg2_dec.c211 G1_REG_STREAM_LEN(vb2_get_plane_payload(&src_buf->vb2_buf, 0)); in hantro_g1_mpeg2_dec_run()
231 hantro_g1_mpeg2_dec_set_buffers(vpu, ctx, &src_buf->vb2_buf, in hantro_g1_mpeg2_dec_run()
232 &dst_buf->vb2_buf, in hantro_g1_mpeg2_dec_run()
H A Drockchip_vpu2_hw_mpeg2_dec.c176 VDPU_REG_STREAM_LEN(vb2_get_plane_payload(&src_buf->vb2_buf, 0)); in rockchip_vpu2_mpeg2_dec_run()
238 rockchip_vpu2_mpeg2_dec_set_buffers(vpu, ctx, &src_buf->vb2_buf, in rockchip_vpu2_mpeg2_dec_run()
239 &dst_buf->vb2_buf, seq, pic); in rockchip_vpu2_mpeg2_dec_run()
/linux/drivers/media/usb/go7007/
H A Dgo7007-driver.c383 if (vb && vb->vb.vb2_buf.planes[0].bytesused < GO7007_BUF_SIZE) { in store_byte()
384 u8 *ptr = vb2_plane_vaddr(&vb->vb.vb2_buf, 0); in store_byte()
386 ptr[vb->vb.vb2_buf.planes[0].bytesused++] = byte; in store_byte()
414 u32 *bytesused = &vb->vb.vb2_buf.planes[0].bytesused; in go7007_motion_regions()
456 bytesused = &vb->vb.vb2_buf.planes[0].bytesused; in frame_boundary()
464 vb->vb.vb2_buf.timestamp = ktime_get_ns(); in frame_boundary()
475 vb2_buffer_done(&vb_tmp->vb.vb2_buf, VB2_BUF_STATE_DONE); in frame_boundary()
518 if (vb && vb->vb.vb2_buf.planes[0].bytesused >= in go7007_parse_video_stream()
521 vb2_set_plane_payload(&vb->vb.vb2_buf, 0, 0); in go7007_parse_video_stream()
602 vb->vb.vb2_buf.planes[0].bytesused; in go7007_parse_video_stream()
/linux/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc_opr_v5.c1184 vb2_dma_contig_plane_dma_addr(&temp_vb->b->vb2_buf, 0), in s5p_mfc_run_dec_frame()
1185 ctx->consumed_stream, temp_vb->b->vb2_buf.planes[0].bytesused); in s5p_mfc_run_dec_frame()
1187 if (temp_vb->b->vb2_buf.planes[0].bytesused == 0) { in s5p_mfc_run_dec_frame()
1221 if (src_mb->b->vb2_buf.planes[0].bytesused == 0) { in s5p_mfc_run_enc_frame()
1229 &src_mb->b->vb2_buf, 0); in s5p_mfc_run_enc_frame()
1231 &src_mb->b->vb2_buf, 1); in s5p_mfc_run_enc_frame()
1240 dst_addr = vb2_dma_contig_plane_dma_addr(&dst_mb->b->vb2_buf, 0); in s5p_mfc_run_enc_frame()
1241 dst_size = vb2_plane_size(&dst_mb->b->vb2_buf, 0); in s5p_mfc_run_enc_frame()
1245 src_mb ? src_mb->b->vb2_buf.index : -1, ctx->state); in s5p_mfc_run_enc_frame()
1260 temp_vb->b->vb2_buf.planes[0].bytesused); in s5p_mfc_run_init_dec()
[all …]
/linux/drivers/media/test-drivers/visl/
H A Dvisl-debugfs.c42 u8 *vaddr = vb2_plane_vaddr(&run->src->vb2_buf, 0); in visl_trace_bitstream()
44 size_t data_sz = vb2_get_plane_payload(&run->src->vb2_buf, 0); in visl_trace_bitstream()
/linux/drivers/media/pci/cx88/
H A Dcx88-mpeg.c209 buf, buf->vb.vb2_buf.index); in cx8802_restart_queue()
220 struct sg_table *sgt = vb2_dma_sg_plane_desc(&buf->vb.vb2_buf, 0); in cx8802_buf_prepare()
224 if (vb2_plane_size(&buf->vb.vb2_buf, 0) < size) in cx8802_buf_prepare()
226 vb2_set_plane_payload(&buf->vb.vb2_buf, 0, size); in cx8802_buf_prepare()
256 buf, buf->vb.vb2_buf.index, __func__); in cx8802_buf_queue()
265 buf, buf->vb.vb2_buf.index, __func__); in cx8802_buf_queue()
282 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in do_cancel_buffers()
/linux/drivers/staging/media/starfive/camss/
H A Dstf-capture.c364 vb2_buffer_done(&buf->vb.vb2_buf, state); in stf_buf_flush()
368 vb2_buffer_done(&buf->vb.vb2_buf, state); in stf_buf_flush()
386 ready_buf->vb.vb2_buf.timestamp = ts; in stf_buf_done()
389 vb2_buffer_done(&ready_buf->vb.vb2_buf, VB2_BUF_STATE_DONE); in stf_buf_done()
542 vb2_buffer_done(&v_bufs->buf[i]->vb.vb2_buf, state); in stf_flush_buffers()
548 vb2_buffer_done(&v_bufs->last_buffer->vb.vb2_buf, state); in stf_flush_buffers()
/linux/drivers/media/platform/rockchip/rkisp1/
H A Drkisp1-stats.c144 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in rkisp1_stats_vb2_stop_streaming()
357 vb2_plane_vaddr(&cur_buf->vb.vb2_buf, 0); in rkisp1_stats_send_measurement()
372 vb2_set_plane_payload(&cur_buf->vb.vb2_buf, 0, in rkisp1_stats_send_measurement()
375 cur_buf->vb.vb2_buf.timestamp = timestamp; in rkisp1_stats_send_measurement()
376 vb2_buffer_done(&cur_buf->vb.vb2_buf, VB2_BUF_STATE_DONE); in rkisp1_stats_send_measurement()
/linux/drivers/media/usb/stk1160/
H A Dstk1160-v4l.c694 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in buffer_queue()
707 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in buffer_queue()
757 vb2_buffer_done(&buf->vb.vb2_buf, vb2_state); in stk1160_clear_queue()
759 buf, buf->vb.vb2_buf.index); in stk1160_clear_queue()
767 vb2_buffer_done(&buf->vb.vb2_buf, vb2_state); in stk1160_clear_queue()
769 buf, buf->vb.vb2_buf.index); in stk1160_clear_queue()
/linux/include/media/
H A Dvideobuf2-v4l2.h45 struct vb2_buffer vb2_buf; member
63 container_of(vb, struct vb2_v4l2_buffer, vb2_buf)
/linux/drivers/media/platform/chips-media/coda/
H A Dtrace.h65 __entry->index = buf->vb2_buf.index;
99 __entry->index = buf->vb2_buf.index;
/linux/drivers/media/pci/zoran/
H A Dzoran_device.c756 vbuf->vb2_buf.state = VB2_BUF_STATE_ACTIVE; in zoran_feed_stat_com()
757 phys_addr = vb2_dma_contig_plane_dma_addr(&vbuf->vb2_buf, 0); in zoran_feed_stat_com()
758 payload = vb2_get_plane_payload(&vbuf->vb2_buf, 0); in zoran_feed_stat_com()
837 buf->vbuf.vb2_buf.timestamp = ktime_get_ns(); in zoran_reap_stat_com()
840 vb2_set_plane_payload(&buf->vbuf.vb2_buf, 0, size); in zoran_reap_stat_com()
856 vb2_buffer_done(&buf->vbuf.vb2_buf, VB2_BUF_STATE_DONE); in zoran_reap_stat_com()
/linux/drivers/media/i2c/
H A Dvideo-i2c.c465 struct vb2_buffer *vb2_buf = &vid_cap_buf->vb.vb2_buf; in video_i2c_thread_vid_cap() local
466 void *vbuf = vb2_plane_vaddr(vb2_buf, 0); in video_i2c_thread_vid_cap()
470 vb2_buf->timestamp = ktime_get_ns(); in video_i2c_thread_vid_cap()
472 vb2_buffer_done(vb2_buf, ret ? in video_i2c_thread_vid_cap()
498 vb2_buffer_done(&buf->vb.vb2_buf, state); in video_i2c_del_list()
/linux/drivers/media/common/saa7146/
H A Dsaa7146_vbi.c252 struct sg_table *sgt = vb2_dma_sg_plane_desc(&buf->vb.vb2_buf, 0); in buf_init()
299 vb2_buffer_done(&buf->vb.vb2_buf, state); in return_buffers()
304 vb2_buffer_done(&buf->vb.vb2_buf, state); in return_buffers()

123