/linux/drivers/media/platform/mtk-vcodec/ |
A D | mtk_vcodec_dec_stateful.c | 298 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_vdec_worker() local 305 src_buf = v4l2_m2m_next_src_buf(ctx->m2m_ctx); in mtk_vdec_worker() 306 if (!src_buf) { in mtk_vdec_worker() 340 if (src_buf == &ctx->empty_flush_buf.vb) { in mtk_vdec_worker() 365 buf.va = vb2_plane_vaddr(&src_buf->vb2_buf, 0); in mtk_vdec_worker() 371 src_buf->vb2_buf.index); in mtk_vdec_worker() 377 dst_buf->timecode = src_buf->timecode; in mtk_vdec_worker() 432 struct vb2_v4l2_buffer *src_buf; in vb2ops_vdec_stateful_buf_queue() local 473 src_buf = v4l2_m2m_next_src_buf(ctx->m2m_ctx); in vb2ops_vdec_stateful_buf_queue() 474 if (!src_buf) { in vb2ops_vdec_stateful_buf_queue() [all …]
|
A D | mtk_vcodec_enc.c | 955 struct vb2_v4l2_buffer *src_buf, *dst_buf; in vb2ops_venc_stop_streaming() local 985 if (src_buf != &ctx->empty_flush_buf.vb) in vb2ops_venc_stop_streaming() 1045 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_venc_encode_header() local 1077 src_buf = v4l2_m2m_next_src_buf(ctx->m2m_ctx); in mtk_venc_encode_header() 1078 if (src_buf) { in mtk_venc_encode_header() 1080 dst_buf->timecode = src_buf->timecode; in mtk_venc_encode_header() 1173 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_venc_worker() local 1189 src_buf = v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in mtk_venc_worker() 1196 if (src_buf == &ctx->empty_flush_buf.vb) { in mtk_venc_worker() 1209 (size_t)src_buf->vb2_buf.planes[i].length; in mtk_venc_worker() [all …]
|
/linux/drivers/staging/media/hantro/ |
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A 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()
|
/linux/drivers/media/platform/coda/ |
A D | coda-jpeg.c | 1067 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda9_jpeg_prepare_encode() local 1082 vb2_set_plane_payload(&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() 1193 trace_coda_jpeg_run(ctx, src_buf); in coda9_jpeg_prepare_encode() 1202 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda9_jpeg_finish_encode() local 1310 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda9_jpeg_prepare_decode() local 1320 vb2_set_plane_payload(&src_buf->vb2_buf, 0, in coda9_jpeg_prepare_decode() 1419 trace_coda_jpeg_run(ctx, src_buf); in coda9_jpeg_prepare_decode() [all …]
|
A D | coda-bit.c | 231 struct vb2_v4l2_buffer *src_buf, in coda_buffer_parse_headers() argument 252 struct vb2_v4l2_buffer *src_buf) in coda_bitstream_try_queue() argument 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 371 m2m_buf = container_of(src_buf, in coda_fill_bitstream() 400 meta->sequence = src_buf->sequence; in coda_fill_bitstream() 401 meta->timecode = src_buf->timecode; in coda_fill_bitstream() 420 m2m_buf = container_of(src_buf, in coda_fill_bitstream() 1495 src_buf->sequence = ctx->osequence; in coda_prepare_encode() [all …]
|
/linux/drivers/media/platform/mtk-mdp/ |
A 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/crypto/async_tx/ |
A 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/drivers/media/platform/mtk-jpeg/ |
A D | mtk_jpeg_core.c | 842 struct mtk_jpeg_src_buf *src_buf; in mtk_jpeg_dec_stop_streaming() local 875 struct vb2_buffer *src_buf, in mtk_jpeg_set_dec_src() argument 915 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpeg_enc_device_run() local 948 v4l2_m2m_buf_done(src_buf, buf_state); in mtk_jpeg_enc_device_run() 957 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpeg_dec_device_run() local 999 v4l2_m2m_buf_done(src_buf, buf_state); in mtk_jpeg_dec_device_run() 1078 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpeg_enc_done() local 1096 v4l2_m2m_buf_done(src_buf, buf_state); in mtk_jpeg_enc_done() 1127 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpeg_dec_irq() local 1163 v4l2_m2m_buf_done(src_buf, buf_state); in mtk_jpeg_dec_irq() [all …]
|
A 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/drivers/media/test-drivers/vidtv/ |
A 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()
|
/linux/drivers/media/platform/ |
A D | rcar_jpu.c | 1327 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_cleanup() local 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 1375 jpu_buf = vb2_to_jpu_buffer(src_buf); in jpu_device_run() 1394 &src_buf->vb2_buf, 1); in jpu_device_run() 1499 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_irq_handler() local 1539 dst_buf->field = src_buf->field; in jpu_irq_handler() 1541 if (src_buf->flags & V4L2_BUF_FLAG_TIMECODE) in jpu_irq_handler() 1542 dst_buf->timecode = src_buf->timecode; in jpu_irq_handler() 1543 dst_buf->flags = src_buf->flags & in jpu_irq_handler() [all …]
|
/linux/drivers/media/test-drivers/vicodec/ |
A D | vicodec-core.c | 415 src_req = src_buf->vb2_buf.req_obj.req; in device_run() 436 src_buf->sequence = q_src->sequence++; in device_run() 438 v4l2_m2m_buf_done(src_buf, state); in device_run() 442 v4l2_m2m_buf_done(src_buf, state); in device_run() 467 struct vb2_v4l2_buffer *src_buf; in job_remove_src_buf() local 473 src_buf->sequence = q_src->sequence++; in job_remove_src_buf() 474 v4l2_m2m_buf_done(src_buf, state); in job_remove_src_buf() 571 struct vb2_v4l2_buffer *src_buf; in job_ready() local 592 if (!src_buf) in job_ready() 604 src_buf)) in job_ready() [all …]
|
/linux/drivers/media/platform/s5p-mfc/ |
A D | s5p_mfc.c | 253 struct s5p_mfc_buf *dst_buf, *src_buf; in s5p_mfc_handle_frame_copy_time() local 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 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() 442 vb2_buffer_done(&src_buf->b->vb2_buf, in s5p_mfc_handle_frame() 445 vb2_buffer_done(&src_buf->b->vb2_buf, in s5p_mfc_handle_frame() 537 struct s5p_mfc_buf *src_buf; in s5p_mfc_handle_seq_done() local 562 struct s5p_mfc_buf *src_buf; in s5p_mfc_handle_init_buffers() local [all …]
|
/linux/drivers/gpu/drm/exynos/ |
A 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/drivers/media/platform/imx-jpeg/ |
A D | mxc-jpeg.c | 555 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mxc_jpeg_dec_irq() local 593 if (!dst_buf || !src_buf) { in mxc_jpeg_dec_irq() 644 print_mxc_buf(jpeg, &src_buf->vb2_buf, 32); in mxc_jpeg_dec_irq() 653 v4l2_m2m_buf_done(src_buf, buf_state); in mxc_jpeg_dec_irq() 793 struct vb2_buffer *src_buf, in mxc_jpeg_config_dec_desc() argument 811 jpeg_src_buf = vb2_to_mxc_buf(src_buf); in mxc_jpeg_config_dec_desc() 822 mxc_jpeg_addrs(desc, dst_buf, src_buf, 0); in mxc_jpeg_config_dec_desc() 858 struct vb2_buffer *src_buf, in mxc_jpeg_config_enc_desc() argument 907 mxc_jpeg_addrs(desc, src_buf, dst_buf, 0); in mxc_jpeg_config_enc_desc() 925 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mxc_jpeg_device_run() local [all …]
|
/linux/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 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/drivers/scsi/aic94xx/ |
A D | aic94xx_sds.c | 1086 const u8 *src_buf; in asd_verify_flash_seg() local 1092 src_buf = NULL; in asd_verify_flash_seg() 1096 src_buf = (const u8 *)src; in asd_verify_flash_seg() 1099 if (flash_char != src_buf[i]) { in asd_verify_flash_seg() 1117 const u8 *src_buf; in asd_write_flash_seg() local 1122 src_buf = NULL; in asd_write_flash_seg() 1144 src_buf = (const u8 *)src; in asd_write_flash_seg() 1158 (*(src_buf + i))); in asd_write_flash_seg() 1171 (*(src_buf + i))); in asd_write_flash_seg()
|
/linux/drivers/media/rc/ |
A 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()
|
/linux/drivers/crypto/ |
A D | ixp4xx_crypto.c | 123 dma_addr_t src_buf; member 381 free_buf_chain(dev, req_ctx->src, crypt->src_buf); in one_packet() 410 free_buf_chain(dev, req_ctx->src, crypt->src_buf); in one_packet() 418 dma_pool_free(buffer_pool, crypt->regist_buf, crypt->src_buf); in one_packet() 718 crypt->src_buf = buf_phys; in register_chain_var() 797 crypt->src_buf = 0; in gen_rev_aes_key() 1039 crypt->src_buf = src_hook.phys_next; in ablk_perform() 1046 free_buf_chain(dev, req_ctx->src, crypt->src_buf); in ablk_perform() 1139 crypt->src_buf = src_hook.phys_next; in aead_perform() 1196 free_buf_chain(dev, req_ctx->src, crypt->src_buf); in aead_perform()
|
/linux/drivers/staging/media/sunxi/cedrus/ |
A D | cedrus_vp8.c | 659 struct vb2_buffer *src_buf = &run->src->vb2_buf; in cedrus_vp8_setup() local 681 reg = vb2_plane_size(src_buf, 0) * 8; in cedrus_vp8_setup() 694 src_buf_addr = vb2_dma_contig_plane_dma_addr(src_buf, 0); in cedrus_vp8_setup() 696 src_buf_addr + vb2_get_plane_payload(src_buf, 0)); in cedrus_vp8_setup()
|