| /linux/drivers/media/platform/verisilicon/ |
| H 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()
|
| H 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()
|
| H 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()
|
| H 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()
|
| H 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()
|
| H A D | rockchip_vpu2_hw_h264_dec.c | 425 struct vb2_v4l2_buffer *dst_buf; in set_buffers() local 435 dst_buf = hantro_get_dst_buf(ctx); in set_buffers() 436 dst_dma = hantro_get_dec_buf_addr(ctx, &dst_buf->vb2_buf); in set_buffers()
|
| /linux/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() 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->vb2_buf.index, pfb, pfb->base_y.va, in mtk_vdec_worker() 327 dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker() [all …]
|
| /linux/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()
|
| /linux/drivers/gpu/drm/exynos/ |
| H 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/drivers/media/rc/ |
| H 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/tools/testing/selftests/bpf/ |
| H A D | network_helpers.c | 965 char src_buf[INET6_ADDRSTRLEN], dst_buf[INET6_ADDRSTRLEN]; in traffic_monitor_thread() 973 dst = inet_ntop(AF_INET6, &pkt->daddr, dst_buf, sizeof(dst_buf)); in traffic_monitor_thread() 984 char src_buf[INET_ADDRSTRLEN], dst_buf[INET_ADDRSTRLEN]; in traffic_monitor_thread() 992 dst = inet_ntop(AF_INET, &pkt->daddr, dst_buf, sizeof(dst_buf)); 875 char src_buf[INET6_ADDRSTRLEN], dst_buf[INET6_ADDRSTRLEN]; show_ipv6_packet() local 894 char src_buf[INET_ADDRSTRLEN], dst_buf[INET_ADDRSTRLEN]; show_ipv4_packet() local
|
| /linux/sound/soc/fsl/ |
| H A D | fsl_asrc_m2m.c | 191 struct snd_dma_buffer *src_buf, *dst_buf; in asrc_m2m_device_run() local 207 dst_buf = &pair->dma_buffer[OUT]; in asrc_m2m_device_run() 241 dst_buf->addr, in asrc_m2m_device_run() 281 asrc_read_last_fifo(pair, dst_buf->area, &out_dma_len); in asrc_m2m_device_run()
|
| /linux/drivers/mmc/host/ |
| H A D | tifm_sd.c | 215 unsigned char *dst_buf = kmap_local_page(dst) + dst_off; in tifm_sd_copy_page() local 217 memcpy(dst_buf, src_buf, count); in tifm_sd_copy_page() 219 kunmap_local(dst_buf - dst_off); in tifm_sd_copy_page()
|
| /linux/block/ |
| H A D | bio.c | 1466 void *dst_buf = bvec_kmap_local(&dst_bv); in bio_copy_data_iter() local 1468 memcpy(dst_buf, src_buf, bytes); in bio_copy_data_iter() 1470 kunmap_local(dst_buf); in bio_copy_data_iter()
|
| /linux/drivers/crypto/ccp/ |
| H A D | sev-dev.c | 737 void *dst_buf = __va(__sme_clr(desc->paddr_orig)); in snp_unmap_cmd_buf_desc() local 739 memcpy(dst_buf, bounce_buf, desc->len); in snp_unmap_cmd_buf_desc()
|