Home
last modified time | relevance | path

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

1234

/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()
/linux/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc.c137 for (i = 0; i < b->b->vb2_buf.num_planes; i++) in s5p_mfc_cleanup_queue()
138 vb2_set_plane_payload(&b->b->vb2_buf, i, 0); in s5p_mfc_cleanup_queue()
139 vb2_buffer_done(&b->b->vb2_buf, VB2_BUF_STATE_ERROR); in s5p_mfc_cleanup_queue()
236 dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted()
237 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 0, 0); in s5p_mfc_handle_frame_all_extracted()
238 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 1, 0); in s5p_mfc_handle_frame_all_extracted()
251 ctx->dec_dst_flag &= ~(1 << dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted()
252 vb2_buffer_done(&dst_buf->b->vb2_buf, VB2_BUF_STATE_DONE); in s5p_mfc_handle_frame_all_extracted()
275 u32 addr = (u32)vb2_dma_contig_plane_dma_addr(&dst_buf->b->vb2_buf, 0); in s5p_mfc_handle_frame_copy_time()
279 dst_buf->b->vb2_buf.timestamp = in s5p_mfc_handle_frame_copy_time()
[all …]
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/platform/chips-media/coda/
H A Dcoda-jpeg.c1087 if (vb2_get_plane_payload(&src_buf->vb2_buf, 0) == 0) in coda9_jpeg_prepare_encode()
1088 vb2_set_plane_payload(&src_buf->vb2_buf, 0, in coda9_jpeg_prepare_encode()
1089 vb2_plane_size(&src_buf->vb2_buf, 0)); in coda9_jpeg_prepare_encode()
1100 start_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in coda9_jpeg_prepare_encode()
1101 end_addr = start_addr + vb2_plane_size(&dst_buf->vb2_buf, 0); in coda9_jpeg_prepare_encode()
1118 vb2_plane_size(&dst_buf->vb2_buf, 0), in coda9_jpeg_prepare_encode()
1119 vb2_plane_vaddr(&dst_buf->vb2_buf, 0)); in coda9_jpeg_prepare_encode()
1234 start_ptr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in coda9_jpeg_finish_encode()
1236 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, wr_ptr - start_ptr); in coda9_jpeg_finish_encode()
1348 if (vb2_get_plane_payload(&src_buf->vb2_buf, 0) == 0) in coda9_jpeg_prepare_decode()
[all …]
/linux/drivers/media/platform/renesas/rcar-isp/
H A Dcore.c126 mem = vb2_dma_contig_plane_dma_addr(&buf->vb.vb2_buf, 0); in risp_core_job_run_output()
134 mem = vb2_dma_contig_plane_dma_addr(&buf->vb.vb2_buf, 1); in risp_core_job_run_output()
186 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in risp_core_job_run()
269 vb2_dma_contig_plane_dma_addr(&buf->vb.vb2_buf, in risp_core_job_prepare()
331 vb2_buffer_done(&job->buffers[i]->vb.vb2_buf, in risp_core_job_prepare()
663 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in risp_core_stop_streaming()
707 vb2_plane_vaddr(&buf->vb.vb2_buf, 0)); in risp_core_irq()
712 buf->vb.vb2_buf.timestamp = ktime_get_ns(); in risp_core_irq()
715 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE); in risp_core_irq()
/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/v4l2-core/
H A Dv4l2-mem2mem.c212 if (b->vb.vb2_buf.index == idx) { in v4l2_m2m_buf_remove_by_idx()
337 dst->vb2_buf.copied_timestamp && in __v4l2_m2m_try_queue()
338 dst->vb2_buf.timestamp != src->vb2_buf.timestamp) { in __v4l2_m2m_try_queue()
353 m2m_ctx->new_frame = !dst->vb2_buf.copied_timestamp || in __v4l2_m2m_try_queue()
354 dst->vb2_buf.timestamp != src->vb2_buf.timestamp; in __v4l2_m2m_try_queue()
635 vb2_buffer_done(&vbuf->vb2_buf, VB2_BUF_STATE_DONE); in v4l2_m2m_last_buffer_done()
1300 q_ctx = get_queue_ctx(m2m_ctx, vbuf->vb2_buf.vb2_queue->type); in v4l2_m2m_buf_queue()
1314 cap_vb->vb2_buf.timestamp = out_vb->vb2_buf.timestamp; in v4l2_m2m_buf_copy_metadata()
1321 cap_vb->vb2_buf.copied_timestamp = 1; in v4l2_m2m_buf_copy_metadata()
/linux/drivers/media/platform/amphion/
H A Dvdec.c843 for (int i = 0; i < vbuf->vb2_buf.num_planes; i++) in vdec_frame_decoded()
844 vb2_set_plane_payload(&vbuf->vb2_buf, in vdec_frame_decoded()
848 dev_dbg(inst->dev, "[%d][OUTPUT TS]%32lld\n", inst->id, vbuf->vb2_buf.timestamp); in vdec_frame_decoded()
904 inst->id, vpu_buf->fs_id, vbuf->vb2_buf.index, frame->id); in vdec_buf_done()
913 for (i = 0; i < vbuf->vb2_buf.num_planes; i++) in vdec_buf_done()
914 vb2_set_plane_payload(&vbuf->vb2_buf, i, vpu_get_fmt_plane_size(cur_fmt, i)); in vdec_buf_done()
917 dev_dbg(inst->dev, "[%d][OUTPUT TS]%32lld\n", inst->id, vbuf->vb2_buf.timestamp); in vdec_buf_done()
1163 vpu_buf->fs_id, vbuf->vb2_buf.index); in vdec_response_frame()
1175 inst->id, vpu_buf->fs_id, vbuf->vb2_buf.index); in vdec_response_frame()
1180 inst->id, vpu_codec_state_name(inst->state), vbuf->vb2_buf.index, vdec->seq_tag); in vdec_response_frame()
[all …]
/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/platform/ti/davinci/
H A Dvpif_display.c206 addr = vb2_dma_contig_plane_dma_addr(&common->cur_frm->vb.vb2_buf, 0); in vpif_start_streaming()
238 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_QUEUED); in vpif_start_streaming()
273 vb2_buffer_done(&common->cur_frm->vb.vb2_buf, in vpif_stop_streaming()
277 vb2_buffer_done(&common->cur_frm->vb.vb2_buf, in vpif_stop_streaming()
280 vb2_buffer_done(&common->next_frm->vb.vb2_buf, in vpif_stop_streaming()
288 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 common->cur_frm->vb.vb2_buf.timestamp = ktime_get_ns(); in process_interlaced_mode()
335 vb2_buffer_done(&common->cur_frm->vb.vb2_buf, in process_interlaced_mode()
389 common->cur_frm->vb.vb2_buf.timestamp = in vpif_channel_isr()
[all …]
/linux/drivers/media/platform/st/sti/hva/
H A Dhva-v4l2.c571 struct vb2_buffer *vb2_buf; in hva_qbuf() local
574 vb2_buf = vb2_get_buffer(vq, buf->index); in hva_qbuf()
575 if (!vb2_buf) { in hva_qbuf()
579 stream = to_hva_stream(to_vb2_v4l2_buffer(vb2_buf)); in hva_qbuf()
829 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, stream->bytesused); in hva_run_work()
835 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp; in hva_run_work()
952 frame->vaddr = vb2_plane_vaddr(&vbuf->vb2_buf, 0); in hva_buf_prepare()
954 &vbuf->vb2_buf, 0); in hva_buf_prepare()
968 stream->vaddr = vb2_plane_vaddr(&vbuf->vb2_buf, 0); in hva_buf_prepare()
970 &vbuf->vb2_buf, 0); in hva_buf_prepare()
[all …]
/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/drivers/media/platform/imagination/
H A De5010-jpeg-enc.c947 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, dst_buf->planes[0].length); in e5010_irq()
970 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, output_size + HEADER_SIZE); in e5010_irq()
1142 ctx, type_name(vbuf->vb2_buf.type), vbuf->vb2_buf.index); in e5010_vb2_buffers_return()
1148 ctx, type_name(vbuf->vb2_buf.type), vbuf->vb2_buf.index); in e5010_vb2_buffers_return()
1149 vb2_set_plane_payload(&vbuf->vb2_buf, 0, 0); in e5010_vb2_buffers_return()
1375 reg = (u32)vb2_dma_contig_plane_dma_addr(&s_vb->vb2_buf, 0); in e5010_device_run()
1404 reg = (u32)vb2_dma_contig_plane_dma_addr(&s_vb->vb2_buf, 1); in e5010_device_run()
1408 ctx, (u32)vb2_dma_contig_plane_dma_addr(&s_vb->vb2_buf, 0) + luma_crop_offset, in e5010_device_run()
1409 reg + chroma_crop_offset, (u32)vb2_dma_contig_plane_dma_addr(&d_vb->vb2_buf, 0)); in e5010_device_run()
1413 ctx, s_vb->vb2_buf.index, d_vb->vb2_buf.index); in e5010_device_run()
[all …]
/linux/drivers/media/platform/renesas/
H A Drenesas-ceu.c470 vb2_dma_contig_plane_dma_addr(&ceudev->active->vb2_buf, 0); in ceu_capture()
476 vb2_dma_contig_plane_dma_addr(&ceudev->active->vb2_buf, in ceu_capture()
524 vbuf->vb2_buf.timestamp = ktime_get_ns(); in ceu_irq()
539 vb2_buffer_done(&vbuf->vb2_buf, VB2_BUF_STATE_DONE); in ceu_irq()
547 vb2_buffer_done(&vbuf->vb2_buf, VB2_BUF_STATE_ERROR); in ceu_irq()
550 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in ceu_irq()
721 vb2_buffer_done(&ceudev->active->vb2_buf, in ceu_start_streaming()
745 vb2_buffer_done(&ceudev->active->vb2_buf, in ceu_stop_streaming()
752 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in ceu_stop_streaming()

1234