/kernel/linux/linux-6.6/drivers/media/platform/verisilicon/ |
H A D | rockchip_vpu2_hw_jpeg_enc.c | 70 struct vb2_buffer *dst_buf) in rockchip_vpu2_jpeg_enc_set_buffers() 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 in rockchip_vpu2_jpeg_enc_done() 67 rockchip_vpu2_jpeg_enc_set_buffers(struct hantro_dev *vpu, struct hantro_ctx *ctx, struct vb2_buffer *src_buf, struct vb2_buffer *dst_buf) rockchip_vpu2_jpeg_enc_set_buffers() argument [all...] |
H A D | hantro_h1_jpeg_enc.c | 43 struct vb2_buffer *dst_buf) in hantro_h1_jpeg_enc_set_buffers() 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 in hantro_h1_jpeg_enc_done() 40 hantro_h1_jpeg_enc_set_buffers(struct hantro_dev *vpu, struct hantro_ctx *ctx, struct vb2_buffer *src_buf, struct vb2_buffer *dst_buf) hantro_h1_jpeg_enc_set_buffers() argument [all...] |
H A D | hantro_postproc.c | 70 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 D | rockchip_vpu2_hw_mpeg2_dec.c | 97 struct vb2_buffer *dst_buf, in rockchip_vpu2_mpeg2_dec_set_buffers() 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() 94 rockchip_vpu2_mpeg2_dec_set_buffers(struct hantro_dev *vpu, struct hantro_ctx *ctx, struct vb2_buffer *src_buf, struct vb2_buffer *dst_buf, const struct v4l2_ctrl_mpeg2_sequence *seq, const struct v4l2_ctrl_mpeg2_picture *pic) rockchip_vpu2_mpeg2_dec_set_buffers() argument
|
H A D | hantro_g1_mpeg2_dec.c | 94 struct vb2_buffer *dst_buf, in hantro_g1_mpeg2_dec_set_buffers() 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() 92 hantro_g1_mpeg2_dec_set_buffers(struct hantro_dev *vpu, struct hantro_ctx *ctx, struct vb2_buffer *src_buf, struct vb2_buffer *dst_buf, const struct v4l2_ctrl_mpeg2_sequence *seq, const struct v4l2_ctrl_mpeg2_picture *pic) hantro_g1_mpeg2_dec_set_buffers() argument
|
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/decoder/ |
H A D | mtk_vcodec_dec_stateful.c | 280 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() 297 mtk_v4l2_vdec_dbg(1, ctx, "[%d] dst_buf empty!!", ctx->id); in mtk_vdec_worker() 302 container_of(dst_buf, struct mtk_video_dec_buf, m2m_buf.vb); in mtk_vdec_worker() 305 pfb->base_y.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in mtk_vdec_worker() 307 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in mtk_vdec_worker() 310 pfb->base_c.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 1); in mtk_vdec_worker() 312 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 1); in mtk_vdec_worker() 319 dst_buf in mtk_vdec_worker() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/jpeg/ |
H A D | mtk_jpeg_core.c | 914 struct vb2_buffer *dst_buf, in mtk_jpeg_set_dec_dst() 919 if (param->comp_num != dst_buf->num_planes) { in mtk_jpeg_set_dec_dst() 921 param->comp_num, dst_buf->num_planes); in mtk_jpeg_set_dec_dst() 925 for (i = 0; i < dst_buf->num_planes; i++) { in mtk_jpeg_set_dec_dst() 926 if (vb2_plane_size(dst_buf, i) < param->comp_size[i]) { in mtk_jpeg_set_dec_dst() 929 vb2_plane_size(dst_buf, 0), in mtk_jpeg_set_dec_dst() 933 fb->plane_addr[i] = vb2_dma_contig_plane_dma_addr(dst_buf, i); in mtk_jpeg_set_dec_dst() 943 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpeg_enc_device_run() local 949 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in mtk_jpeg_enc_device_run() 967 mtk_jpeg_set_enc_dst(ctx, jpeg->reg_base, &dst_buf in mtk_jpeg_enc_device_run() 912 mtk_jpeg_set_dec_dst(struct mtk_jpeg_ctx *ctx, struct mtk_jpeg_dec_param *param, struct vb2_buffer *dst_buf, struct mtk_jpeg_fb *fb) mtk_jpeg_set_dec_dst() argument 1001 struct vb2_v4l2_buffer *src_buf, *dst_buf; mtk_jpeg_dec_device_run() local 1241 struct vb2_v4l2_buffer *src_buf, *dst_buf; mtk_jpeg_job_timeout_work() local 1478 mtk_jpegenc_set_hw_param(struct mtk_jpeg_ctx *ctx, int hw_id, struct vb2_v4l2_buffer *src_buf, struct vb2_v4l2_buffer *dst_buf) mtk_jpegenc_set_hw_param() argument 1537 mtk_jpegdec_set_hw_param(struct mtk_jpeg_ctx *ctx, int hw_id, struct vb2_v4l2_buffer *src_buf, struct vb2_v4l2_buffer *dst_buf) mtk_jpegdec_set_hw_param() argument 1555 struct vb2_v4l2_buffer *src_buf, *dst_buf; mtk_jpeg_enc_done() local 1585 struct vb2_v4l2_buffer *src_buf, *dst_buf; mtk_jpegenc_worker() local 1682 struct vb2_v4l2_buffer *src_buf, *dst_buf; mtk_jpegdec_worker() local 1817 struct vb2_v4l2_buffer *src_buf, *dst_buf; mtk_jpeg_dec_irq() local [all...] |
H A D | mtk_jpeg_enc_hw.c | 100 struct vb2_buffer *dst_buf) in mtk_jpeg_set_enc_dst() 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 in mtk_jpegenc_hw_irq_handler() 99 mtk_jpeg_set_enc_dst(struct mtk_jpeg_ctx *ctx, void __iomem *base, struct vb2_buffer *dst_buf) mtk_jpeg_set_enc_dst() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/ |
H A D | mtk_vcodec_enc.c | 862 struct vb2_v4l2_buffer *src_buf, *dst_buf; in vb2ops_venc_stop_streaming() local 868 while ((dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx))) { in vb2ops_venc_stop_streaming() 869 dst_buf->vb2_buf.planes[0].bytesused = 0; in vb2ops_venc_stop_streaming() 870 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR); in vb2ops_venc_stop_streaming() 919 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_venc_encode_header() local 923 dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_venc_encode_header() 924 if (!dst_buf) { in mtk_venc_encode_header() 929 bs_buf.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in mtk_venc_encode_header() 930 bs_buf.dma_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in mtk_venc_encode_header() 931 bs_buf.size = (size_t)dst_buf in mtk_venc_encode_header() 1044 struct vb2_v4l2_buffer *src_buf, *dst_buf; mtk_venc_worker() local [all...] |
H A 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() 367 mtk_v4l2_debug(1, "[%d] dst_buf empty!!", ctx->id); 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 in mtk_vdec_worker() 1308 struct vb2_v4l2_buffer *src_buf = NULL, *dst_buf = NULL; vb2ops_vdec_stop_streaming() local [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/mtk-mdp/ |
H 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()
|
/kernel/linux/linux-5.10/drivers/staging/media/hantro/ |
H A 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()
|
H A D | hantro_g1_mpeg2_dec.c | 101 struct vb2_buffer *dst_buf, in hantro_g1_mpeg2_dec_set_buffers() 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() 99 hantro_g1_mpeg2_dec_set_buffers(struct hantro_dev *vpu, struct hantro_ctx *ctx, struct vb2_buffer *src_buf, struct vb2_buffer *dst_buf, const struct v4l2_mpeg2_sequence *sequence, const struct v4l2_mpeg2_picture *picture, const struct v4l2_ctrl_mpeg2_slice_params *slice_params) hantro_g1_mpeg2_dec_set_buffers() argument
|
H A D | rk3399_vpu_hw_mpeg2_dec.c | 103 struct vb2_buffer *dst_buf, in rk3399_vpu_mpeg2_dec_set_buffers() 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() 100 rk3399_vpu_mpeg2_dec_set_buffers(struct hantro_dev *vpu, struct hantro_ctx *ctx, struct vb2_buffer *src_buf, struct vb2_buffer *dst_buf, const struct v4l2_mpeg2_sequence *sequence, const struct v4l2_mpeg2_picture *picture, const struct v4l2_ctrl_mpeg2_slice_params *slice_params) rk3399_vpu_mpeg2_dec_set_buffers() argument
|
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/mdp/ |
H 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()
|
/kernel/linux/linux-5.10/drivers/media/platform/coda/ |
H A D | coda-bit.c | 1479 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda_prepare_encode() local 1496 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in coda_prepare_encode() 1502 dst_buf->sequence = ctx->osequence; in coda_prepare_encode() 1534 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0) + in coda_prepare_encode() 1542 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0), in coda_prepare_encode() 1544 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0) in coda_prepare_encode() 1547 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0) in coda_prepare_encode() 1552 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in coda_prepare_encode() 1639 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda_finish_encode() local 1653 dst_buf in coda_finish_encode() 2142 struct vb2_v4l2_buffer *dst_buf; coda_prepare_decode() local 2284 struct vb2_v4l2_buffer *dst_buf; coda_finish_decode() local 2576 struct vb2_v4l2_buffer *dst_buf; coda_decode_timeout() local [all...] |
H A D | coda-jpeg.c | 1073 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda9_jpeg_prepare_encode() local 1084 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in coda9_jpeg_prepare_encode() 1092 dst_buf->sequence = ctx->osequence; in coda9_jpeg_prepare_encode() 1100 start_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in coda9_jpeg_prepare_encode() 1101 end_addr = start_addr + vb2_plane_size(&dst_buf->vb2_buf, 0); in coda9_jpeg_prepare_encode() 1118 vb2_plane_size(&dst_buf->vb2_buf, 0), in coda9_jpeg_prepare_encode() 1119 vb2_plane_vaddr(&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 1226 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in coda9_jpeg_finish_encode() 1228 trace_coda_jpeg_done(ctx, dst_buf); in coda9_jpeg_finish_encode() 1335 struct vb2_v4l2_buffer *src_buf, *dst_buf; coda9_jpeg_prepare_decode() local 1454 struct vb2_v4l2_buffer *dst_buf, *src_buf; coda9_jpeg_finish_decode() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/chips-media/ |
H A D | coda-bit.c | 1481 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda_prepare_encode() local 1498 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in coda_prepare_encode() 1504 dst_buf->sequence = ctx->osequence; in coda_prepare_encode() 1536 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0) + in coda_prepare_encode() 1544 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0), in coda_prepare_encode() 1546 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0) in coda_prepare_encode() 1549 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0) in coda_prepare_encode() 1554 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in coda_prepare_encode() 1641 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda_finish_encode() local 1655 dst_buf in coda_finish_encode() 2166 struct vb2_v4l2_buffer *dst_buf; coda_prepare_decode() local 2306 struct vb2_v4l2_buffer *dst_buf; coda_finish_decode() local 2605 struct vb2_v4l2_buffer *dst_buf; coda_decode_timeout() local [all...] |
H A D | coda-jpeg.c | 1073 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda9_jpeg_prepare_encode() local 1084 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in coda9_jpeg_prepare_encode() 1092 dst_buf->sequence = ctx->osequence; in coda9_jpeg_prepare_encode() 1100 start_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in coda9_jpeg_prepare_encode() 1101 end_addr = start_addr + vb2_plane_size(&dst_buf->vb2_buf, 0); in coda9_jpeg_prepare_encode() 1118 vb2_plane_size(&dst_buf->vb2_buf, 0), in coda9_jpeg_prepare_encode() 1119 vb2_plane_vaddr(&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 1226 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in coda9_jpeg_finish_encode() 1228 trace_coda_jpeg_done(ctx, dst_buf); in coda9_jpeg_finish_encode() 1335 struct vb2_v4l2_buffer *src_buf, *dst_buf; coda9_jpeg_prepare_decode() local 1449 struct vb2_v4l2_buffer *dst_buf, *src_buf; coda9_jpeg_finish_decode() local [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/s5p-mfc/ |
H A 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 in s5p_mfc_handle_frame_all_extracted() 253 struct s5p_mfc_buf *dst_buf, *src_buf; s5p_mfc_handle_frame_copy_time() local 305 struct s5p_mfc_buf *dst_buf; s5p_mfc_handle_frame_new() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/encoder/ |
H A D | mtk_vcodec_enc.c | 947 struct vb2_v4l2_buffer *src_buf, *dst_buf; in vb2ops_venc_stop_streaming() local 953 while ((dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx))) { in vb2ops_venc_stop_streaming() 954 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, 0); in vb2ops_venc_stop_streaming() 955 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR); in vb2ops_venc_stop_streaming() 1037 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_venc_encode_header() local 1041 dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_venc_encode_header() 1042 if (!dst_buf) { in mtk_venc_encode_header() 1047 bs_buf.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in mtk_venc_encode_header() 1048 bs_buf.dma_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in mtk_venc_encode_header() 1049 bs_buf.size = (size_t)dst_buf in mtk_venc_encode_header() 1157 struct vb2_v4l2_buffer *src_buf, *dst_buf; mtk_venc_worker() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc.c | 227 struct s5p_mfc_buf *dst_buf; in s5p_mfc_handle_frame_all_extracted() local 233 dst_buf = list_entry(ctx->dst_queue.next, in s5p_mfc_handle_frame_all_extracted() 236 dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted() 237 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 0, 0); in s5p_mfc_handle_frame_all_extracted() 238 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 1, 0); in s5p_mfc_handle_frame_all_extracted() 239 list_del(&dst_buf->list); in s5p_mfc_handle_frame_all_extracted() 240 dst_buf->flags |= MFC_BUF_FLAG_EOS; in s5p_mfc_handle_frame_all_extracted() 242 dst_buf->b->sequence = (ctx->sequence++); in s5p_mfc_handle_frame_all_extracted() 246 dst_buf->b->field = V4L2_FIELD_NONE; in s5p_mfc_handle_frame_all_extracted() 248 dst_buf in s5p_mfc_handle_frame_all_extracted() 259 struct s5p_mfc_buf *dst_buf, *src_buf; s5p_mfc_handle_frame_copy_time() local 315 struct s5p_mfc_buf *dst_buf; s5p_mfc_handle_frame_new() local [all...] |
/kernel/linux/linux-5.10/drivers/crypto/virtio/ |
H 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() 99 vc_akcipher_req->dst_buf, akcipher_req->dst_len); in virtio_crypto_dataq_akcipher_callback() 224 void *src_buf = NULL, *dst_buf = NULL; in __virtio_crypto_akcipher_do_req() local 252 dst_buf = kcalloc_node(req->dst_len, 1, GFP_KERNEL, node); in __virtio_crypto_akcipher_do_req() 253 if (!dst_buf) in __virtio_crypto_akcipher_do_req() 256 sg_init_one(&dstdata_sg, dst_buf, req->dst_len); in __virtio_crypto_akcipher_do_req() 261 vc_akcipher_req->dst_buf = dst_buf; in __virtio_crypto_akcipher_do_req() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/virtio/ |
H 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() 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() [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/mtk-jpeg/ |
H A D | mtk_jpeg_core.c | 886 struct vb2_buffer *dst_buf, in mtk_jpeg_set_dec_dst() 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 in mtk_jpeg_enc_device_run() 884 mtk_jpeg_set_dec_dst(struct mtk_jpeg_ctx *ctx, struct mtk_jpeg_dec_param *param, struct vb2_buffer *dst_buf, struct mtk_jpeg_fb *fb) mtk_jpeg_set_dec_dst() argument 957 struct vb2_v4l2_buffer *src_buf, *dst_buf; mtk_jpeg_dec_device_run() local 1078 struct vb2_v4l2_buffer *src_buf, *dst_buf; mtk_jpeg_enc_done() local 1127 struct vb2_v4l2_buffer *src_buf, *dst_buf; mtk_jpeg_dec_irq() local 1321 struct vb2_v4l2_buffer *src_buf, *dst_buf; mtk_jpeg_job_timeout_work() local [all...] |