Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/media/platform/mtk-vcodec/
Dmtk_vcodec_enc.c890 struct vb2_buffer *src_buf, *dst_buf; in vb2ops_venc_stop_streaming() local
896 while ((dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx))) { in vb2ops_venc_stop_streaming()
897 dst_buf->planes[0].bytesused = 0; in vb2ops_venc_stop_streaming()
898 v4l2_m2m_buf_done(to_vb2_v4l2_buffer(dst_buf), in vb2ops_venc_stop_streaming()
940 struct vb2_buffer *src_buf, *dst_buf; in mtk_venc_encode_header() local
945 dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_venc_encode_header()
946 if (!dst_buf) { in mtk_venc_encode_header()
951 bs_buf.va = vb2_plane_vaddr(dst_buf, 0); in mtk_venc_encode_header()
952 bs_buf.dma_addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0); in mtk_venc_encode_header()
953 bs_buf.size = (size_t)dst_buf->planes[0].length; in mtk_venc_encode_header()
[all …]
Dmtk_vcodec_dec.c328 struct vb2_buffer *src_buf, *dst_buf; in mtk_vdec_worker() local
343 dst_buf = v4l2_m2m_next_dst_buf(ctx->m2m_ctx); in mtk_vdec_worker()
344 if (dst_buf == NULL) { in mtk_vdec_worker()
353 dst_vb2_v4l2 = container_of(dst_buf, struct vb2_v4l2_buffer, vb2_buf); in mtk_vdec_worker()
357 pfb->base_y.va = vb2_plane_vaddr(dst_buf, 0); in mtk_vdec_worker()
358 pfb->base_y.dma_addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0); in mtk_vdec_worker()
361 pfb->base_c.va = vb2_plane_vaddr(dst_buf, 1); in mtk_vdec_worker()
362 pfb->base_c.dma_addr = vb2_dma_contig_plane_dma_addr(dst_buf, 1); in mtk_vdec_worker()
369 dst_buf->index, pfb, in mtk_vdec_worker()
378 dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker()
[all …]
/Linux-v4.19/drivers/media/platform/coda/
Dcoda-bit.c1295 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda_prepare_encode() local
1305 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in coda_prepare_encode()
1311 dst_buf->sequence = ctx->osequence; in coda_prepare_encode()
1343 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0) + in coda_prepare_encode()
1351 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0), in coda_prepare_encode()
1353 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0) in coda_prepare_encode()
1356 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0) in coda_prepare_encode()
1361 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in coda_prepare_encode()
1441 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda_finish_encode() local
1446 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in coda_finish_encode()
[all …]
/Linux-v4.19/drivers/media/platform/mtk-mdp/
Dmtk_mdp_regs.c69 struct mdp_buffer *dst_buf = &ctx->vpu.vsi->dst_buffer; in mtk_mdp_hw_set_output_addr() local
73 dst_buf->addr_mva[i] = (uint64_t)addr->addr[i]; in mtk_mdp_hw_set_output_addr()
132 struct mdp_buffer *dst_buf = &ctx->vpu.vsi->dst_buffer; in mtk_mdp_hw_set_out_image_format() local
134 dst_buf->plane_num = frame->fmt->num_comp; in mtk_mdp_hw_set_out_image_format()
138 for (i = 0; i < dst_buf->plane_num; i++) in mtk_mdp_hw_set_out_image_format()
139 dst_buf->plane_size[i] = frame->payload[i]; in mtk_mdp_hw_set_out_image_format()
/Linux-v4.19/drivers/media/platform/s5p-mfc/
Ds5p_mfc.c225 struct s5p_mfc_buf *dst_buf; in s5p_mfc_handle_frame_all_extracted() local
231 dst_buf = list_entry(ctx->dst_queue.next, in s5p_mfc_handle_frame_all_extracted()
234 dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted()
235 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 0, 0); in s5p_mfc_handle_frame_all_extracted()
236 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 1, 0); in s5p_mfc_handle_frame_all_extracted()
237 list_del(&dst_buf->list); in s5p_mfc_handle_frame_all_extracted()
238 dst_buf->flags |= MFC_BUF_FLAG_EOS; in s5p_mfc_handle_frame_all_extracted()
240 dst_buf->b->sequence = (ctx->sequence++); in s5p_mfc_handle_frame_all_extracted()
244 dst_buf->b->field = V4L2_FIELD_NONE; in s5p_mfc_handle_frame_all_extracted()
246 dst_buf->b->field = V4L2_FIELD_INTERLACED; in s5p_mfc_handle_frame_all_extracted()
[all …]
/Linux-v4.19/drivers/media/platform/mtk-jpeg/
Dmtk_jpeg_core.c781 struct vb2_buffer *dst_buf, in mtk_jpeg_set_dec_dst() argument
786 if (param->comp_num != dst_buf->num_planes) { in mtk_jpeg_set_dec_dst()
788 param->comp_num, dst_buf->num_planes); in mtk_jpeg_set_dec_dst()
792 for (i = 0; i < dst_buf->num_planes; i++) { in mtk_jpeg_set_dec_dst()
793 if (vb2_plane_size(dst_buf, i) < param->comp_size[i]) { in mtk_jpeg_set_dec_dst()
796 vb2_plane_size(dst_buf, 0), in mtk_jpeg_set_dec_dst()
800 fb->plane_addr[i] = vb2_dma_contig_plane_dma_addr(dst_buf, i); in mtk_jpeg_set_dec_dst()
810 struct vb2_buffer *src_buf, *dst_buf; in mtk_jpeg_device_run() local
819 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in mtk_jpeg_device_run()
823 for (i = 0; i < dst_buf->num_planes; i++) in mtk_jpeg_device_run()
[all …]
/Linux-v4.19/drivers/usb/wusbcore/
Dcrypto.c203 void *dst_buf; in wusb_ccm_mac() local
223 dst_buf = kzalloc(dst_size, GFP_KERNEL); in wusb_ccm_mac()
224 if (!dst_buf) in wusb_ccm_mac()
252 sg_init_one(&sg_dst, dst_buf, dst_size); in wusb_ccm_mac()
283 kfree(dst_buf); in wusb_ccm_mac()
/Linux-v4.19/drivers/gpu/drm/exynos/
Dexynos_drm_scaler.c222 struct exynos_drm_ipp_buffer *dst_buf) in scaler_set_dst_base() argument
231 for (i = 0; i < dst_buf->format->num_planes; ++i) in scaler_set_dst_base()
232 scaler_write(dst_buf->dma_addr[i], bases[i]); in scaler_set_dst_base()
236 struct exynos_drm_ipp_buffer *dst_buf) in scaler_set_dst_span() argument
240 val = SCALER_DST_SPAN_SET_Y_SPAN(dst_buf->buf.pitch[0] / in scaler_set_dst_span()
241 dst_buf->format->cpp[0]); in scaler_set_dst_span()
243 if (dst_buf->format->num_planes > 1) in scaler_set_dst_span()
244 val |= SCALER_DST_SPAN_SET_C_SPAN(dst_buf->buf.pitch[1]); in scaler_set_dst_span()
/Linux-v4.19/drivers/media/platform/
Drcar_jpu.c1333 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_cleanup() local
1339 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in jpu_cleanup()
1342 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR); in jpu_cleanup()
1359 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_device_run() local
1375 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in jpu_device_run()
1378 jpu_buf = vb2_to_jpu_buffer(dst_buf); in jpu_device_run()
1395 dst_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in jpu_device_run()
1463 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in jpu_device_run()
1466 &dst_buf->vb2_buf, 1); in jpu_device_run()
1505 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_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, dst_buf); in sh_veu_device_run()
Dmx2_emmaprp.c277 struct vb2_buffer *src_buf, *dst_buf; in emmaprp_device_run() local
286 dst_buf = v4l2_m2m_next_dst_buf(ctx->m2m_ctx); in emmaprp_device_run()
298 p_out = vb2_dma_contig_plane_dma_addr(dst_buf, 0); in emmaprp_device_run()
Dvim2m.c383 struct vb2_v4l2_buffer *src_buf, *dst_buf; in device_run() local
386 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in device_run()
388 device_process(ctx, src_buf, dst_buf); in device_run()
Dm2m-deinterlace.c213 struct vb2_v4l2_buffer *src_buf, *dst_buf; in deinterlace_issue_dma() local
224 dst_buf = v4l2_m2m_next_dst_buf(ctx->m2m_ctx); in deinterlace_issue_dma()
232 p_out = (dma_addr_t)vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, in deinterlace_issue_dma()
/Linux-v4.19/drivers/media/platform/s5p-jpeg/
Djpeg-core.c2075 struct vb2_buffer *src_buf, *dst_buf; in s5p_jpeg_device_run() local
2081 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in s5p_jpeg_device_run()
2083 dst_addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0); in s5p_jpeg_device_run()
2689 struct vb2_v4l2_buffer *src_buf, *dst_buf; in s5p_jpeg_irq() local
2701 dst_buf = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in s5p_jpeg_irq()
2723 dst_buf->timecode = src_buf->timecode; in s5p_jpeg_irq()
2724 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp; in s5p_jpeg_irq()
2725 dst_buf->flags &= ~V4L2_BUF_FLAG_TSTAMP_SRC_MASK; in s5p_jpeg_irq()
2726 dst_buf->flags |= in s5p_jpeg_irq()
2731 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, payload_size); in s5p_jpeg_irq()
[all …]
/Linux-v4.19/drivers/media/platform/sti/hva/
Dhva-v4l2.c806 struct vb2_v4l2_buffer *src_buf, *dst_buf; in hva_run_work() local
820 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in hva_run_work()
823 stream = to_hva_stream(dst_buf); in hva_run_work()
828 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, stream->bytesused); in hva_run_work()
831 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR); in hva_run_work()
834 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp; in hva_run_work()
835 dst_buf->field = V4L2_FIELD_NONE; in hva_run_work()
836 dst_buf->sequence = ctx->stream_num - 1; in hva_run_work()
845 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_DONE); in hva_run_work()
/Linux-v4.19/drivers/crypto/
Dixp4xx_crypto.c126 u32 dst_buf; member
376 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in one_packet()
388 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in one_packet()
925 crypt->dst_buf = dst_hook.phys_next; in ablk_perform()
945 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in ablk_perform()
1055 crypt->dst_buf = dst_hook.phys_next; in aead_perform()
1090 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in aead_perform()
Dmxs-dcp.c265 uint8_t *out_tmp, *src_buf, *dst_buf = NULL; in mxs_dcp_aes_block_crypt() local
317 dst_buf = sg_virt(dst); in mxs_dcp_aes_block_crypt()
323 memcpy(dst_buf + dst_off, out_tmp, rem); in mxs_dcp_aes_block_crypt()
/Linux-v4.19/drivers/media/platform/vicodec/
Dvicodec-core.c355 struct vb2_v4l2_buffer *src_buf, *dst_buf; in device_run() local
360 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in device_run()
364 if (device_process(ctx, src_buf, dst_buf)) in device_run()
366 ctx->last_dst_buf = dst_buf; in device_run()
370 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in device_run()
384 v4l2_m2m_buf_done(dst_buf, state); in device_run()
/Linux-v4.19/drivers/mmc/host/
Dtifm_sd.c216 unsigned char *dst_buf = kmap_atomic(dst) + dst_off; in tifm_sd_copy_page() local
218 memcpy(dst_buf, src_buf, count); in tifm_sd_copy_page()
220 kunmap_atomic(dst_buf - dst_off); in tifm_sd_copy_page()
/Linux-v4.19/drivers/net/ethernet/freescale/
Dfec_main.c283 static void swap_buffer2(void *dst_buf, void *src_buf, int len) in swap_buffer2() argument
287 unsigned int *dst = dst_buf; in swap_buffer2()
/Linux-v4.19/fs/btrfs/
Dctree.c27 struct extent_buffer *dst_buf,