/Linux-v5.15/drivers/staging/media/hantro/ |
D | rockchip_vpu2_hw_jpeg_enc.c | 64 struct vb2_buffer *src_buf) in rockchip_vpu2_jpeg_enc_set_buffers() argument 77 src[0] = vb2_dma_contig_plane_dma_addr(src_buf, 0); in rockchip_vpu2_jpeg_enc_set_buffers() 80 src[0] = vb2_dma_contig_plane_dma_addr(src_buf, 0); in rockchip_vpu2_jpeg_enc_set_buffers() 81 src[1] = vb2_dma_contig_plane_dma_addr(src_buf, 1); in rockchip_vpu2_jpeg_enc_set_buffers() 85 src[0] = vb2_dma_contig_plane_dma_addr(src_buf, 0); in rockchip_vpu2_jpeg_enc_set_buffers() 86 src[1] = vb2_dma_contig_plane_dma_addr(src_buf, 1); in rockchip_vpu2_jpeg_enc_set_buffers() 87 src[2] = vb2_dma_contig_plane_dma_addr(src_buf, 2); in rockchip_vpu2_jpeg_enc_set_buffers() 124 struct vb2_v4l2_buffer *src_buf, *dst_buf; in rockchip_vpu2_jpeg_enc_run() local 128 src_buf = hantro_get_src_buf(ctx); in rockchip_vpu2_jpeg_enc_run() 145 rockchip_vpu2_jpeg_enc_set_buffers(vpu, ctx, &src_buf->vb2_buf); in rockchip_vpu2_jpeg_enc_run()
|
D | hantro_h1_jpeg_enc.c | 33 struct vb2_buffer *src_buf) in hantro_h1_jpeg_enc_set_buffers() argument 46 src[0] = vb2_dma_contig_plane_dma_addr(src_buf, 0); in hantro_h1_jpeg_enc_set_buffers() 50 src[0] = vb2_dma_contig_plane_dma_addr(src_buf, 0); in hantro_h1_jpeg_enc_set_buffers() 51 src[1] = vb2_dma_contig_plane_dma_addr(src_buf, 1); in hantro_h1_jpeg_enc_set_buffers() 55 src[0] = vb2_dma_contig_plane_dma_addr(src_buf, 0); in hantro_h1_jpeg_enc_set_buffers() 56 src[1] = vb2_dma_contig_plane_dma_addr(src_buf, 1); in hantro_h1_jpeg_enc_set_buffers() 57 src[2] = vb2_dma_contig_plane_dma_addr(src_buf, 2); in hantro_h1_jpeg_enc_set_buffers() 94 struct vb2_v4l2_buffer *src_buf, *dst_buf; in hantro_h1_jpeg_enc_run() local 98 src_buf = hantro_get_src_buf(ctx); in hantro_h1_jpeg_enc_run() 115 hantro_h1_jpeg_enc_set_buffers(vpu, ctx, &src_buf->vb2_buf); in hantro_h1_jpeg_enc_run()
|
D | hantro_g1_h264_dec.c | 22 static void set_params(struct hantro_ctx *ctx, struct vb2_v4l2_buffer *src_buf) in set_params() argument 70 G1_REG_DEC_CTRL3_STREAM_LEN(vb2_get_plane_payload(&src_buf->vb2_buf, 0)); in set_params() 205 static void set_buffers(struct hantro_ctx *ctx, struct vb2_v4l2_buffer *src_buf) in set_buffers() argument 214 src_dma = vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, 0); in set_buffers() 253 struct vb2_v4l2_buffer *src_buf; in hantro_g1_h264_dec_run() local 262 src_buf = hantro_get_src_buf(ctx); in hantro_g1_h264_dec_run() 263 set_params(ctx, src_buf); in hantro_g1_h264_dec_run() 265 set_buffers(ctx, src_buf); in hantro_g1_h264_dec_run()
|
D | hantro_g1_mpeg2_dec.c | 93 struct vb2_buffer *src_buf, in hantro_g1_mpeg2_dec_set_buffers() argument 110 addr = vb2_dma_contig_plane_dma_addr(src_buf, 0); in hantro_g1_mpeg2_dec_set_buffers() 151 struct vb2_v4l2_buffer *src_buf, *dst_buf; in hantro_g1_mpeg2_dec_run() local 156 src_buf = hantro_get_src_buf(ctx); in hantro_g1_mpeg2_dec_run() 211 G1_REG_STREAM_LEN(vb2_get_plane_payload(&src_buf->vb2_buf, 0)); in hantro_g1_mpeg2_dec_run() 231 hantro_g1_mpeg2_dec_set_buffers(vpu, ctx, &src_buf->vb2_buf, in hantro_g1_mpeg2_dec_run()
|
D | rockchip_vpu2_hw_mpeg2_dec.c | 96 struct vb2_buffer *src_buf, in rockchip_vpu2_mpeg2_dec_set_buffers() argument 113 addr = vb2_dma_contig_plane_dma_addr(src_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 159 src_buf = hantro_get_src_buf(ctx); in rockchip_vpu2_mpeg2_dec_run() 176 VDPU_REG_STREAM_LEN(vb2_get_plane_payload(&src_buf->vb2_buf, 0)); in rockchip_vpu2_mpeg2_dec_run() 238 rockchip_vpu2_mpeg2_dec_set_buffers(vpu, ctx, &src_buf->vb2_buf, in rockchip_vpu2_mpeg2_dec_run()
|
D | rockchip_vpu2_hw_h264_dec.c | 193 static void set_params(struct hantro_ctx *ctx, struct vb2_v4l2_buffer *src_buf) in set_params() argument 210 VDPU_REG_STREAM_LEN(vb2_get_plane_payload(&src_buf->vb2_buf, 0)); in set_params() 422 static void set_buffers(struct hantro_ctx *ctx, struct vb2_v4l2_buffer *src_buf) in set_buffers() argument 431 src_dma = vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, 0); in set_buffers() 470 struct vb2_v4l2_buffer *src_buf; in rockchip_vpu2_h264_dec_run() local 479 src_buf = hantro_get_src_buf(ctx); in rockchip_vpu2_h264_dec_run() 480 set_params(ctx, src_buf); in rockchip_vpu2_h264_dec_run() 482 set_buffers(ctx, src_buf); in rockchip_vpu2_h264_dec_run()
|
D | hantro_g2_hevc_dec.c | 486 struct vb2_v4l2_buffer *src_buf, *dst_buf; in set_buffers() local 494 src_buf = hantro_get_src_buf(ctx); in set_buffers() 498 src_dma = vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, 0); in set_buffers() 499 src_len = vb2_get_plane_payload(&src_buf->vb2_buf, 0); in set_buffers() 500 src_buf_len = vb2_plane_size(&src_buf->vb2_buf, 0); in set_buffers()
|
/Linux-v5.15/drivers/media/platform/mtk-vcodec/ |
D | mtk_vcodec_dec.c | 350 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_vdec_worker() local 357 src_buf = v4l2_m2m_next_src_buf(ctx->m2m_ctx); in mtk_vdec_worker() 358 if (src_buf == NULL) { in mtk_vdec_worker() 371 src_buf_info = container_of(src_buf, struct mtk_video_dec_buf, in mtk_vdec_worker() 395 src_buf = v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker() 414 buf.va = vb2_plane_vaddr(&src_buf->vb2_buf, 0); in mtk_vdec_worker() 415 buf.dma_addr = vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, 0); in mtk_vdec_worker() 416 buf.size = (size_t)src_buf->vb2_buf.planes[0].bytesused; in mtk_vdec_worker() 420 ctx->id, src_buf->vb2_buf.index); in mtk_vdec_worker() 424 ctx->id, buf.va, &buf.dma_addr, buf.size, src_buf); in mtk_vdec_worker() [all …]
|
D | mtk_vcodec_enc.c | 875 struct vb2_v4l2_buffer *src_buf, *dst_buf; in vb2ops_venc_stop_streaming() local 886 while ((src_buf = v4l2_m2m_src_buf_remove(ctx->m2m_ctx))) in vb2ops_venc_stop_streaming() 887 v4l2_m2m_buf_done(src_buf, VB2_BUF_STATE_ERROR); in vb2ops_venc_stop_streaming() 936 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_venc_encode_header() local 968 src_buf = v4l2_m2m_next_src_buf(ctx->m2m_ctx); in mtk_venc_encode_header() 969 if (src_buf) { in mtk_venc_encode_header() 970 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp; in mtk_venc_encode_header() 971 dst_buf->timecode = src_buf->timecode; in mtk_venc_encode_header() 1061 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_venc_worker() local 1077 src_buf = v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in mtk_venc_worker() [all …]
|
/Linux-v5.15/drivers/media/platform/coda/ |
D | coda-jpeg.c | 1067 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda9_jpeg_prepare_encode() local 1077 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in coda9_jpeg_prepare_encode() 1081 if (vb2_get_plane_payload(&src_buf->vb2_buf, 0) == 0) in coda9_jpeg_prepare_encode() 1082 vb2_set_plane_payload(&src_buf->vb2_buf, 0, in coda9_jpeg_prepare_encode() 1083 vb2_plane_size(&src_buf->vb2_buf, 0)); in coda9_jpeg_prepare_encode() 1085 src_buf->sequence = ctx->osequence; in coda9_jpeg_prepare_encode() 1089 src_buf->flags |= V4L2_BUF_FLAG_KEYFRAME; in coda9_jpeg_prepare_encode() 1090 src_buf->flags &= ~V4L2_BUF_FLAG_PFRAME; in coda9_jpeg_prepare_encode() 1184 coda_write_base(ctx, q_data_src, src_buf, CODA9_GDI_INFO_BASE_Y); in coda9_jpeg_prepare_encode() 1193 trace_coda_jpeg_run(ctx, src_buf); in coda9_jpeg_prepare_encode() [all …]
|
D | coda-bit.c | 231 struct vb2_v4l2_buffer *src_buf, in coda_buffer_parse_headers() argument 234 u8 *vaddr = vb2_plane_vaddr(&src_buf->vb2_buf, 0); in coda_buffer_parse_headers() 252 struct vb2_v4l2_buffer *src_buf) in coda_bitstream_try_queue() argument 254 unsigned long payload = vb2_get_plane_payload(&src_buf->vb2_buf, 0); in coda_bitstream_try_queue() 255 u8 *vaddr = vb2_plane_vaddr(&src_buf->vb2_buf, 0); in coda_bitstream_try_queue() 276 u32 header_size = coda_buffer_parse_headers(ctx, src_buf, in coda_bitstream_try_queue() 309 src_buf->sequence = ctx->qsequence++; in coda_bitstream_try_queue() 316 if (src_buf->flags & V4L2_BUF_FLAG_LAST) in coda_bitstream_try_queue() 325 struct vb2_v4l2_buffer *src_buf; in coda_fill_bitstream() local 359 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in coda_fill_bitstream() [all …]
|
/Linux-v5.15/crypto/async_tx/ |
D | async_memcpy.c | 72 void *dest_buf, *src_buf; in async_memcpy() local 79 src_buf = kmap_atomic(src) + src_offset; in async_memcpy() 81 memcpy(dest_buf, src_buf, len); in async_memcpy() 83 kunmap_atomic(src_buf); in async_memcpy()
|
/Linux-v5.15/drivers/media/platform/mtk-mdp/ |
D | mtk_mdp_regs.c | 51 struct mdp_buffer *src_buf = &ctx->vpu.vsi->src_buffer; in mtk_mdp_hw_set_input_addr() local 55 src_buf->addr_mva[i] = (uint64_t)addr->addr[i]; in mtk_mdp_hw_set_input_addr() 93 struct mdp_buffer *src_buf = &ctx->vpu.vsi->src_buffer; in mtk_mdp_hw_set_in_image_format() local 95 src_buf->plane_num = frame->fmt->num_comp; in mtk_mdp_hw_set_in_image_format() 100 for (i = 0; i < src_buf->plane_num; i++) in mtk_mdp_hw_set_in_image_format() 101 src_buf->plane_size[i] = frame->payload[i]; in mtk_mdp_hw_set_in_image_format()
|
/Linux-v5.15/drivers/media/platform/mtk-jpeg/ |
D | mtk_jpeg_core.c | 842 struct mtk_jpeg_src_buf *src_buf; in mtk_jpeg_dec_stop_streaming() local 845 src_buf = mtk_jpeg_vb2_to_srcbuf(&vb->vb2_buf); in mtk_jpeg_dec_stop_streaming() 846 mtk_jpeg_set_queue_data(ctx, &src_buf->dec_param); in mtk_jpeg_dec_stop_streaming() 875 struct vb2_buffer *src_buf, in mtk_jpeg_set_dec_src() argument 878 bs->str_addr = vb2_dma_contig_plane_dma_addr(src_buf, 0); in mtk_jpeg_set_dec_src() 880 round_up(vb2_get_plane_payload(src_buf, 0), 16); in mtk_jpeg_set_dec_src() 881 bs->size = round_up(vb2_plane_size(src_buf, 0), 128); in mtk_jpeg_set_dec_src() 915 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpeg_enc_device_run() local 920 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in mtk_jpeg_enc_device_run() 938 mtk_jpeg_set_enc_src(ctx, jpeg->reg_base, &src_buf->vb2_buf); in mtk_jpeg_enc_device_run() [all …]
|
D | mtk_jpeg_enc_hw.c | 56 struct vb2_buffer *src_buf) in mtk_jpeg_set_enc_src() argument 61 for (i = 0; i < src_buf->num_planes; i++) { in mtk_jpeg_set_enc_src() 62 dma_addr = vb2_dma_contig_plane_dma_addr(src_buf, i) + in mtk_jpeg_set_enc_src() 63 src_buf->planes[i].data_offset; in mtk_jpeg_set_enc_src()
|
/Linux-v5.15/drivers/media/test-drivers/vidtv/ |
D | vidtv_s302m.c | 240 if (!e->src_buf) { in vidtv_s302m_get_sample() 285 sample = *(u16 *)(e->src_buf + e->src_buf_offset); in vidtv_s302m_get_sample() 366 if (e->src_buf) in vidtv_s302m_write_frames() 463 e->src_buf = (args.src_buf) ? args.src_buf : NULL; in vidtv_s302m_encoder_init() 464 e->src_buf_sz = (args.src_buf) ? args.src_buf_sz : 0; in vidtv_s302m_encoder_init()
|
D | vidtv_s302m.h | 83 void *src_buf; member
|
/Linux-v5.15/drivers/media/platform/ |
D | rcar_jpu.c | 1327 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_cleanup() local 1332 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in jpu_cleanup() 1335 v4l2_m2m_buf_done(src_buf, VB2_BUF_STATE_ERROR); in jpu_cleanup() 1353 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_device_run() local 1368 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in jpu_device_run() 1375 jpu_buf = vb2_to_jpu_buffer(src_buf); in jpu_device_run() 1391 vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, 0); in jpu_device_run() 1394 &src_buf->vb2_buf, 1); in jpu_device_run() 1455 src_addr = vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, 0); in jpu_device_run() 1499 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_irq_handler() local [all …]
|
/Linux-v5.15/drivers/gpu/drm/exynos/ |
D | exynos_drm_scaler.c | 152 struct exynos_drm_ipp_buffer *src_buf) in scaler_set_src_base() argument 161 for (i = 0; i < src_buf->format->num_planes; ++i) in scaler_set_src_base() 162 scaler_write(src_buf->dma_addr[i], bases[i]); in scaler_set_src_base() 166 struct exynos_drm_ipp_buffer *src_buf) in scaler_set_src_span() argument 170 val = SCALER_SRC_SPAN_SET_Y_SPAN(src_buf->buf.pitch[0] / in scaler_set_src_span() 171 src_buf->format->cpp[0]); in scaler_set_src_span() 173 if (src_buf->format->num_planes > 1) in scaler_set_src_span() 174 val |= SCALER_SRC_SPAN_SET_C_SPAN(src_buf->buf.pitch[1]); in scaler_set_src_span()
|
/Linux-v5.15/drivers/media/test-drivers/vicodec/ |
D | vicodec-core.c | 408 struct vb2_v4l2_buffer *src_buf, *dst_buf; in device_run() local 413 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in device_run() 415 src_req = src_buf->vb2_buf.req_obj.req; in device_run() 421 if (device_process(ctx, src_buf, dst_buf)) in device_run() 426 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, false); in device_run() 430 v4l2_m2m_is_last_draining_src_buf(ctx->fh.m2m_ctx, src_buf)) { in device_run() 436 src_buf->sequence = q_src->sequence++; in device_run() 437 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in device_run() 438 v4l2_m2m_buf_done(src_buf, state); in device_run() 439 } else if (vb2_get_plane_payload(&src_buf->vb2_buf, 0) == ctx->cur_buf_offset) { in device_run() [all …]
|
/Linux-v5.15/drivers/media/platform/s5p-mfc/ |
D | s5p_mfc.c | 253 struct s5p_mfc_buf *dst_buf, *src_buf; in s5p_mfc_handle_frame_copy_time() local 265 src_buf = list_entry(ctx->src_queue.next, struct s5p_mfc_buf, list); in s5p_mfc_handle_frame_copy_time() 270 dst_buf->b->timecode = src_buf->b->timecode; in s5p_mfc_handle_frame_copy_time() 272 src_buf->b->vb2_buf.timestamp; in s5p_mfc_handle_frame_copy_time() 276 src_buf->b->flags in s5p_mfc_handle_frame_copy_time() 365 struct s5p_mfc_buf *src_buf; in s5p_mfc_handle_frame() local 423 src_buf = list_entry(ctx->src_queue.next, struct s5p_mfc_buf, in s5p_mfc_handle_frame() 430 src_buf->b->vb2_buf.planes[0].bytesused) { in s5p_mfc_handle_frame() 437 if (src_buf->flags & MFC_BUF_FLAG_EOS) in s5p_mfc_handle_frame() 439 list_del(&src_buf->list); in s5p_mfc_handle_frame() [all …]
|
/Linux-v5.15/drivers/media/platform/imx-jpeg/ |
D | mxc-jpeg.c | 540 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mxc_jpeg_dec_irq() local 577 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq() 578 jpeg_src_buf = vb2_to_mxc_buf(&src_buf->vb2_buf); in mxc_jpeg_dec_irq() 625 print_mxc_buf(jpeg, &src_buf->vb2_buf, 32); in mxc_jpeg_dec_irq() 634 v4l2_m2m_buf_done(src_buf, buf_state); in mxc_jpeg_dec_irq() 771 struct vb2_buffer *src_buf, in mxc_jpeg_config_dec_desc() argument 789 jpeg_src_buf = vb2_to_mxc_buf(src_buf); in mxc_jpeg_config_dec_desc() 799 mxc_jpeg_addrs(desc, dst_buf, src_buf, 0); in mxc_jpeg_config_dec_desc() 800 mxc_jpeg_set_bufsize(desc, ALIGN(vb2_plane_size(src_buf, 0), 1024)); in mxc_jpeg_config_dec_desc() 834 struct vb2_buffer *src_buf, in mxc_jpeg_config_enc_desc() argument [all …]
|
/Linux-v5.15/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 96 src_buf = v4l2_m2m_src_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() 101 src_buf->sequence = ctx->sequence++; in ipu_ic_pp_complete() 102 dst_buf->sequence = src_buf->sequence; in ipu_ic_pp_complete() 104 v4l2_m2m_buf_done(src_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 121 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in device_run() 129 run->in_phys = vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, 0); in device_run() 144 v4l2_m2m_buf_done(src_buf, VB2_BUF_STATE_ERROR); in device_run()
|
/Linux-v5.15/drivers/scsi/aic94xx/ |
D | aic94xx_sds.c | 1084 const u8 *src_buf; in asd_verify_flash_seg() local 1090 src_buf = NULL; in asd_verify_flash_seg() 1094 src_buf = (const u8 *)src; in asd_verify_flash_seg() 1097 if (flash_char != src_buf[i]) { in asd_verify_flash_seg() 1115 const u8 *src_buf; in asd_write_flash_seg() local 1120 src_buf = NULL; in asd_write_flash_seg() 1142 src_buf = (const u8 *)src; in asd_write_flash_seg() 1156 (*(src_buf + i))); in asd_write_flash_seg() 1169 (*(src_buf + i))); in asd_write_flash_seg()
|
/Linux-v5.15/drivers/media/rc/ |
D | meson-ir-tx.c | 182 unsigned int *src_buf, unsigned int len) 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()
|