/linux-6.3-rc2/drivers/media/platform/verisilicon/ |
A D | hantro_h1_jpeg_enc.c | 43 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()
|
A D | rockchip_vpu2_hw_jpeg_enc.c | 70 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()
|
A D | hantro_postproc.c | 66 struct vb2_v4l2_buffer *dst_buf; in hantro_postproc_g1_enable() local 86 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in hantro_postproc_g1_enable() 87 dst_dma = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in hantro_postproc_g1_enable() 115 struct vb2_v4l2_buffer *dst_buf; in hantro_postproc_g2_enable() local 121 dst_buf = hantro_get_dst_buf(ctx); in hantro_postproc_g2_enable() 122 dst_dma = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in hantro_postproc_g2_enable()
|
A D | hantro_g1_mpeg2_dec.c | 94 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 D | rockchip_vpu2_hw_mpeg2_dec.c | 97 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 D | hantro_g1_h264_dec.c | 208 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 D | hantro_h264.c | 368 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()
|
/linux-6.3-rc2/drivers/media/platform/mediatek/vcodec/ |
A D | mtk_vcodec_dec_stateful.c | 281 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_vdec_worker() local 295 dst_buf = v4l2_m2m_next_dst_buf(ctx->m2m_ctx); in mtk_vdec_worker() 296 if (!dst_buf) { in mtk_vdec_worker() 320 dst_buf->vb2_buf.index, pfb, pfb->base_y.va, in mtk_vdec_worker() 328 dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker() 335 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, 0); in mtk_vdec_worker() 337 vb2_set_plane_payload(&dst_buf->vb2_buf, 1, 0); in mtk_vdec_worker() 338 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in mtk_vdec_worker() 339 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_DONE); in mtk_vdec_worker() 360 dst_buf->timecode = src_buf->timecode; in mtk_vdec_worker() [all …]
|
A D | mtk_vcodec_enc.c | 961 struct vb2_v4l2_buffer *src_buf, *dst_buf; in vb2ops_venc_stop_streaming() local 1051 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_venc_encode_header() local 1056 if (!dst_buf) { in mtk_venc_encode_header() 1068 dst_buf->vb2_buf.index, bs_buf.va, in mtk_venc_encode_header() 1086 dst_buf->timecode = src_buf->timecode; in mtk_venc_encode_header() 1093 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_DONE); in mtk_venc_encode_header() 1179 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_venc_worker() local 1190 if (!dst_buf) { in mtk_venc_worker() 1204 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in mtk_venc_worker() 1234 dst_buf->timecode = src_buf->timecode; in mtk_venc_worker() [all …]
|
A D | mtk_vcodec_dec_stateless.c | 157 struct vb2_buffer *dst_buf; in vdec_get_cap_buffer() local 166 dst_buf = &vb2_v4l2->vb2_buf; in vdec_get_cap_buffer() 170 pfb->base_y.va = vb2_plane_vaddr(dst_buf, 0); in vdec_get_cap_buffer() 171 pfb->base_y.dma_addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0); in vdec_get_cap_buffer() 175 pfb->base_c.va = vb2_plane_vaddr(dst_buf, 1); in vdec_get_cap_buffer() 177 vb2_dma_contig_plane_dma_addr(dst_buf, 1); in vdec_get_cap_buffer() 181 dst_buf->index, pfb, pfb->base_y.va, &pfb->base_y.dma_addr, in vdec_get_cap_buffer()
|
/linux-6.3-rc2/drivers/media/platform/chips-media/ |
A D | coda-jpeg.c | 1073 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 …]
|
A D | coda-bit.c | 1504 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 …]
|
/linux-6.3-rc2/drivers/media/platform/mediatek/jpeg/ |
A D | mtk_jpeg_core.c | 914 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() 970 jpeg->hw_param.dst_buffer = dst_buf; in mtk_jpegenc_set_hw_param() 1025 if (!dst_buf) in mtk_jpegenc_worker() 1059 &dst_buf->vb2_buf); in mtk_jpegenc_worker() 1074 v4l2_m2m_buf_done(dst_buf, buf_state); in mtk_jpegenc_worker() 1119 v4l2_m2m_buf_done(dst_buf, buf_state); in mtk_jpeg_enc_device_run() 1175 jpeg->hw_param.dst_buffer = dst_buf; in mtk_jpegdec_set_hw_param() 1220 if (!dst_buf) in mtk_jpegdec_worker() 1263 &dst_buf->vb2_buf, &fb)) { in mtk_jpegdec_worker() [all …]
|
A D | mtk_jpeg_enc_hw.c | 102 struct vb2_buffer *dst_buf) in mtk_jpeg_set_enc_dst() argument 109 dma_addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0); in mtk_jpeg_set_enc_dst() 112 size = vb2_plane_size(dst_buf, 0); in mtk_jpeg_set_enc_dst() 241 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpegenc_timeout_work() local 244 dst_buf = cjpeg->hw_param.dst_buffer; in mtk_jpegenc_timeout_work() 245 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, true); in mtk_jpegenc_timeout_work() 259 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpegenc_hw_irq_handler() local 272 dst_buf = jpeg->hw_param.dst_buffer; in mtk_jpegenc_hw_irq_handler() 273 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, true); in mtk_jpegenc_hw_irq_handler() 283 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, result_size); in mtk_jpegenc_hw_irq_handler()
|
A D | mtk_jpeg_dec_hw.c | 496 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpegdec_timeout_work() local 499 dst_buf = cjpeg->hw_param.dst_buffer; in mtk_jpegdec_timeout_work() 500 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, true); in mtk_jpegdec_timeout_work() 514 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpegdec_hw_irq_handler() local 529 dst_buf = jpeg->hw_param.dst_buffer; in mtk_jpegdec_hw_irq_handler() 530 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, true); in mtk_jpegdec_hw_irq_handler() 543 for (i = 0; i < dst_buf->vb2_buf.num_planes; i++) in mtk_jpegdec_hw_irq_handler() 544 vb2_set_plane_payload(&dst_buf->vb2_buf, i, in mtk_jpegdec_hw_irq_handler()
|
/linux-6.3-rc2/drivers/media/platform/mediatek/mdp/ |
A 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-6.3-rc2/drivers/media/platform/samsung/s5p-mfc/ |
A D | s5p_mfc.c | 227 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 …]
|
/linux-6.3-rc2/drivers/crypto/virtio/ |
A D | virtio_crypto_akcipher_algs.c | 42 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() 227 void *src_buf = NULL, *dst_buf = NULL; in __virtio_crypto_akcipher_do_req() local 255 dst_buf = kcalloc_node(req->dst_len, 1, GFP_KERNEL, node); in __virtio_crypto_akcipher_do_req() 256 if (!dst_buf) in __virtio_crypto_akcipher_do_req() 259 sg_init_one(&dstdata_sg, dst_buf, req->dst_len); in __virtio_crypto_akcipher_do_req() 264 vc_akcipher_req->dst_buf = dst_buf; in __virtio_crypto_akcipher_do_req() 281 kfree(dst_buf); in __virtio_crypto_akcipher_do_req()
|
/linux-6.3-rc2/drivers/media/platform/nxp/imx-jpeg/ |
A D | mxc-jpeg.c | 597 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in mxc_jpeg_check_and_set_last_buffer() 608 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mxc_jpeg_job_finish() local 616 v4l2_m2m_buf_done(dst_buf, state); in mxc_jpeg_job_finish() 652 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mxc_jpeg_dec_irq() local 686 if (!dst_buf || !src_buf) { in mxc_jpeg_dec_irq() 894 struct vb2_buffer *dst_buf) in mxc_jpeg_config_dec_desc() argument 922 mxc_jpeg_addrs(desc, dst_buf, src_buf, 0); in mxc_jpeg_config_dec_desc() 959 struct vb2_buffer *dst_buf) in mxc_jpeg_config_enc_desc() argument 1009 mxc_jpeg_addrs(desc, src_buf, dst_buf, 0); in mxc_jpeg_config_enc_desc() 1146 if (!src_buf || !dst_buf) { in mxc_jpeg_device_run() [all …]
|
/linux-6.3-rc2/drivers/media/platform/renesas/ |
A D | rcar_jpu.c | 1325 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_cleanup() local 1334 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR); in jpu_cleanup() 1351 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_device_run() local 1370 jpu_buf = vb2_to_jpu_buffer(dst_buf); in jpu_device_run() 1458 &dst_buf->vb2_buf, 1); in jpu_device_run() 1497 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_irq_handler() local 1533 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, in jpu_irq_handler() 1537 dst_buf->field = src_buf->field; in jpu_irq_handler() 1540 dst_buf->timecode = src_buf->timecode; in jpu_irq_handler() 1541 dst_buf->flags = src_buf->flags & in jpu_irq_handler() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/exynos/ |
A D | exynos_drm_scaler.c | 216 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()
|
/linux-6.3-rc2/drivers/staging/media/imx/ |
A 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-6.3-rc2/drivers/media/rc/ |
A D | meson-ir-tx.c | 181 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-6.3-rc2/drivers/media/test-drivers/vicodec/ |
A D | vicodec-core.c | 404 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 …]
|
/linux-6.3-rc2/drivers/media/platform/samsung/s5p-jpeg/ |
A D | jpeg-core.c | 2031 struct vb2_v4l2_buffer *src_buf, *dst_buf; in s5p_jpeg_device_run() local 2037 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in s5p_jpeg_device_run() 2642 struct vb2_v4l2_buffer *src_buf, *dst_buf; in s5p_jpeg_irq() local 2654 dst_buf = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in s5p_jpeg_irq() 2676 dst_buf->timecode = src_buf->timecode; in s5p_jpeg_irq() 2678 dst_buf->flags &= ~V4L2_BUF_FLAG_TSTAMP_SRC_MASK; in s5p_jpeg_irq() 2679 dst_buf->flags |= in s5p_jpeg_irq() 2685 v4l2_m2m_buf_done(dst_buf, state); in s5p_jpeg_irq() 2768 struct vb2_v4l2_buffer *src_buf, *dst_buf; in exynos3250_jpeg_irq() local 2819 dst_buf->timecode = src_buf->timecode; in exynos3250_jpeg_irq() [all …]
|