| /Linux-v5.10/drivers/media/platform/coda/ |
| D | coda-jpeg.c | 1067 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda9_jpeg_prepare_encode() local 1078 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in coda9_jpeg_prepare_encode() 1086 dst_buf->sequence = ctx->osequence; in coda9_jpeg_prepare_encode() 1094 start_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in coda9_jpeg_prepare_encode() 1095 end_addr = start_addr + vb2_plane_size(&dst_buf->vb2_buf, 0); in coda9_jpeg_prepare_encode() 1112 vb2_plane_size(&dst_buf->vb2_buf, 0), in coda9_jpeg_prepare_encode() 1113 vb2_plane_vaddr(&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 1219 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in coda9_jpeg_finish_encode() 1221 trace_coda_jpeg_done(ctx, dst_buf); in coda9_jpeg_finish_encode() [all …]
|
| D | coda-bit.c | 1473 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda_prepare_encode() local 1490 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in coda_prepare_encode() 1496 dst_buf->sequence = ctx->osequence; in coda_prepare_encode() 1528 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0) + in coda_prepare_encode() 1536 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0), in coda_prepare_encode() 1538 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0) in coda_prepare_encode() 1541 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0) in coda_prepare_encode() 1546 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in coda_prepare_encode() 1633 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda_finish_encode() local 1647 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in coda_finish_encode() [all …]
|
| /Linux-v5.10/drivers/staging/media/hantro/ |
| D | hantro_h1_jpeg_enc.c | 94 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() 145 struct vb2_v4l2_buffer *dst_buf = hantro_get_dst_buf(ctx); in hantro_jpeg_enc_done() local 151 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0) + in hantro_jpeg_enc_done() 154 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, in hantro_jpeg_enc_done()
|
| D | rk3399_vpu_hw_mpeg2_dec.c | 103 struct vb2_buffer *dst_buf, in rk3399_vpu_mpeg2_dec_set_buffers() argument 126 addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0); in rk3399_vpu_mpeg2_dec_set_buffers() 163 struct vb2_v4l2_buffer *src_buf, *dst_buf; in rk3399_vpu_mpeg2_dec_run() local 170 dst_buf = hantro_get_dst_buf(ctx); in rk3399_vpu_mpeg2_dec_run() 249 &dst_buf->vb2_buf, in rk3399_vpu_mpeg2_dec_run()
|
| D | hantro_g1_mpeg2_dec.c | 101 struct vb2_buffer *dst_buf, in hantro_g1_mpeg2_dec_set_buffers() argument 124 addr = hantro_get_dec_buf_addr(ctx, dst_buf); in hantro_g1_mpeg2_dec_set_buffers() 161 struct vb2_v4l2_buffer *src_buf, *dst_buf; in hantro_g1_mpeg2_dec_run() local 168 dst_buf = hantro_get_dst_buf(ctx); in hantro_g1_mpeg2_dec_run() 244 &dst_buf->vb2_buf, in hantro_g1_mpeg2_dec_run()
|
| D | rk3399_vpu_hw_jpeg_enc.c | 124 struct vb2_v4l2_buffer *src_buf, *dst_buf; in rk3399_vpu_jpeg_enc_run() local 129 dst_buf = hantro_get_dst_buf(ctx); in rk3399_vpu_jpeg_enc_run() 134 jpeg_ctx.buffer = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in rk3399_vpu_jpeg_enc_run()
|
| D | hantro_postproc.c | 56 struct vb2_v4l2_buffer *dst_buf; in hantro_postproc_enable() local 79 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in hantro_postproc_enable() 80 dst_dma = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in hantro_postproc_enable()
|
| D | hantro_h264.c | 323 struct vb2_v4l2_buffer *dst_buf; in hantro_h264_get_ref_buf() local 330 dst_buf = hantro_get_dst_buf(ctx); in hantro_h264_get_ref_buf() 331 buf = &dst_buf->vb2_buf; in hantro_h264_get_ref_buf()
|
| D | hantro_g1_h264_dec.c | 232 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 = hantro_get_dec_buf_addr(ctx, &dst_buf->vb2_buf); in set_buffers()
|
| /Linux-v5.10/drivers/media/platform/mtk-vcodec/ |
| D | mtk_vcodec_enc.c | 860 struct vb2_v4l2_buffer *src_buf, *dst_buf; in vb2ops_venc_stop_streaming() local 866 while ((dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx))) { in vb2ops_venc_stop_streaming() 867 dst_buf->vb2_buf.planes[0].bytesused = 0; in vb2ops_venc_stop_streaming() 868 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR); in vb2ops_venc_stop_streaming() 917 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_venc_encode_header() local 921 dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_venc_encode_header() 922 if (!dst_buf) { in mtk_venc_encode_header() 927 bs_buf.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in mtk_venc_encode_header() 928 bs_buf.dma_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in mtk_venc_encode_header() 929 bs_buf.size = (size_t)dst_buf->vb2_buf.planes[0].length; in mtk_venc_encode_header() [all …]
|
| D | mtk_vcodec_dec.c | 350 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_vdec_worker() local 364 dst_buf = v4l2_m2m_next_dst_buf(ctx->m2m_ctx); in mtk_vdec_worker() 365 if (dst_buf == NULL) { in mtk_vdec_worker() 373 dst_buf_info = container_of(dst_buf, struct mtk_video_dec_buf, in mtk_vdec_worker() 377 pfb->base_y.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in mtk_vdec_worker() 378 pfb->base_y.dma_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in mtk_vdec_worker() 381 pfb->base_c.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 1); in mtk_vdec_worker() 382 pfb->base_c.dma_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 1); in mtk_vdec_worker() 389 dst_buf->vb2_buf.index, pfb, in mtk_vdec_worker() 398 dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker() [all …]
|
| /Linux-v5.10/drivers/media/platform/mtk-mdp/ |
| D | mtk_mdp_regs.c | 61 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.10/drivers/media/platform/s5p-mfc/ |
| D | s5p_mfc.c | 221 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.10/drivers/media/platform/mtk-jpeg/ |
| D | mtk_jpeg_core.c | 886 struct vb2_buffer *dst_buf, in mtk_jpeg_set_dec_dst() argument 891 if (param->comp_num != dst_buf->num_planes) { in mtk_jpeg_set_dec_dst() 893 param->comp_num, dst_buf->num_planes); in mtk_jpeg_set_dec_dst() 897 for (i = 0; i < dst_buf->num_planes; i++) { in mtk_jpeg_set_dec_dst() 898 if (vb2_plane_size(dst_buf, i) < param->comp_size[i]) { in mtk_jpeg_set_dec_dst() 901 vb2_plane_size(dst_buf, 0), in mtk_jpeg_set_dec_dst() 905 fb->plane_addr[i] = vb2_dma_contig_plane_dma_addr(dst_buf, i); in mtk_jpeg_set_dec_dst() 915 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpeg_enc_device_run() local 921 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in mtk_jpeg_enc_device_run() 939 mtk_jpeg_set_enc_dst(ctx, jpeg->reg_base, &dst_buf->vb2_buf); in mtk_jpeg_enc_device_run() [all …]
|
| D | mtk_jpeg_enc_hw.c | 72 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()
|
| D | mtk_jpeg_enc_hw.h | 88 struct vb2_buffer *dst_buf);
|
| /Linux-v5.10/drivers/media/platform/ |
| D | rcar_jpu.c | 1331 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 …]
|
| /Linux-v5.10/drivers/gpu/drm/exynos/ |
| D | exynos_drm_scaler.c | 215 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-v5.10/drivers/staging/media/allegro-dvt/ |
| D | allegro-core.c | 1476 struct vb2_v4l2_buffer *dst_buf; in allegro_channel_finish_frame() local 1493 dst_buf = allegro_get_buffer(channel, &channel->stream_shadow_list, in allegro_channel_finish_frame() 1495 if (!dst_buf) in allegro_channel_finish_frame() 1500 if (!src_buf || !dst_buf) in allegro_channel_finish_frame() 1503 dst_buf->sequence = channel->csequence++; in allegro_channel_finish_frame() 1522 vb2_plane_size(&dst_buf->vb2_buf, 0)) { in allegro_channel_finish_frame() 1530 vb2_plane_vaddr(&dst_buf->vb2_buf, 0) + msg->partition_table_offset; in allegro_channel_finish_frame() 1532 vb2_plane_size(&dst_buf->vb2_buf, 0)) { in allegro_channel_finish_frame() 1548 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, in allegro_channel_finish_frame() 1551 curr = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in allegro_channel_finish_frame() [all …]
|
| /Linux-v5.10/drivers/staging/media/imx/ |
| D | imx-media-csc-scaler.c | 94 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-v5.10/drivers/media/test-drivers/vicodec/ |
| D | vicodec-core.c | 408 struct vb2_v4l2_buffer *src_buf, *dst_buf; in device_run() local 414 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in device_run() 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() 426 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, false); 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() 550 static void set_last_buffer(struct vb2_v4l2_buffer *dst_buf, in set_last_buffer() argument 557 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, 0); in set_last_buffer() [all …]
|
| /Linux-v5.10/drivers/media/platform/s5p-jpeg/ |
| D | jpeg-core.c | 2033 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() 2041 dst_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in s5p_jpeg_device_run() 2647 struct vb2_v4l2_buffer *src_buf, *dst_buf; in s5p_jpeg_irq() local 2659 dst_buf = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in s5p_jpeg_irq() 2681 dst_buf->timecode = src_buf->timecode; in s5p_jpeg_irq() 2682 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp; in s5p_jpeg_irq() 2683 dst_buf->flags &= ~V4L2_BUF_FLAG_TSTAMP_SRC_MASK; in s5p_jpeg_irq() 2684 dst_buf->flags |= in s5p_jpeg_irq() 2689 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, payload_size); in s5p_jpeg_irq() [all …]
|
| /Linux-v5.10/drivers/media/platform/sti/hva/ |
| D | hva-v4l2.c | 808 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.10/drivers/staging/media/rkvdec/ |
| D | rkvdec.h | 70 struct vb2_v4l2_buffer *dst_buf,
|
| /Linux-v5.10/drivers/crypto/ |
| D | ixp4xx_crypto.c | 123 dma_addr_t dst_buf; member 374 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in one_packet() 386 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in one_packet() 914 crypt->dst_buf = dst_hook.phys_next; in ablk_perform() 934 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in ablk_perform() 1044 crypt->dst_buf = dst_hook.phys_next; in aead_perform() 1079 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in aead_perform()
|