Home
last modified time | relevance | path

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

12

/openbmc/u-boot/test/dm/
H A Ddma.c20 u8 dst_buf[512]; in dm_test_dma_m2m() local
27 memset(dst_buf, 0, len); in dm_test_dma_m2m()
33 ut_assertok(memcmp(src_buf, dst_buf, len)); in dm_test_dma_m2m()
43 u8 dst_buf[512]; in dm_test_dma() local
57 memset(dst_buf, 0, len); in dm_test_dma()
62 dst_ptr = &dst_buf; in dm_test_dma()
74 ut_assertok(memcmp(src_buf, dst_buf, len)); in dm_test_dma()
85 u8 dst_buf[512]; in dm_test_dma_rx() local
99 memset(dst_buf, 0, len); in dm_test_dma_rx()
112 ut_asserteq_ptr(dst_buf, dst_ptr); in dm_test_dma_rx()
[all …]
/openbmc/linux/drivers/media/platform/verisilicon/
H A Dhantro_h1_jpeg_enc.c43 struct vb2_buffer *dst_buf) in hantro_h1_jpeg_enc_set_buffers() argument
49 size_left = vb2_plane_size(dst_buf, 0) - ctx->vpu_dst_fmt->header_size; in hantro_h1_jpeg_enc_set_buffers()
50 if (WARN_ON(vb2_plane_size(dst_buf, 0) < ctx->vpu_dst_fmt->header_size)) in hantro_h1_jpeg_enc_set_buffers()
55 vepu_write_relaxed(vpu, vb2_dma_contig_plane_dma_addr(dst_buf, 0) + in hantro_h1_jpeg_enc_set_buffers()
109 struct vb2_v4l2_buffer *src_buf, *dst_buf; in hantro_h1_jpeg_enc_run() local
114 dst_buf = hantro_get_dst_buf(ctx); in hantro_h1_jpeg_enc_run()
119 jpeg_ctx.buffer = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in hantro_h1_jpeg_enc_run()
131 &dst_buf->vb2_buf); in hantro_h1_jpeg_enc_run()
162 struct vb2_v4l2_buffer *dst_buf = hantro_get_dst_buf(ctx); in hantro_h1_jpeg_enc_done() local
164 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, in hantro_h1_jpeg_enc_done()
H A Drockchip_vpu2_hw_jpeg_enc.c70 struct vb2_buffer *dst_buf) in rockchip_vpu2_jpeg_enc_set_buffers() argument
76 size_left = vb2_plane_size(dst_buf, 0) - ctx->vpu_dst_fmt->header_size; in rockchip_vpu2_jpeg_enc_set_buffers()
77 if (WARN_ON(vb2_plane_size(dst_buf, 0) < ctx->vpu_dst_fmt->header_size)) in rockchip_vpu2_jpeg_enc_set_buffers()
82 vepu_write_relaxed(vpu, vb2_dma_contig_plane_dma_addr(dst_buf, 0) + in rockchip_vpu2_jpeg_enc_set_buffers()
135 struct vb2_v4l2_buffer *src_buf, *dst_buf; in rockchip_vpu2_jpeg_enc_run() local
140 dst_buf = hantro_get_dst_buf(ctx); in rockchip_vpu2_jpeg_enc_run()
145 jpeg_ctx.buffer = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in rockchip_vpu2_jpeg_enc_run()
160 &dst_buf->vb2_buf); in rockchip_vpu2_jpeg_enc_run()
193 struct vb2_v4l2_buffer *dst_buf = hantro_get_dst_buf(ctx); in rockchip_vpu2_jpeg_enc_done() local
195 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, in rockchip_vpu2_jpeg_enc_done()
H A Dhantro_postproc.c70 struct vb2_v4l2_buffer *dst_buf; in hantro_postproc_g1_enable() local
90 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in hantro_postproc_g1_enable()
91 dst_dma = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in hantro_postproc_g1_enable()
119 struct vb2_v4l2_buffer *dst_buf; in hantro_postproc_g2_enable() local
125 dst_buf = hantro_get_dst_buf(ctx); in hantro_postproc_g2_enable()
126 dst_dma = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in hantro_postproc_g2_enable()
H 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()
H 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()
H 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()
H A Dhantro_h264.c368 struct vb2_v4l2_buffer *dst_buf; in hantro_h264_get_ref_buf() local
375 dst_buf = hantro_get_dst_buf(ctx); in hantro_h264_get_ref_buf()
376 buf = &dst_buf->vb2_buf; in hantro_h264_get_ref_buf()
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/
H A Dmtk_vcodec_dec_stateful.c280 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_vdec_worker() local
294 dst_buf = v4l2_m2m_next_dst_buf(ctx->m2m_ctx); in mtk_vdec_worker()
295 if (!dst_buf) { in mtk_vdec_worker()
319 dst_buf->vb2_buf.index, pfb, pfb->base_y.va, in mtk_vdec_worker()
327 dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker()
334 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, 0); in mtk_vdec_worker()
336 vb2_set_plane_payload(&dst_buf->vb2_buf, 1, 0); in mtk_vdec_worker()
337 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in mtk_vdec_worker()
338 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_DONE); in mtk_vdec_worker()
359 dst_buf->timecode = src_buf->timecode; in mtk_vdec_worker()
[all …]
H A Dmtk_vcodec_dec_stateless.c246 struct vb2_buffer *dst_buf; in vdec_get_cap_buffer() local
255 dst_buf = &vb2_v4l2->vb2_buf; in vdec_get_cap_buffer()
259 pfb->base_y.va = vb2_plane_vaddr(dst_buf, 0); in vdec_get_cap_buffer()
260 pfb->base_y.dma_addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0); in vdec_get_cap_buffer()
264 pfb->base_c.va = vb2_plane_vaddr(dst_buf, 1); in vdec_get_cap_buffer()
266 vb2_dma_contig_plane_dma_addr(dst_buf, 1); in vdec_get_cap_buffer()
271 dst_buf->index, pfb, pfb->base_y.va, &pfb->base_y.dma_addr, in vdec_get_cap_buffer()
/openbmc/linux/drivers/media/platform/chips-media/
H A Dcoda-jpeg.c1073 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda9_jpeg_prepare_encode() local
1092 dst_buf->sequence = ctx->osequence; in coda9_jpeg_prepare_encode()
1118 vb2_plane_size(&dst_buf->vb2_buf, 0), in coda9_jpeg_prepare_encode()
1209 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda9_jpeg_finish_encode() local
1228 trace_coda_jpeg_done(ctx, dst_buf); in coda9_jpeg_finish_encode()
1245 dst_buf->flags |= V4L2_BUF_FLAG_KEYFRAME; in coda9_jpeg_finish_encode()
1256 dst_buf->sequence, in coda9_jpeg_finish_encode()
1467 dst_buf->sequence = ctx->osequence++; in coda9_jpeg_finish_decode()
1469 trace_coda_jpeg_done(ctx, dst_buf); in coda9_jpeg_finish_decode()
1472 dst_buf->flags |= V4L2_BUF_FLAG_KEYFRAME; in coda9_jpeg_finish_decode()
[all …]
H A Dcoda-bit.c1504 dst_buf->sequence = ctx->osequence; in coda_prepare_encode()
1657 trace_coda_enc_pic_done(ctx, dst_buf); in coda_finish_encode()
1664 if (dst_buf->sequence == 0 || in coda_finish_encode()
1701 coda_frame_type_char(dst_buf->flags), dst_buf->sequence, in coda_finish_encode()
2166 struct vb2_v4l2_buffer *dst_buf; in coda_prepare_decode() local
2306 struct vb2_v4l2_buffer *dst_buf; in coda_finish_decode() local
2520 dst_buf->sequence = ctx->osequence++; in coda_finish_decode()
2522 dst_buf->field = V4L2_FIELD_NONE; in coda_finish_decode()
2526 dst_buf->flags |= ready_frame->type; in coda_finish_decode()
2545 dst_buf->timecode = meta->timecode; in coda_finish_decode()
[all …]
/openbmc/linux/drivers/media/platform/mediatek/jpeg/
H A Dmtk_jpeg_core.c914 struct vb2_buffer *dst_buf, in mtk_jpeg_set_dec_dst() argument
929 vb2_plane_size(dst_buf, 0), in mtk_jpeg_set_dec_dst()
977 v4l2_m2m_buf_done(dst_buf, buf_state); in mtk_jpeg_enc_device_run()
1046 v4l2_m2m_buf_done(dst_buf, buf_state); in mtk_jpeg_dec_device_run()
1487 jpeg->hw_param.dst_buffer = dst_buf; in mtk_jpegenc_set_hw_param()
1547 jpeg->hw_param.dst_buffer = dst_buf; in mtk_jpegdec_set_hw_param()
1574 v4l2_m2m_buf_done(dst_buf, buf_state); in mtk_jpeg_enc_done()
1619 if (!dst_buf) in mtk_jpegenc_worker()
1653 &dst_buf->vb2_buf); in mtk_jpegenc_worker()
1715 if (!dst_buf) in mtk_jpegdec_worker()
[all …]
H A Dmtk_jpeg_enc_hw.c100 struct vb2_buffer *dst_buf) in mtk_jpeg_set_enc_dst() argument
107 dma_addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0); in mtk_jpeg_set_enc_dst()
110 size = vb2_plane_size(dst_buf, 0); in mtk_jpeg_set_enc_dst()
240 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpegenc_timeout_work() local
243 dst_buf = cjpeg->hw_param.dst_buffer; in mtk_jpegenc_timeout_work()
244 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, true); in mtk_jpegenc_timeout_work()
258 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpegenc_hw_irq_handler() local
271 dst_buf = jpeg->hw_param.dst_buffer; in mtk_jpegenc_hw_irq_handler()
272 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, true); in mtk_jpegenc_hw_irq_handler()
282 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, result_size); in mtk_jpegenc_hw_irq_handler()
H A Dmtk_jpeg_dec_hw.c494 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpegdec_timeout_work() local
497 dst_buf = cjpeg->hw_param.dst_buffer; in mtk_jpegdec_timeout_work()
498 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, true); in mtk_jpegdec_timeout_work()
512 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpegdec_hw_irq_handler() local
527 dst_buf = jpeg->hw_param.dst_buffer; in mtk_jpegdec_hw_irq_handler()
528 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, true); in mtk_jpegdec_hw_irq_handler()
541 for (i = 0; i < dst_buf->vb2_buf.num_planes; i++) in mtk_jpegdec_hw_irq_handler()
542 vb2_set_plane_payload(&dst_buf->vb2_buf, i, in mtk_jpegdec_hw_irq_handler()
/openbmc/linux/drivers/media/platform/mediatek/vcodec/encoder/
H A Dmtk_vcodec_enc.c936 struct vb2_v4l2_buffer *src_buf, *dst_buf; in vb2ops_venc_stop_streaming() local
1022 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_venc_encode_header() local
1027 if (!dst_buf) { in mtk_venc_encode_header()
1038 ctx->id, dst_buf->vb2_buf.index, bs_buf.va, in mtk_venc_encode_header()
1055 dst_buf->timecode = src_buf->timecode; in mtk_venc_encode_header()
1062 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_DONE); in mtk_venc_encode_header()
1142 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_venc_worker() local
1153 if (!dst_buf) { in mtk_venc_worker()
1167 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in mtk_venc_worker()
1194 dst_buf->timecode = src_buf->timecode; in mtk_venc_worker()
[all …]
/openbmc/linux/drivers/media/platform/mediatek/mdp/
H 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()
/openbmc/linux/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc.c227 struct s5p_mfc_buf *dst_buf; in s5p_mfc_handle_frame_all_extracted() local
236 dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted()
239 list_del(&dst_buf->list); in s5p_mfc_handle_frame_all_extracted()
281 dst_buf->b->flags &= in s5p_mfc_handle_frame_copy_time()
283 dst_buf->b->flags |= in s5p_mfc_handle_frame_copy_time()
288 dst_buf->b->flags |= in s5p_mfc_handle_frame_copy_time()
292 dst_buf->b->flags |= in s5p_mfc_handle_frame_copy_time()
296 dst_buf->b->flags |= in s5p_mfc_handle_frame_copy_time()
315 struct s5p_mfc_buf *dst_buf; in s5p_mfc_handle_frame_new() local
344 list_del(&dst_buf->list); in s5p_mfc_handle_frame_new()
[all …]
/openbmc/linux/drivers/crypto/virtio/
H A Dvirtio_crypto_akcipher_algs.c42 void *dst_buf; member
60 kfree(vc_akcipher_req->dst_buf); in virtio_crypto_akcipher_finalize_req()
62 vc_akcipher_req->dst_buf = NULL; in virtio_crypto_akcipher_finalize_req()
101 vc_akcipher_req->dst_buf, akcipher_req->dst_len); in virtio_crypto_dataq_akcipher_callback()
228 void *src_buf = NULL, *dst_buf = NULL; in __virtio_crypto_akcipher_do_req() local
256 dst_buf = kcalloc_node(req->dst_len, 1, GFP_KERNEL, node); in __virtio_crypto_akcipher_do_req()
257 if (!dst_buf) in __virtio_crypto_akcipher_do_req()
260 sg_init_one(&dstdata_sg, dst_buf, req->dst_len); in __virtio_crypto_akcipher_do_req()
265 vc_akcipher_req->dst_buf = dst_buf; in __virtio_crypto_akcipher_do_req()
282 kfree(dst_buf); in __virtio_crypto_akcipher_do_req()
/openbmc/linux/drivers/media/platform/nxp/imx-jpeg/
H A Dmxc-jpeg.c826 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in mxc_jpeg_check_and_set_last_buffer()
837 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mxc_jpeg_job_finish() local
845 v4l2_m2m_buf_done(dst_buf, state); in mxc_jpeg_job_finish()
886 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mxc_jpeg_dec_irq() local
920 if (!dst_buf || !src_buf) { in mxc_jpeg_dec_irq()
1164 struct vb2_buffer *dst_buf) in mxc_jpeg_config_dec_desc() argument
1196 mxc_jpeg_addrs(desc, dst_buf, src_buf, 0); in mxc_jpeg_config_dec_desc()
1233 struct vb2_buffer *dst_buf) in mxc_jpeg_config_enc_desc() argument
1287 mxc_jpeg_addrs(desc, src_buf, dst_buf, 0); in mxc_jpeg_config_enc_desc()
1442 if (!src_buf || !dst_buf) { in mxc_jpeg_device_run()
[all …]
/openbmc/linux/drivers/media/platform/renesas/
H A Drcar_jpu.c1319 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_cleanup() local
1328 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR); in jpu_cleanup()
1345 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_device_run() local
1364 jpu_buf = vb2_to_jpu_buffer(dst_buf); in jpu_device_run()
1452 &dst_buf->vb2_buf, 1); in jpu_device_run()
1491 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_irq_handler() local
1527 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, in jpu_irq_handler()
1531 dst_buf->field = src_buf->field; in jpu_irq_handler()
1534 dst_buf->timecode = src_buf->timecode; in jpu_irq_handler()
1535 dst_buf->flags = src_buf->flags & in jpu_irq_handler()
[all …]
/openbmc/linux/drivers/gpu/drm/exynos/
H A Dexynos_drm_scaler.c216 struct exynos_drm_ipp_buffer *dst_buf) in scaler_set_dst_base() argument
225 for (i = 0; i < dst_buf->format->num_planes; ++i) in scaler_set_dst_base()
226 scaler_write(dst_buf->dma_addr[i], bases[i]); in scaler_set_dst_base()
230 struct exynos_drm_ipp_buffer *dst_buf) in scaler_set_dst_span() argument
234 val = SCALER_DST_SPAN_SET_Y_SPAN(dst_buf->buf.pitch[0] / in scaler_set_dst_span()
235 dst_buf->format->cpp[0]); in scaler_set_dst_span()
237 if (dst_buf->format->num_planes > 1) in scaler_set_dst_span()
238 val |= SCALER_DST_SPAN_SET_C_SPAN(dst_buf->buf.pitch[1]); in scaler_set_dst_span()
/openbmc/linux/drivers/staging/media/imx/
H 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()
/openbmc/linux/drivers/media/rc/
H 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()
/openbmc/linux/drivers/media/test-drivers/vicodec/
H A Dvicodec-core.c404 struct vb2_v4l2_buffer *src_buf, *dst_buf; in device_run() local
417 if (device_process(ctx, src_buf, dst_buf)) in device_run()
420 dst_buf->sequence = q_dst->sequence++; in device_run()
421 dst_buf->flags &= ~V4L2_BUF_FLAG_LAST; in device_run()
427 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in device_run()
442 v4l2_m2m_buf_done(dst_buf, state); in device_run()
553 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, 0); in set_last_buffer()
554 dst_buf->sequence = q_dst->sequence++; in set_last_buffer()
557 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in set_last_buffer()
669 struct vb2_v4l2_buffer *dst_buf = in job_ready() local
[all …]

12