| /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()
|
| /linux/drivers/media/platform/chips-media/coda/ |
| 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() [all …]
|
| 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 = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in coda_finish_encode() [all …]
|
| /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 …]
|
| H A D | mtk_vcodec_dec_stateless.c | 256 struct vb2_v4l2_buffer *dst_buf; in mtk_vdec_stateless_cap_to_disp() local 264 dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); in mtk_vdec_stateless_cap_to_disp() 265 v4l2_m2m_buf_done(dst_buf, state); in mtk_vdec_stateless_cap_to_disp() 273 struct vb2_buffer *dst_buf; in vdec_get_cap_buffer() local 282 dst_buf = &vb2_v4l2->vb2_buf; in vdec_get_cap_buffer() 286 pfb->base_y.va = vb2_plane_vaddr(dst_buf, 0); in vdec_get_cap_buffer() 287 pfb->base_y.dma_addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0); in vdec_get_cap_buffer() 291 pfb->base_c.va = vb2_plane_vaddr(dst_buf, 1); in vdec_get_cap_buffer() 293 vb2_dma_contig_plane_dma_addr(dst_buf, 1); in vdec_get_cap_buffer() 298 dst_buf->index, pfb, pfb->base_y.va, &pfb->base_y.dma_addr, in vdec_get_cap_buffer()
|
| /linux/drivers/media/platform/mediatek/jpeg/ |
| H A D | mtk_jpeg_core.c | 902 struct vb2_buffer *dst_buf, in mtk_jpeg_set_dec_dst() argument 907 if (param->comp_num != dst_buf->num_planes) { in mtk_jpeg_set_dec_dst() 909 param->comp_num, dst_buf->num_planes); in mtk_jpeg_set_dec_dst() 913 for (i = 0; i < dst_buf->num_planes; i++) { in mtk_jpeg_set_dec_dst() 914 if (vb2_plane_size(dst_buf, i) < param->comp_size[i]) { in mtk_jpeg_set_dec_dst() 917 vb2_plane_size(dst_buf, 0), in mtk_jpeg_set_dec_dst() 921 fb->plane_addr[i] = vb2_dma_contig_plane_dma_addr(dst_buf, i); in mtk_jpeg_set_dec_dst() 931 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpeg_enc_device_run() local 937 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in mtk_jpeg_enc_device_run() 955 mtk_jpeg_set_enc_dst(ctx, jpeg->reg_base, &dst_buf->vb2_buf); in mtk_jpeg_enc_device_run() [all …]
|
| /linux/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->b->field = V4L2_FIELD_INTERLACED; in s5p_mfc_handle_frame_all_extracted() [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/crypto/virtio/ |
| H A D | virtio_crypto_akcipher_algs.c | 39 void *dst_buf; member 57 kfree(vc_akcipher_req->dst_buf); in virtio_crypto_akcipher_finalize_req() 59 vc_akcipher_req->dst_buf = NULL; in virtio_crypto_akcipher_finalize_req() 93 vc_akcipher_req->dst_buf, akcipher_req->dst_len); in virtio_crypto_dataq_akcipher_callback() 220 void *src_buf, *dst_buf = NULL; in __virtio_crypto_akcipher_do_req() local 240 dst_buf = kcalloc_node(req->dst_len, 1, GFP_KERNEL, node); in __virtio_crypto_akcipher_do_req() 241 if (!dst_buf) in __virtio_crypto_akcipher_do_req() 244 sg_init_one(&dstdata_sg, dst_buf, req->dst_len); in __virtio_crypto_akcipher_do_req() 248 vc_akcipher_req->dst_buf = dst_buf; in __virtio_crypto_akcipher_do_req() 264 kfree(dst_buf); in __virtio_crypto_akcipher_do_req()
|
| /linux/drivers/media/platform/renesas/ |
| H A D | rcar_jpu.c | 1308 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_cleanup() local 1314 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in jpu_cleanup() 1317 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR); in jpu_cleanup() 1334 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_device_run() local 1350 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in jpu_device_run() 1353 jpu_buf = vb2_to_jpu_buffer(dst_buf); in jpu_device_run() 1370 dst_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in jpu_device_run() 1438 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in jpu_device_run() 1441 &dst_buf->vb2_buf, 1); in jpu_device_run() 1480 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_irq_handler() local [all …]
|
| /linux/drivers/media/platform/nxp/imx-jpeg/ |
| H A D | mxc-jpeg.c | 886 struct vb2_v4l2_buffer *dst_buf) in mxc_jpeg_check_and_set_last_buffer() argument 889 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in mxc_jpeg_check_and_set_last_buffer() 900 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mxc_jpeg_job_finish() local 902 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in mxc_jpeg_job_finish() 904 mxc_jpeg_check_and_set_last_buffer(ctx, src_buf, dst_buf); in mxc_jpeg_job_finish() 908 v4l2_m2m_buf_done(dst_buf, state); in mxc_jpeg_job_finish() 977 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mxc_jpeg_dec_irq() local 1009 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq() 1011 if (!dst_buf || !src_buf) { in mxc_jpeg_dec_irq() 1049 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, payload); in mxc_jpeg_dec_irq() [all …]
|
| /linux/drivers/media/platform/chips-media/wave5/ |
| H A D | wave5-vpu-enc.c | 133 struct vb2_v4l2_buffer *dst_buf; in start_encode() local 156 dst_buf = v4l2_m2m_next_dst_buf(m2m_ctx); in start_encode() 157 if (!dst_buf) { in start_encode() 163 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in start_encode() 165 vb2_plane_size(&dst_buf->vb2_buf, 0); in start_encode() 215 dst_buf = v4l2_m2m_dst_buf_remove(m2m_ctx); in start_encode() 216 if (!dst_buf) { in start_encode() 223 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp; in start_encode() 225 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR); in start_encode() 247 struct vb2_v4l2_buffer *dst_buf = NULL; in wave5_vpu_enc_finish_encode() local [all …]
|
| /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/staging/media/imx/ |
| H A D | imx-media-csc-scaler.c | 97 struct vb2_v4l2_buffer *src_buf, *dst_buf; in ipu_ic_pp_complete() local 100 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in ipu_ic_pp_complete() 102 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf); in ipu_ic_pp_complete() 105 dst_buf->sequence = src_buf->sequence; in ipu_ic_pp_complete() 109 v4l2_m2m_buf_done(dst_buf, run->status ? VB2_BUF_STATE_ERROR : in ipu_ic_pp_complete() 120 struct vb2_v4l2_buffer *src_buf, *dst_buf; in device_run() local 125 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in device_run() 133 run->out_phys = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in device_run() 148 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR); in device_run()
|
| /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/drivers/media/test-drivers/vicodec/ |
| H A D | vicodec-core.c | 406 struct vb2_v4l2_buffer *src_buf, *dst_buf; in device_run() local 412 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in device_run() 419 if (device_process(ctx, src_buf, dst_buf)) in device_run() 422 dst_buf->sequence = q_dst->sequence++; in device_run() 423 dst_buf->flags &= ~V4L2_BUF_FLAG_LAST; in device_run() 424 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf); in device_run() 429 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in device_run() 444 v4l2_m2m_buf_done(dst_buf, state); in device_run() 550 static void set_last_buffer(struct vb2_v4l2_buffer *dst_buf, in set_last_buffer() argument 557 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, 0); in set_last_buffer() [all …]
|
| /linux/drivers/media/platform/samsung/s5p-jpeg/ |
| H A D | jpeg-core.c | 2028 struct vb2_v4l2_buffer *src_buf, *dst_buf; in s5p_jpeg_device_run() local 2034 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in s5p_jpeg_device_run() 2036 dst_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in s5p_jpeg_device_run() 2637 struct vb2_v4l2_buffer *src_buf, *dst_buf; in s5p_jpeg_irq() local 2649 dst_buf = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in s5p_jpeg_irq() 2671 dst_buf->timecode = src_buf->timecode; in s5p_jpeg_irq() 2672 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp; in s5p_jpeg_irq() 2673 dst_buf->flags &= ~V4L2_BUF_FLAG_TSTAMP_SRC_MASK; in s5p_jpeg_irq() 2674 dst_buf->flags |= in s5p_jpeg_irq() 2679 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, payload_size); in s5p_jpeg_irq() [all …]
|
| /linux/drivers/media/platform/allegro-dvt/ |
| H A D | allegro-core.c | 2010 struct vb2_v4l2_buffer *dst_buf; in allegro_channel_finish_frame() local 2027 dst_buf = allegro_get_buffer(channel, &channel->stream_shadow_list, in allegro_channel_finish_frame() 2029 if (!dst_buf) in allegro_channel_finish_frame() 2034 if (!src_buf || !dst_buf) in allegro_channel_finish_frame() 2038 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in allegro_channel_finish_frame() 2043 dst_buf->sequence = channel->csequence++; in allegro_channel_finish_frame() 2062 vb2_plane_size(&dst_buf->vb2_buf, 0)) { in allegro_channel_finish_frame() 2070 vb2_plane_vaddr(&dst_buf->vb2_buf, 0) + msg->partition_table_offset; in allegro_channel_finish_frame() 2072 vb2_plane_size(&dst_buf->vb2_buf, 0)) { in allegro_channel_finish_frame() 2088 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, in allegro_channel_finish_frame() [all …]
|
| /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/drivers/media/platform/st/sti/hva/ |
| H A D | hva-v4l2.c | 808 struct vb2_v4l2_buffer *src_buf, *dst_buf; in hva_run_work() local 822 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in hva_run_work() 825 stream = to_hva_stream(dst_buf); in hva_run_work() 830 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, stream->bytesused); in hva_run_work() 833 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR); in hva_run_work() 836 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp; in hva_run_work() 837 dst_buf->field = V4L2_FIELD_NONE; in hva_run_work() 838 dst_buf->sequence = ctx->stream_num - 1; in hva_run_work() 847 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_DONE); in hva_run_work()
|
| /linux/drivers/media/platform/imagination/ |
| H A D | e5010-jpeg-enc.c | 919 struct vb2_v4l2_buffer *src_buf, *dst_buf; in e5010_irq() local 935 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in e5010_irq() 937 if (!dst_buf || !src_buf) { in e5010_irq() 947 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, dst_buf->planes[0].length); in e5010_irq() 948 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_ERROR); in e5010_irq() 950 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in e5010_irq() 963 dst_buf->flags |= V4L2_BUF_FLAG_LAST; in e5010_irq() 970 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, output_size + HEADER_SIZE); in e5010_irq() 971 v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_DONE); in e5010_irq() 974 ctx, dst_buf->sequence, src_buf->sequence); in e5010_irq()
|