Searched refs:dst_buf (Results 1 - 25 of 48) sorted by relevance

12

/linux-master/drivers/media/platform/verisilicon/
H A Dhantro_h1_jpeg_enc.c43 struct vb2_buffer *dst_buf)
49 size_left = vb2_plane_size(dst_buf, 0) - ctx->vpu_dst_fmt->header_size;
50 if (WARN_ON(vb2_plane_size(dst_buf, 0) < ctx->vpu_dst_fmt->header_size))
55 vepu_write_relaxed(vpu, vb2_dma_contig_plane_dma_addr(dst_buf, 0) +
109 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
114 dst_buf = hantro_get_dst_buf(ctx);
119 jpeg_ctx.buffer = vb2_plane_vaddr(&dst_buf->vb2_buf, 0);
131 &dst_buf->vb2_buf);
162 struct vb2_v4l2_buffer *dst_buf = hantro_get_dst_buf(ctx); local
164 vb2_set_plane_payload(&dst_buf
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) argument
[all...]
H A Drockchip_vpu2_hw_jpeg_enc.c70 struct vb2_buffer *dst_buf)
76 size_left = vb2_plane_size(dst_buf, 0) - ctx->vpu_dst_fmt->header_size;
77 if (WARN_ON(vb2_plane_size(dst_buf, 0) < ctx->vpu_dst_fmt->header_size))
82 vepu_write_relaxed(vpu, vb2_dma_contig_plane_dma_addr(dst_buf, 0) +
135 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
140 dst_buf = hantro_get_dst_buf(ctx);
145 jpeg_ctx.buffer = vb2_plane_vaddr(&dst_buf->vb2_buf, 0);
160 &dst_buf->vb2_buf);
193 struct vb2_v4l2_buffer *dst_buf = hantro_get_dst_buf(ctx); local
195 vb2_set_plane_payload(&dst_buf
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) argument
[all...]
H A Dhantro_g1_mpeg2_dec.c94 struct vb2_buffer *dst_buf,
114 addr = hantro_get_dec_buf_addr(ctx, dst_buf);
151 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
157 dst_buf = hantro_get_dst_buf(ctx);
232 &dst_buf->vb2_buf,
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) argument
H A Drockchip_vpu2_hw_mpeg2_dec.c97 struct vb2_buffer *dst_buf,
117 addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0);
154 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
160 dst_buf = hantro_get_dst_buf(ctx);
239 &dst_buf->vb2_buf, seq, pic);
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) argument
H A Dhantro_postproc.c70 struct vb2_v4l2_buffer *dst_buf; local
90 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx);
91 dst_dma = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0);
119 struct vb2_v4l2_buffer *dst_buf; local
125 dst_buf = hantro_get_dst_buf(ctx);
126 dst_dma = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0);
H A Dhantro_g1_h264_dec.c208 struct vb2_v4l2_buffer *dst_buf; local
218 dst_buf = hantro_get_dst_buf(ctx);
219 dst_dma = hantro_get_dec_buf_addr(ctx, &dst_buf->vb2_buf);
/linux-master/drivers/media/platform/mediatek/mdp/
H A Dmtk_mdp_regs.c61 struct mdp_buffer *dst_buf = &ctx->vpu.vsi->dst_buffer; local
65 dst_buf->addr_mva[i] = (uint64_t)addr->addr[i];
124 struct mdp_buffer *dst_buf = &ctx->vpu.vsi->dst_buffer; local
126 dst_buf->plane_num = frame->fmt->num_comp;
130 for (i = 0; i < dst_buf->plane_num; i++)
131 dst_buf->plane_size[i] = frame->payload[i];
/linux-master/drivers/media/platform/mediatek/vcodec/decoder/
H A Dmtk_vcodec_dec_stateful.c280 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
294 dst_buf = v4l2_m2m_next_dst_buf(ctx->m2m_ctx);
295 if (!dst_buf) {
297 mtk_v4l2_vdec_dbg(1, ctx, "[%d] dst_buf empty!!", ctx->id);
302 container_of(dst_buf, struct mtk_video_dec_buf, m2m_buf.vb);
305 pfb->base_y.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 0);
307 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0);
310 pfb->base_c.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 1);
312 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 1);
319 dst_buf
[all...]
H A Dmtk_vcodec_dec_stateless.c275 struct vb2_buffer *dst_buf; local
280 mtk_v4l2_vdec_dbg(1, ctx, "[%d] dst_buf empty!!", ctx->id);
284 dst_buf = &vb2_v4l2->vb2_buf;
288 pfb->base_y.va = vb2_plane_vaddr(dst_buf, 0);
289 pfb->base_y.dma_addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0);
293 pfb->base_c.va = vb2_plane_vaddr(dst_buf, 1);
295 vb2_dma_contig_plane_dma_addr(dst_buf, 1);
300 dst_buf->index, pfb, pfb->base_y.va, &pfb->base_y.dma_addr,
/linux-master/drivers/media/platform/mediatek/jpeg/
H A Dmtk_jpeg_enc_hw.c100 struct vb2_buffer *dst_buf)
107 dma_addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0);
110 size = vb2_plane_size(dst_buf, 0);
240 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
243 dst_buf = cjpeg->hw_param.dst_buffer;
244 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, true);
258 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
271 dst_buf = jpeg->hw_param.dst_buffer;
272 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, true);
282 vb2_set_plane_payload(&dst_buf
99 mtk_jpeg_set_enc_dst(struct mtk_jpeg_ctx *ctx, void __iomem *base, struct vb2_buffer *dst_buf) argument
[all...]
H A Dmtk_jpeg_core.c913 struct vb2_buffer *dst_buf,
918 if (param->comp_num != dst_buf->num_planes) {
920 param->comp_num, dst_buf->num_planes);
924 for (i = 0; i < dst_buf->num_planes; i++) {
925 if (vb2_plane_size(dst_buf, i) < param->comp_size[i]) {
928 vb2_plane_size(dst_buf, 0),
932 fb->plane_addr[i] = vb2_dma_contig_plane_dma_addr(dst_buf, i);
942 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
948 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx);
966 mtk_jpeg_set_enc_dst(ctx, jpeg->reg_base, &dst_buf
911 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) argument
1000 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
1240 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
1477 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) argument
1536 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) argument
1554 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
1584 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
1681 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
1816 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
[all...]
H A Dmtk_jpeg_enc_hw.h88 struct vb2_buffer *dst_buf);
H A Dmtk_jpeg_dec_hw.c494 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
497 dst_buf = cjpeg->hw_param.dst_buffer;
498 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, true);
512 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
527 dst_buf = jpeg->hw_param.dst_buffer;
528 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, true);
541 for (i = 0; i < dst_buf->vb2_buf.num_planes; i++)
542 vb2_set_plane_payload(&dst_buf->vb2_buf, i,
/linux-master/drivers/media/platform/chips-media/coda/
H A Dcoda-bit.c1481 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
1498 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx);
1504 dst_buf->sequence = ctx->osequence;
1536 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0) +
1544 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0),
1546 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0)
1549 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0)
1554 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0);
1641 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
1655 dst_buf
2166 struct vb2_v4l2_buffer *dst_buf; local
2306 struct vb2_v4l2_buffer *dst_buf; local
2605 struct vb2_v4l2_buffer *dst_buf; local
[all...]
H A Dcoda-jpeg.c1073 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
1084 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx);
1092 dst_buf->sequence = ctx->osequence;
1100 start_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0);
1101 end_addr = start_addr + vb2_plane_size(&dst_buf->vb2_buf, 0);
1118 vb2_plane_size(&dst_buf->vb2_buf, 0),
1119 vb2_plane_vaddr(&dst_buf->vb2_buf, 0));
1209 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
1226 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx);
1228 trace_coda_jpeg_done(ctx, dst_buf);
1335 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
1449 struct vb2_v4l2_buffer *dst_buf, *src_buf; local
[all...]
/linux-master/drivers/media/platform/mediatek/vcodec/encoder/
H A Dmtk_vcodec_enc.c936 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
942 while ((dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx))) {
943 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, 0);
944 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR);
1022 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
1026 dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx);
1027 if (!dst_buf) {
1032 bs_buf.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 0);
1033 bs_buf.dma_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0);
1034 bs_buf.size = (size_t)dst_buf
1142 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
[all...]
/linux-master/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc.c227 struct s5p_mfc_buf *dst_buf; local
233 dst_buf = list_entry(ctx->dst_queue.next,
236 dst_buf->b->vb2_buf.index);
237 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 0, 0);
238 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 1, 0);
239 list_del(&dst_buf->list);
240 dst_buf->flags |= MFC_BUF_FLAG_EOS;
242 dst_buf->b->sequence = (ctx->sequence++);
246 dst_buf->b->field = V4L2_FIELD_NONE;
248 dst_buf
259 struct s5p_mfc_buf *dst_buf, *src_buf; local
315 struct s5p_mfc_buf *dst_buf; local
[all...]
/linux-master/drivers/crypto/virtio/
H A Dvirtio_crypto_akcipher_algs.c42 void *dst_buf; member in struct:virtio_crypto_akcipher_request
60 kfree(vc_akcipher_req->dst_buf);
62 vc_akcipher_req->dst_buf = NULL;
101 vc_akcipher_req->dst_buf, akcipher_req->dst_len);
228 void *src_buf, *dst_buf = NULL; local
256 dst_buf = kcalloc_node(req->dst_len, 1, GFP_KERNEL, node);
257 if (!dst_buf)
260 sg_init_one(&dstdata_sg, dst_buf, req->dst_len);
265 vc_akcipher_req->dst_buf = dst_buf;
[all...]
/linux-master/drivers/gpu/drm/exynos/
H A Dexynos_drm_scaler.c216 struct exynos_drm_ipp_buffer *dst_buf)
225 for (i = 0; i < dst_buf->format->num_planes; ++i)
226 scaler_write(dst_buf->dma_addr[i], bases[i]);
230 struct exynos_drm_ipp_buffer *dst_buf)
234 val = SCALER_DST_SPAN_SET_Y_SPAN(dst_buf->buf.pitch[0] /
235 dst_buf->format->cpp[0]);
237 if (dst_buf->format->num_planes > 1)
238 val |= SCALER_DST_SPAN_SET_C_SPAN(dst_buf->buf.pitch[1]);
215 scaler_set_dst_base(struct scaler_context *scaler, struct exynos_drm_ipp_buffer *dst_buf) argument
229 scaler_set_dst_span(struct scaler_context *scaler, struct exynos_drm_ipp_buffer *dst_buf) argument
/linux-master/drivers/media/platform/renesas/
H A Drcar_jpu.c1319 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
1325 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx);
1328 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR);
1345 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
1361 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx);
1364 jpu_buf = vb2_to_jpu_buffer(dst_buf);
1381 dst_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0);
1449 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0);
1452 &dst_buf->vb2_buf, 1);
1491 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
[all...]
/linux-master/drivers/media/platform/chips-media/wave5/
H A Dwave5-vpu-enc.c153 struct vb2_v4l2_buffer *dst_buf; local
163 dst_buf = v4l2_m2m_next_dst_buf(m2m_ctx);
164 if (!dst_buf) {
170 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0);
172 vb2_plane_size(&dst_buf->vb2_buf, 0);
222 dst_buf = v4l2_m2m_dst_buf_remove(m2m_ctx);
223 if (!dst_buf) {
230 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp;
232 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR);
254 struct vb2_v4l2_buffer *dst_buf local
[all...]
/linux-master/drivers/media/rc/
H A Dmeson-ir-tx.c181 static void meson_irtx_fill_buf(struct meson_irtx *ir, u32 *dst_buf, argument
188 dst_buf[i] = meson_irtx_prepare_pulse(ir, src_buf[i]);
190 dst_buf[i] = meson_irtx_prepare_space(ir, src_buf[i]);
/linux-master/drivers/staging/media/rkvdec/
H A Drkvdec.h73 struct vb2_v4l2_buffer *dst_buf,
/linux-master/drivers/staging/media/imx/
H A Dimx-media-csc-scaler.c94 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
97 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx);
99 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, true);
102 dst_buf->sequence = src_buf->sequence;
106 v4l2_m2m_buf_done(dst_buf, run->status ? VB2_BUF_STATE_ERROR :
117 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
122 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx);
130 run->out_phys = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0);
145 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR);
/linux-master/drivers/media/platform/nxp/imx-jpeg/
H A Dmxc-jpeg.c823 struct vb2_v4l2_buffer *dst_buf)
826 dst_buf->flags |= V4L2_BUF_FLAG_LAST;
837 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
839 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx);
841 mxc_jpeg_check_and_set_last_buffer(ctx, src_buf, dst_buf);
845 v4l2_m2m_buf_done(dst_buf, state);
886 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
918 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx);
920 if (!dst_buf || !src_buf) {
957 vb2_set_plane_payload(&dst_buf
821 mxc_jpeg_check_and_set_last_buffer(struct mxc_jpeg_ctx *ctx, struct vb2_v4l2_buffer *src_buf, struct vb2_v4l2_buffer *dst_buf) argument
1161 mxc_jpeg_config_dec_desc(struct vb2_buffer *out_buf, struct mxc_jpeg_ctx *ctx, struct vb2_buffer *src_buf, struct vb2_buffer *dst_buf) argument
1230 mxc_jpeg_config_enc_desc(struct vb2_buffer *out_buf, struct mxc_jpeg_ctx *ctx, struct vb2_buffer *src_buf, struct vb2_buffer *dst_buf) argument
1436 struct vb2_v4l2_buffer *src_buf, *dst_buf; local
[all...]

Completed in 495 milliseconds

12