Home
last modified time | relevance | path

Searched refs:dst_buf (Results 1 – 25 of 41) sorted by relevance

12

/linux/drivers/media/platform/coda/
A Dcoda-jpeg.c1067 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda9_jpeg_prepare_encode() local
1086 dst_buf->sequence = ctx->osequence; in coda9_jpeg_prepare_encode()
1112 vb2_plane_size(&dst_buf->vb2_buf, 0), in coda9_jpeg_prepare_encode()
1202 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda9_jpeg_finish_encode() local
1221 trace_coda_jpeg_done(ctx, dst_buf); in coda9_jpeg_finish_encode()
1238 dst_buf->flags |= V4L2_BUF_FLAG_KEYFRAME; in coda9_jpeg_finish_encode()
1249 dst_buf->sequence, in coda9_jpeg_finish_encode()
1447 dst_buf->sequence = ctx->osequence++; in coda9_jpeg_finish_decode()
1449 trace_coda_jpeg_done(ctx, dst_buf); in coda9_jpeg_finish_decode()
1452 dst_buf->flags |= V4L2_BUF_FLAG_KEYFRAME; in coda9_jpeg_finish_decode()
[all …]
A Dcoda-bit.c1496 dst_buf->sequence = ctx->osequence; in coda_prepare_encode()
1649 trace_coda_enc_pic_done(ctx, dst_buf); in coda_finish_encode()
1656 if (dst_buf->sequence == 0 || in coda_finish_encode()
1693 coda_frame_type_char(dst_buf->flags), dst_buf->sequence, in coda_finish_encode()
2158 struct vb2_v4l2_buffer *dst_buf; in coda_prepare_decode() local
2300 struct vb2_v4l2_buffer *dst_buf; in coda_finish_decode() local
2514 dst_buf->sequence = ctx->osequence++; in coda_finish_decode()
2516 dst_buf->field = V4L2_FIELD_NONE; in coda_finish_decode()
2520 dst_buf->flags |= ready_frame->type; in coda_finish_decode()
2539 dst_buf->timecode = meta->timecode; in coda_finish_decode()
[all …]
/linux/drivers/media/platform/mtk-vcodec/
A Dmtk_vcodec_dec_stateful.c298 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_vdec_worker() local
312 dst_buf = v4l2_m2m_next_dst_buf(ctx->m2m_ctx); in mtk_vdec_worker()
313 if (!dst_buf) { in mtk_vdec_worker()
337 dst_buf->vb2_buf.index, pfb, pfb->base_y.va, in mtk_vdec_worker()
345 dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker()
352 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, 0); in mtk_vdec_worker()
354 vb2_set_plane_payload(&dst_buf->vb2_buf, 1, 0); in mtk_vdec_worker()
355 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in mtk_vdec_worker()
356 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_DONE); in mtk_vdec_worker()
377 dst_buf->timecode = src_buf->timecode; in mtk_vdec_worker()
[all …]
A Dmtk_vcodec_enc.c955 struct vb2_v4l2_buffer *src_buf, *dst_buf; in vb2ops_venc_stop_streaming() local
1045 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_venc_encode_header() local
1050 if (!dst_buf) { in mtk_venc_encode_header()
1062 dst_buf->vb2_buf.index, bs_buf.va, in mtk_venc_encode_header()
1071 dst_buf->vb2_buf.planes[0].bytesused = 0; in mtk_venc_encode_header()
1080 dst_buf->timecode = src_buf->timecode; in mtk_venc_encode_header()
1173 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_venc_worker() local
1184 if (!dst_buf) { in mtk_venc_worker()
1198 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in mtk_venc_worker()
1228 dst_buf->timecode = src_buf->timecode; in mtk_venc_worker()
[all …]
A Dmtk_vcodec_dec_stateless.c134 struct vb2_buffer *dst_buf = &vb2_v4l2->vb2_buf; in vdec_get_cap_buffer() local
138 pfb->base_y.dma_addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0); in vdec_get_cap_buffer()
144 vb2_dma_contig_plane_dma_addr(dst_buf, 1); in vdec_get_cap_buffer()
148 dst_buf->index, pfb, pfb->base_y.va, &pfb->base_y.dma_addr, in vdec_get_cap_buffer()
171 struct vdec_fb *dst_buf; in mtk_vdec_worker() local
210 dst_buf = vdec_get_cap_buffer(ctx, vb2_v4l2_dst); in mtk_vdec_worker()
212 ret = vdec_if_decode(ctx, bs_src, dst_buf, &res_chg); in mtk_vdec_worker()
224 mtk_vdec_stateless_set_dst_payload(ctx, dst_buf); in mtk_vdec_worker()
/linux/drivers/media/platform/s5p-mfc/
A Ds5p_mfc.c221 struct s5p_mfc_buf *dst_buf; in s5p_mfc_handle_frame_all_extracted() local
230 dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted()
233 list_del(&dst_buf->list); in s5p_mfc_handle_frame_all_extracted()
273 dst_buf->b->flags &= in s5p_mfc_handle_frame_copy_time()
275 dst_buf->b->flags |= in s5p_mfc_handle_frame_copy_time()
280 dst_buf->b->flags |= in s5p_mfc_handle_frame_copy_time()
284 dst_buf->b->flags |= in s5p_mfc_handle_frame_copy_time()
288 dst_buf->b->flags |= in s5p_mfc_handle_frame_copy_time()
305 struct s5p_mfc_buf *dst_buf; in s5p_mfc_handle_frame_new() local
332 list_del(&dst_buf->list); in s5p_mfc_handle_frame_new()
[all …]
/linux/drivers/staging/media/hantro/
A Dhantro_h1_jpeg_enc.c94 struct vb2_v4l2_buffer *src_buf, *dst_buf; in hantro_h1_jpeg_enc_run() local
99 dst_buf = hantro_get_dst_buf(ctx); in hantro_h1_jpeg_enc_run()
104 jpeg_ctx.buffer = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in hantro_h1_jpeg_enc_run()
147 struct vb2_v4l2_buffer *dst_buf = hantro_get_dst_buf(ctx); in hantro_jpeg_enc_done() local
153 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0) + in hantro_jpeg_enc_done()
156 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, in hantro_jpeg_enc_done()
A Dhantro_g1_mpeg2_dec.c94 struct vb2_buffer *dst_buf, in hantro_g1_mpeg2_dec_set_buffers() argument
114 addr = hantro_get_dec_buf_addr(ctx, dst_buf); in hantro_g1_mpeg2_dec_set_buffers()
151 struct vb2_v4l2_buffer *src_buf, *dst_buf; in hantro_g1_mpeg2_dec_run() local
157 dst_buf = hantro_get_dst_buf(ctx); in hantro_g1_mpeg2_dec_run()
232 &dst_buf->vb2_buf, in hantro_g1_mpeg2_dec_run()
A Drockchip_vpu2_hw_mpeg2_dec.c97 struct vb2_buffer *dst_buf, in rockchip_vpu2_mpeg2_dec_set_buffers() argument
117 addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0); in rockchip_vpu2_mpeg2_dec_set_buffers()
154 struct vb2_v4l2_buffer *src_buf, *dst_buf; in rockchip_vpu2_mpeg2_dec_run() local
160 dst_buf = hantro_get_dst_buf(ctx); in rockchip_vpu2_mpeg2_dec_run()
239 &dst_buf->vb2_buf, seq, pic); in rockchip_vpu2_mpeg2_dec_run()
A Drockchip_vpu2_hw_jpeg_enc.c124 struct vb2_v4l2_buffer *src_buf, *dst_buf; in rockchip_vpu2_jpeg_enc_run() local
129 dst_buf = hantro_get_dst_buf(ctx); in rockchip_vpu2_jpeg_enc_run()
134 jpeg_ctx.buffer = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in rockchip_vpu2_jpeg_enc_run()
A Dhantro_postproc.c70 struct vb2_v4l2_buffer *dst_buf; in hantro_postproc_enable() local
93 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in hantro_postproc_enable()
94 dst_dma = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in hantro_postproc_enable()
A Dhantro_g1_h264_dec.c208 struct vb2_v4l2_buffer *dst_buf; in set_buffers() local
218 dst_buf = hantro_get_dst_buf(ctx); in set_buffers()
219 dst_dma = hantro_get_dec_buf_addr(ctx, &dst_buf->vb2_buf); in set_buffers()
A Dhantro_h264.c336 struct vb2_v4l2_buffer *dst_buf; in hantro_h264_get_ref_buf() local
343 dst_buf = hantro_get_dst_buf(ctx); in hantro_h264_get_ref_buf()
344 buf = &dst_buf->vb2_buf; in hantro_h264_get_ref_buf()
/linux/drivers/media/platform/mtk-mdp/
A Dmtk_mdp_regs.c61 struct mdp_buffer *dst_buf = &ctx->vpu.vsi->dst_buffer; in mtk_mdp_hw_set_output_addr() local
65 dst_buf->addr_mva[i] = (uint64_t)addr->addr[i]; in mtk_mdp_hw_set_output_addr()
124 struct mdp_buffer *dst_buf = &ctx->vpu.vsi->dst_buffer; in mtk_mdp_hw_set_out_image_format() local
126 dst_buf->plane_num = frame->fmt->num_comp; in mtk_mdp_hw_set_out_image_format()
130 for (i = 0; i < dst_buf->plane_num; i++) in mtk_mdp_hw_set_out_image_format()
131 dst_buf->plane_size[i] = frame->payload[i]; in mtk_mdp_hw_set_out_image_format()
/linux/drivers/media/platform/mtk-jpeg/
A Dmtk_jpeg_core.c886 struct vb2_buffer *dst_buf, in mtk_jpeg_set_dec_dst() argument
893 param->comp_num, dst_buf->num_planes); in mtk_jpeg_set_dec_dst()
901 vb2_plane_size(dst_buf, 0), in mtk_jpeg_set_dec_dst()
915 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpeg_enc_device_run() local
949 v4l2_m2m_buf_done(dst_buf, buf_state); in mtk_jpeg_enc_device_run()
957 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpeg_dec_device_run() local
1000 v4l2_m2m_buf_done(dst_buf, buf_state); in mtk_jpeg_dec_device_run()
1078 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpeg_enc_done() local
1097 v4l2_m2m_buf_done(dst_buf, buf_state); in mtk_jpeg_enc_done()
1127 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpeg_dec_irq() local
[all …]
A Dmtk_jpeg_enc_hw.c72 struct vb2_buffer *dst_buf) in mtk_jpeg_set_enc_dst() argument
79 dma_addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0); in mtk_jpeg_set_enc_dst()
82 size = vb2_plane_size(dst_buf, 0); in mtk_jpeg_set_enc_dst()
/linux/drivers/media/platform/imx-jpeg/
A Dmxc-jpeg.c555 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mxc_jpeg_dec_irq() local
593 if (!dst_buf || !src_buf) { in mxc_jpeg_dec_irq()
646 print_mxc_buf(jpeg, &dst_buf->vb2_buf, 32); in mxc_jpeg_dec_irq()
654 v4l2_m2m_buf_done(dst_buf, buf_state); in mxc_jpeg_dec_irq()
794 struct vb2_buffer *dst_buf) in mxc_jpeg_config_dec_desc() argument
822 mxc_jpeg_addrs(desc, dst_buf, src_buf, 0); in mxc_jpeg_config_dec_desc()
859 struct vb2_buffer *dst_buf) in mxc_jpeg_config_enc_desc() argument
907 mxc_jpeg_addrs(desc, src_buf, dst_buf, 0); in mxc_jpeg_config_enc_desc()
925 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mxc_jpeg_device_run() local
933 if (!src_buf || !dst_buf) { in mxc_jpeg_device_run()
[all …]
/linux/drivers/media/platform/
A Drcar_jpu.c1327 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_cleanup() local
1336 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR); in jpu_cleanup()
1353 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_device_run() local
1372 jpu_buf = vb2_to_jpu_buffer(dst_buf); in jpu_device_run()
1460 &dst_buf->vb2_buf, 1); in jpu_device_run()
1499 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_irq_handler() local
1535 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, in jpu_irq_handler()
1539 dst_buf->field = src_buf->field; in jpu_irq_handler()
1542 dst_buf->timecode = src_buf->timecode; in jpu_irq_handler()
1543 dst_buf->flags = src_buf->flags & in jpu_irq_handler()
[all …]
/linux/drivers/gpu/drm/exynos/
A Dexynos_drm_scaler.c215 struct exynos_drm_ipp_buffer *dst_buf) in scaler_set_dst_base() argument
224 for (i = 0; i < dst_buf->format->num_planes; ++i) in scaler_set_dst_base()
225 scaler_write(dst_buf->dma_addr[i], bases[i]); in scaler_set_dst_base()
229 struct exynos_drm_ipp_buffer *dst_buf) in scaler_set_dst_span() argument
233 val = SCALER_DST_SPAN_SET_Y_SPAN(dst_buf->buf.pitch[0] / in scaler_set_dst_span()
234 dst_buf->format->cpp[0]); in scaler_set_dst_span()
236 if (dst_buf->format->num_planes > 1) in scaler_set_dst_span()
237 val |= SCALER_DST_SPAN_SET_C_SPAN(dst_buf->buf.pitch[1]); in scaler_set_dst_span()
/linux/drivers/staging/media/imx/
A Dimx-media-csc-scaler.c94 struct vb2_v4l2_buffer *src_buf, *dst_buf; in ipu_ic_pp_complete() local
97 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in ipu_ic_pp_complete()
99 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, true); in ipu_ic_pp_complete()
102 dst_buf->sequence = src_buf->sequence; in ipu_ic_pp_complete()
106 v4l2_m2m_buf_done(dst_buf, run->status ? VB2_BUF_STATE_ERROR : in ipu_ic_pp_complete()
117 struct vb2_v4l2_buffer *src_buf, *dst_buf; in device_run() local
122 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in device_run()
130 run->out_phys = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in device_run()
145 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR); in device_run()
/linux/drivers/media/test-drivers/vicodec/
A Dvicodec-core.c408 struct vb2_v4l2_buffer *src_buf, *dst_buf; in device_run() local
421 if (device_process(ctx, src_buf, dst_buf)) in device_run()
424 dst_buf->sequence = q_dst->sequence++; in device_run()
425 dst_buf->flags &= ~V4L2_BUF_FLAG_LAST; in device_run()
431 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in device_run()
446 v4l2_m2m_buf_done(dst_buf, state); in device_run()
557 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, 0); in set_last_buffer()
558 dst_buf->sequence = q_dst->sequence++; in set_last_buffer()
561 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in set_last_buffer()
673 struct vb2_v4l2_buffer *dst_buf = in job_ready() local
[all …]
/linux/drivers/media/rc/
A Dmeson-ir-tx.c181 static void meson_irtx_fill_buf(struct meson_irtx *ir, u32 *dst_buf, in meson_irtx_fill_buf() argument
188 dst_buf[i] = meson_irtx_prepare_pulse(ir, src_buf[i]); in meson_irtx_fill_buf()
190 dst_buf[i] = meson_irtx_prepare_space(ir, src_buf[i]); in meson_irtx_fill_buf()
/linux/drivers/media/platform/s5p-jpeg/
A Djpeg-core.c2033 struct vb2_v4l2_buffer *src_buf, *dst_buf; in s5p_jpeg_device_run() local
2039 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in s5p_jpeg_device_run()
2644 struct vb2_v4l2_buffer *src_buf, *dst_buf; in s5p_jpeg_irq() local
2656 dst_buf = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in s5p_jpeg_irq()
2678 dst_buf->timecode = src_buf->timecode; in s5p_jpeg_irq()
2680 dst_buf->flags &= ~V4L2_BUF_FLAG_TSTAMP_SRC_MASK; in s5p_jpeg_irq()
2681 dst_buf->flags |= in s5p_jpeg_irq()
2687 v4l2_m2m_buf_done(dst_buf, state); in s5p_jpeg_irq()
2770 struct vb2_v4l2_buffer *src_buf, *dst_buf; in exynos3250_jpeg_irq() local
2821 dst_buf->timecode = src_buf->timecode; in exynos3250_jpeg_irq()
[all …]
/linux/drivers/media/platform/allegro-dvt/
A Dallegro-core.c1959 struct vb2_v4l2_buffer *dst_buf; in allegro_channel_finish_frame() local
1978 if (!dst_buf) in allegro_channel_finish_frame()
1983 if (!src_buf || !dst_buf) in allegro_channel_finish_frame()
1987 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in allegro_channel_finish_frame()
1992 dst_buf->sequence = channel->csequence++; in allegro_channel_finish_frame()
2127 dst_buf->flags |= V4L2_BUF_FLAG_PFRAME; in allegro_channel_finish_frame()
2132 dst_buf->sequence, in allegro_channel_finish_frame()
2142 if (dst_buf) in allegro_channel_finish_frame()
2143 v4l2_m2m_buf_done(dst_buf, state); in allegro_channel_finish_frame()
3621 struct vb2_v4l2_buffer *dst_buf; in allegro_device_run() local
[all …]
/linux/drivers/media/platform/sti/hva/
A Dhva-v4l2.c808 struct vb2_v4l2_buffer *src_buf, *dst_buf; in hva_run_work() local
822 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in hva_run_work()
825 stream = to_hva_stream(dst_buf); in hva_run_work()
830 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, stream->bytesused); in hva_run_work()
833 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR); in hva_run_work()
836 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp; in hva_run_work()
837 dst_buf->field = V4L2_FIELD_NONE; in hva_run_work()
838 dst_buf->sequence = ctx->stream_num - 1; in hva_run_work()
847 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_DONE); in hva_run_work()

Completed in 101 milliseconds

12