Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/media/platform/coda/
Dcoda-bit.c1468 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda_prepare_encode() local
1485 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in coda_prepare_encode()
1491 dst_buf->sequence = ctx->osequence; in coda_prepare_encode()
1523 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0) + in coda_prepare_encode()
1531 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0), in coda_prepare_encode()
1533 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0) in coda_prepare_encode()
1536 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0) in coda_prepare_encode()
1541 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in coda_prepare_encode()
1628 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda_finish_encode() local
1639 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in coda_finish_encode()
[all …]
/Linux-v5.4/drivers/media/platform/mtk-vcodec/
Dmtk_vcodec_enc.c889 struct vb2_v4l2_buffer *src_buf, *dst_buf; in vb2ops_venc_stop_streaming() local
895 while ((dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx))) { in vb2ops_venc_stop_streaming()
896 dst_buf->vb2_buf.planes[0].bytesused = 0; in vb2ops_venc_stop_streaming()
897 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR); in vb2ops_venc_stop_streaming()
937 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_venc_encode_header() local
941 dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_venc_encode_header()
942 if (!dst_buf) { in mtk_venc_encode_header()
947 bs_buf.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in mtk_venc_encode_header()
948 bs_buf.dma_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in mtk_venc_encode_header()
949 bs_buf.size = (size_t)dst_buf->vb2_buf.planes[0].length; in mtk_venc_encode_header()
[all …]
Dmtk_vcodec_dec.c347 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_vdec_worker() local
361 dst_buf = v4l2_m2m_next_dst_buf(ctx->m2m_ctx); in mtk_vdec_worker()
362 if (dst_buf == NULL) { in mtk_vdec_worker()
369 dst_buf_info = container_of(dst_buf, struct mtk_video_dec_buf, vb); in mtk_vdec_worker()
372 pfb->base_y.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in mtk_vdec_worker()
373 pfb->base_y.dma_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in mtk_vdec_worker()
376 pfb->base_c.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 1); in mtk_vdec_worker()
377 pfb->base_c.dma_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 1); in mtk_vdec_worker()
384 dst_buf->vb2_buf.index, pfb, in mtk_vdec_worker()
393 dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker()
[all …]
/Linux-v5.4/drivers/media/platform/mtk-mdp/
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-v5.4/drivers/media/platform/s5p-mfc/
Ds5p_mfc.c221 struct s5p_mfc_buf *dst_buf; in s5p_mfc_handle_frame_all_extracted() local
227 dst_buf = list_entry(ctx->dst_queue.next, in s5p_mfc_handle_frame_all_extracted()
230 dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted()
231 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 0, 0); in s5p_mfc_handle_frame_all_extracted()
232 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 1, 0); in s5p_mfc_handle_frame_all_extracted()
233 list_del(&dst_buf->list); in s5p_mfc_handle_frame_all_extracted()
234 dst_buf->flags |= MFC_BUF_FLAG_EOS; in s5p_mfc_handle_frame_all_extracted()
236 dst_buf->b->sequence = (ctx->sequence++); in s5p_mfc_handle_frame_all_extracted()
240 dst_buf->b->field = V4L2_FIELD_NONE; in s5p_mfc_handle_frame_all_extracted()
242 dst_buf->b->field = V4L2_FIELD_INTERLACED; in s5p_mfc_handle_frame_all_extracted()
[all …]
/Linux-v5.4/drivers/media/platform/mtk-jpeg/
Dmtk_jpeg_core.c773 struct vb2_buffer *dst_buf, in mtk_jpeg_set_dec_dst() argument
778 if (param->comp_num != dst_buf->num_planes) { in mtk_jpeg_set_dec_dst()
780 param->comp_num, dst_buf->num_planes); in mtk_jpeg_set_dec_dst()
784 for (i = 0; i < dst_buf->num_planes; i++) { in mtk_jpeg_set_dec_dst()
785 if (vb2_plane_size(dst_buf, i) < param->comp_size[i]) { in mtk_jpeg_set_dec_dst()
788 vb2_plane_size(dst_buf, 0), in mtk_jpeg_set_dec_dst()
792 fb->plane_addr[i] = vb2_dma_contig_plane_dma_addr(dst_buf, i); in mtk_jpeg_set_dec_dst()
802 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpeg_device_run() local
811 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in mtk_jpeg_device_run()
815 for (i = 0; i < dst_buf->vb2_buf.num_planes; i++) in mtk_jpeg_device_run()
[all …]
/Linux-v5.4/drivers/staging/media/hantro/
Dhantro_h1_jpeg_enc.c83 struct vb2_v4l2_buffer *src_buf, *dst_buf; in hantro_h1_jpeg_enc_run() local
88 dst_buf = hantro_get_dst_buf(ctx); in hantro_h1_jpeg_enc_run()
93 jpeg_ctx.buffer = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in hantro_h1_jpeg_enc_run()
Drk3399_vpu_hw_jpeg_enc.c114 struct vb2_v4l2_buffer *src_buf, *dst_buf; in rk3399_vpu_jpeg_enc_run() local
119 dst_buf = hantro_get_dst_buf(ctx); in rk3399_vpu_jpeg_enc_run()
124 jpeg_ctx.buffer = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in rk3399_vpu_jpeg_enc_run()
Dhantro_g1_mpeg2_dec.c101 struct vb2_buffer *dst_buf, in hantro_g1_mpeg2_dec_set_buffers() argument
127 addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0); in hantro_g1_mpeg2_dec_set_buffers()
164 struct vb2_v4l2_buffer *src_buf, *dst_buf; in hantro_g1_mpeg2_dec_run() local
171 dst_buf = hantro_get_dst_buf(ctx); in hantro_g1_mpeg2_dec_run()
247 &dst_buf->vb2_buf, in hantro_g1_mpeg2_dec_run()
Drk3399_vpu_hw_mpeg2_dec.c103 struct vb2_buffer *dst_buf, in rk3399_vpu_mpeg2_dec_set_buffers() argument
129 addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0); in rk3399_vpu_mpeg2_dec_set_buffers()
166 struct vb2_v4l2_buffer *src_buf, *dst_buf; in rk3399_vpu_mpeg2_dec_run() local
173 dst_buf = hantro_get_dst_buf(ctx); in rk3399_vpu_mpeg2_dec_run()
252 &dst_buf->vb2_buf, in rk3399_vpu_mpeg2_dec_run()
Dhantro_g1_h264_dec.c233 struct vb2_v4l2_buffer *src_buf, *dst_buf; in set_buffers() local
238 dst_buf = hantro_get_dst_buf(ctx); in set_buffers()
245 dst_dma = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in set_buffers()
Dhantro_h264.c555 struct vb2_v4l2_buffer *dst_buf; in hantro_h264_get_ref_buf() local
561 dst_buf = hantro_get_dst_buf(ctx); in hantro_h264_get_ref_buf()
562 buf = &dst_buf->vb2_buf; in hantro_h264_get_ref_buf()
/Linux-v5.4/drivers/staging/media/sunxi/cedrus/
Dcedrus_hw.c106 struct vb2_v4l2_buffer *src_buf, *dst_buf; in cedrus_irq() local
125 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in cedrus_irq()
127 if (!src_buf || !dst_buf) { in cedrus_irq()
139 v4l2_m2m_buf_done(dst_buf, state); in cedrus_irq()
/Linux-v5.4/drivers/media/platform/
Drcar_jpu.c1331 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_cleanup() local
1337 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in jpu_cleanup()
1340 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR); in jpu_cleanup()
1357 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_device_run() local
1373 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in jpu_device_run()
1376 jpu_buf = vb2_to_jpu_buffer(dst_buf); in jpu_device_run()
1393 dst_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in jpu_device_run()
1461 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in jpu_device_run()
1464 &dst_buf->vb2_buf, 1); in jpu_device_run()
1503 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_irq_handler() local
[all …]
Dsh_veu.c243 struct vb2_buffer *dst_buf) in sh_veu_process() argument
245 dma_addr_t addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0); in sh_veu_process()
276 struct vb2_v4l2_buffer *src_buf, *dst_buf; in sh_veu_device_run() local
279 dst_buf = v4l2_m2m_next_dst_buf(veu->m2m_ctx); in sh_veu_device_run()
281 if (src_buf && dst_buf) in sh_veu_device_run()
282 sh_veu_process(veu, &src_buf->vb2_buf, &dst_buf->vb2_buf); in sh_veu_device_run()
Dmx2_emmaprp.c270 struct vb2_v4l2_buffer *src_buf, *dst_buf; in emmaprp_device_run() local
279 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in emmaprp_device_run()
291 p_out = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in emmaprp_device_run()
Dm2m-deinterlace.c206 struct vb2_v4l2_buffer *src_buf, *dst_buf; in deinterlace_issue_dma() local
217 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in deinterlace_issue_dma()
225 p_out = (dma_addr_t)vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, in deinterlace_issue_dma()
/Linux-v5.4/drivers/gpu/drm/exynos/
Dexynos_drm_scaler.c214 struct exynos_drm_ipp_buffer *dst_buf) in scaler_set_dst_base() argument
223 for (i = 0; i < dst_buf->format->num_planes; ++i) in scaler_set_dst_base()
224 scaler_write(dst_buf->dma_addr[i], bases[i]); in scaler_set_dst_base()
228 struct exynos_drm_ipp_buffer *dst_buf) in scaler_set_dst_span() argument
232 val = SCALER_DST_SPAN_SET_Y_SPAN(dst_buf->buf.pitch[0] / in scaler_set_dst_span()
233 dst_buf->format->cpp[0]); in scaler_set_dst_span()
235 if (dst_buf->format->num_planes > 1) in scaler_set_dst_span()
236 val |= SCALER_DST_SPAN_SET_C_SPAN(dst_buf->buf.pitch[1]); in scaler_set_dst_span()
/Linux-v5.4/drivers/staging/media/imx/
Dimx-media-csc-scaler.c92 struct vb2_v4l2_buffer *src_buf, *dst_buf; in ipu_ic_pp_complete() local
95 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in ipu_ic_pp_complete()
97 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, true); in ipu_ic_pp_complete()
100 dst_buf->sequence = src_buf->sequence; in ipu_ic_pp_complete()
104 v4l2_m2m_buf_done(dst_buf, run->status ? VB2_BUF_STATE_ERROR : in ipu_ic_pp_complete()
115 struct vb2_v4l2_buffer *src_buf, *dst_buf; in device_run() local
120 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in device_run()
128 run->out_phys = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in device_run()
143 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR); in device_run()
/Linux-v5.4/drivers/staging/media/allegro-dvt/
Dallegro-core.c1474 struct vb2_v4l2_buffer *dst_buf; in allegro_channel_finish_frame() local
1486 dst_buf = v4l2_m2m_dst_buf_remove(channel->fh.m2m_ctx); in allegro_channel_finish_frame()
1487 dst_buf->sequence = channel->csequence++; in allegro_channel_finish_frame()
1504 vb2_plane_size(&dst_buf->vb2_buf, 0)) { in allegro_channel_finish_frame()
1512 vb2_plane_vaddr(&dst_buf->vb2_buf, 0) + msg->partition_table_offset; in allegro_channel_finish_frame()
1514 vb2_plane_size(&dst_buf->vb2_buf, 0)) { in allegro_channel_finish_frame()
1530 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, in allegro_channel_finish_frame()
1533 curr = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in allegro_channel_finish_frame()
1586 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, false); in allegro_channel_finish_frame()
1588 dst_buf->flags |= V4L2_BUF_FLAG_KEYFRAME; in allegro_channel_finish_frame()
[all …]
/Linux-v5.4/drivers/media/platform/vicodec/
Dvicodec-core.c413 struct vb2_v4l2_buffer *src_buf, *dst_buf; in device_run() local
419 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in device_run()
426 if (device_process(ctx, src_buf, dst_buf)) in device_run()
429 dst_buf->sequence = q_dst->sequence++; in device_run()
430 dst_buf->flags &= ~V4L2_BUF_FLAG_LAST; in device_run()
431 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, false); in device_run()
435 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in device_run()
451 v4l2_m2m_buf_done(dst_buf, state); in device_run()
555 static void set_last_buffer(struct vb2_v4l2_buffer *dst_buf, in set_last_buffer() argument
562 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, 0); in set_last_buffer()
[all …]
/Linux-v5.4/drivers/media/platform/s5p-jpeg/
Djpeg-core.c2046 struct vb2_v4l2_buffer *src_buf, *dst_buf; in s5p_jpeg_device_run() local
2052 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in s5p_jpeg_device_run()
2054 dst_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in s5p_jpeg_device_run()
2660 struct vb2_v4l2_buffer *src_buf, *dst_buf; in s5p_jpeg_irq() local
2672 dst_buf = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in s5p_jpeg_irq()
2694 dst_buf->timecode = src_buf->timecode; in s5p_jpeg_irq()
2695 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp; in s5p_jpeg_irq()
2696 dst_buf->flags &= ~V4L2_BUF_FLAG_TSTAMP_SRC_MASK; in s5p_jpeg_irq()
2697 dst_buf->flags |= in s5p_jpeg_irq()
2702 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, payload_size); in s5p_jpeg_irq()
[all …]
/Linux-v5.4/drivers/media/platform/sti/hva/
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()
/Linux-v5.4/drivers/crypto/
Dixp4xx_crypto.c122 dma_addr_t dst_buf; member
373 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in one_packet()
385 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in one_packet()
918 crypt->dst_buf = dst_hook.phys_next; in ablk_perform()
938 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in ablk_perform()
1048 crypt->dst_buf = dst_hook.phys_next; in aead_perform()
1083 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in aead_perform()
Dmxs-dcp.c289 uint8_t *out_tmp, *src_buf, *dst_buf = NULL; in mxs_dcp_aes_block_crypt() local
350 dst_buf = sg_virt(dst); in mxs_dcp_aes_block_crypt()
356 memcpy(dst_buf + dst_off, out_tmp, rem); in mxs_dcp_aes_block_crypt()

12