/openbmc/u-boot/test/dm/ |
H A D | dma.c | 19 u8 src_buf[512]; in dm_test_dma_m2m() local 29 src_buf[i] = i; in dm_test_dma_m2m() 31 ut_assertok(dma_memcpy(dst_buf, src_buf, len)); in dm_test_dma_m2m() 33 ut_assertok(memcmp(src_buf, dst_buf, len)); in dm_test_dma_m2m() 42 u8 src_buf[512]; in dm_test_dma() local 59 src_buf[i] = i; in dm_test_dma() 64 ut_assertok(dma_send(&dma_tx, src_buf, len, &meta1)); in dm_test_dma() 74 ut_assertok(memcmp(src_buf, dst_buf, len)); in dm_test_dma() 84 u8 src_buf[512]; in dm_test_dma_rx() local 101 src_buf[i] = i; in dm_test_dma_rx() [all …]
|
/openbmc/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 287 src_buf = v4l2_m2m_next_src_buf(ctx->m2m_ctx); in mtk_vdec_worker() 288 if (!src_buf) { in mtk_vdec_worker() 322 if (src_buf == &ctx->empty_flush_buf.vb) { in mtk_vdec_worker() 324 src_buf = v4l2_m2m_src_buf_remove(ctx->m2m_ctx); in mtk_vdec_worker() 345 container_of(src_buf, struct mtk_video_dec_buf, m2m_buf.vb); in mtk_vdec_worker() 347 buf.va = vb2_plane_vaddr(&src_buf->vb2_buf, 0); in mtk_vdec_worker() 348 buf.dma_addr = vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, 0); in mtk_vdec_worker() 349 buf.size = (size_t)src_buf->vb2_buf.planes[0].bytesused; in mtk_vdec_worker() 353 src_buf->vb2_buf.index); in mtk_vdec_worker() [all …]
|
/openbmc/linux/drivers/media/platform/verisilicon/ |
H A D | hantro_h1_jpeg_enc.c | 42 struct vb2_buffer *src_buf, in hantro_h1_jpeg_enc_set_buffers() argument 61 src[0] = vb2_dma_contig_plane_dma_addr(src_buf, 0); in hantro_h1_jpeg_enc_set_buffers() 65 src[0] = vb2_dma_contig_plane_dma_addr(src_buf, 0); in hantro_h1_jpeg_enc_set_buffers() 66 src[1] = vb2_dma_contig_plane_dma_addr(src_buf, 1); in hantro_h1_jpeg_enc_set_buffers() 70 src[0] = vb2_dma_contig_plane_dma_addr(src_buf, 0); in hantro_h1_jpeg_enc_set_buffers() 71 src[1] = vb2_dma_contig_plane_dma_addr(src_buf, 1); in hantro_h1_jpeg_enc_set_buffers() 72 src[2] = vb2_dma_contig_plane_dma_addr(src_buf, 2); in hantro_h1_jpeg_enc_set_buffers() 109 struct vb2_v4l2_buffer *src_buf, *dst_buf; in hantro_h1_jpeg_enc_run() local 113 src_buf = hantro_get_src_buf(ctx); in hantro_h1_jpeg_enc_run() 130 hantro_h1_jpeg_enc_set_buffers(vpu, ctx, &src_buf->vb2_buf, in hantro_h1_jpeg_enc_run()
|
H A D | rockchip_vpu2_hw_jpeg_enc.c | 69 struct vb2_buffer *src_buf, in rockchip_vpu2_jpeg_enc_set_buffers() argument 88 src[0] = vb2_dma_contig_plane_dma_addr(src_buf, 0); in rockchip_vpu2_jpeg_enc_set_buffers() 91 src[0] = vb2_dma_contig_plane_dma_addr(src_buf, 0); in rockchip_vpu2_jpeg_enc_set_buffers() 92 src[1] = vb2_dma_contig_plane_dma_addr(src_buf, 1); in rockchip_vpu2_jpeg_enc_set_buffers() 96 src[0] = vb2_dma_contig_plane_dma_addr(src_buf, 0); in rockchip_vpu2_jpeg_enc_set_buffers() 97 src[1] = vb2_dma_contig_plane_dma_addr(src_buf, 1); in rockchip_vpu2_jpeg_enc_set_buffers() 98 src[2] = vb2_dma_contig_plane_dma_addr(src_buf, 2); in rockchip_vpu2_jpeg_enc_set_buffers() 135 struct vb2_v4l2_buffer *src_buf, *dst_buf; in rockchip_vpu2_jpeg_enc_run() local 139 src_buf = hantro_get_src_buf(ctx); in rockchip_vpu2_jpeg_enc_run() 159 rockchip_vpu2_jpeg_enc_set_buffers(vpu, ctx, &src_buf->vb2_buf, in rockchip_vpu2_jpeg_enc_run()
|
H 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()
|
H 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()
|
H 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()
|
H 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()
|
/openbmc/linux/drivers/media/platform/mediatek/jpeg/ |
H A D | mtk_jpeg_enc_hw.c | 83 struct vb2_buffer *src_buf) in mtk_jpeg_set_enc_src() argument 88 for (i = 0; i < src_buf->num_planes; i++) { in mtk_jpeg_set_enc_src() 89 dma_addr = vb2_dma_contig_plane_dma_addr(src_buf, i) + in mtk_jpeg_set_enc_src() 90 src_buf->planes[i].data_offset; in mtk_jpeg_set_enc_src() 240 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpegenc_timeout_work() local 242 src_buf = cjpeg->hw_param.src_buffer; in mtk_jpegenc_timeout_work() 244 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, true); in mtk_jpegenc_timeout_work() 252 v4l2_m2m_buf_done(src_buf, buf_state); in mtk_jpegenc_timeout_work() 258 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpegenc_hw_irq_handler() local 270 src_buf = jpeg->hw_param.src_buffer; in mtk_jpegenc_hw_irq_handler() [all …]
|
H A D | mtk_jpeg_core.c | 870 struct mtk_jpeg_src_buf *src_buf; in mtk_jpeg_dec_stop_streaming() local 873 src_buf = mtk_jpeg_vb2_to_srcbuf(&vb->vb2_buf); in mtk_jpeg_dec_stop_streaming() 874 mtk_jpeg_set_queue_data(ctx, &src_buf->dec_param); in mtk_jpeg_dec_stop_streaming() 903 struct vb2_buffer *src_buf, in mtk_jpeg_set_dec_src() argument 906 bs->str_addr = vb2_dma_contig_plane_dma_addr(src_buf, 0); in mtk_jpeg_set_dec_src() 908 round_up(vb2_get_plane_payload(src_buf, 0), 16); in mtk_jpeg_set_dec_src() 909 bs->size = round_up(vb2_plane_size(src_buf, 0), 128); in mtk_jpeg_set_dec_src() 943 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpeg_enc_device_run() local 948 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in mtk_jpeg_enc_device_run() 966 mtk_jpeg_set_enc_src(ctx, jpeg->reg_base, &src_buf->vb2_buf); in mtk_jpeg_enc_device_run() [all …]
|
H A D | mtk_jpeg_dec_hw.c | 494 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpegdec_timeout_work() local 496 src_buf = cjpeg->hw_param.src_buffer; in mtk_jpegdec_timeout_work() 498 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, true); in mtk_jpegdec_timeout_work() 506 v4l2_m2m_buf_done(src_buf, buf_state); in mtk_jpegdec_timeout_work() 512 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_jpegdec_hw_irq_handler() local 526 src_buf = jpeg->hw_param.src_buffer; in mtk_jpegdec_hw_irq_handler() 528 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, true); in mtk_jpegdec_hw_irq_handler() 539 container_of(src_buf, struct mtk_jpeg_src_buf, b); in mtk_jpegdec_hw_irq_handler() 546 v4l2_m2m_buf_done(src_buf, buf_state); in mtk_jpegdec_hw_irq_handler()
|
/openbmc/linux/drivers/media/platform/chips-media/ |
H A D | coda-jpeg.c | 1073 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda9_jpeg_prepare_encode() local 1083 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in coda9_jpeg_prepare_encode() 1087 if (vb2_get_plane_payload(&src_buf->vb2_buf, 0) == 0) in coda9_jpeg_prepare_encode() 1088 vb2_set_plane_payload(&src_buf->vb2_buf, 0, in coda9_jpeg_prepare_encode() 1089 vb2_plane_size(&src_buf->vb2_buf, 0)); in coda9_jpeg_prepare_encode() 1091 src_buf->sequence = ctx->osequence; in coda9_jpeg_prepare_encode() 1095 src_buf->flags |= V4L2_BUF_FLAG_KEYFRAME; in coda9_jpeg_prepare_encode() 1096 src_buf->flags &= ~V4L2_BUF_FLAG_PFRAME; in coda9_jpeg_prepare_encode() 1191 coda_write_base(ctx, q_data_src, src_buf, CODA9_GDI_INFO_BASE_Y); in coda9_jpeg_prepare_encode() 1200 trace_coda_jpeg_run(ctx, src_buf); in coda9_jpeg_prepare_encode() [all …]
|
H A 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 361 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in coda_fill_bitstream() [all …]
|
/openbmc/linux/crypto/async_tx/ |
H 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()
|
/openbmc/linux/drivers/media/platform/mediatek/mdp/ |
H 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()
|
/openbmc/linux/drivers/crypto/virtio/ |
H A D | virtio_crypto_akcipher_algs.c | 41 void *src_buf; member 59 kfree(vc_akcipher_req->src_buf); in virtio_crypto_akcipher_finalize_req() 61 vc_akcipher_req->src_buf = NULL; in virtio_crypto_akcipher_finalize_req() 228 void *src_buf = NULL, *dst_buf = NULL; in __virtio_crypto_akcipher_do_req() local 241 src_buf = kcalloc_node(src_len, 1, GFP_KERNEL, node); in __virtio_crypto_akcipher_do_req() 242 if (!src_buf) in __virtio_crypto_akcipher_do_req() 247 sg_copy_to_buffer(req->src, sg_nents(req->src), src_buf, src_len); in __virtio_crypto_akcipher_do_req() 248 sg_init_one(&srcdata_sg, src_buf, src_len); in __virtio_crypto_akcipher_do_req() 251 sg_copy_to_buffer(req->src, sg_nents(req->src), src_buf, src_len); in __virtio_crypto_akcipher_do_req() 252 sg_init_one(&srcdata_sg, src_buf, src_len); in __virtio_crypto_akcipher_do_req() [all …]
|
/openbmc/linux/drivers/media/platform/amphion/ |
H A D | vpu_v4l2.c | 331 struct vb2_v4l2_buffer *src_buf = NULL; in vpu_next_src_buf() local 336 src_buf = v4l2_m2m_next_src_buf(inst->fh.m2m_ctx); in vpu_next_src_buf() 337 if (!src_buf || vpu_get_buffer_state(src_buf) == VPU_BUF_STATE_IDLE) in vpu_next_src_buf() 340 while (vpu_vb_is_codecconfig(src_buf)) { in vpu_next_src_buf() 342 vpu_set_buffer_state(src_buf, VPU_BUF_STATE_IDLE); in vpu_next_src_buf() 343 v4l2_m2m_buf_done(src_buf, VB2_BUF_STATE_DONE); in vpu_next_src_buf() 345 src_buf = v4l2_m2m_next_src_buf(inst->fh.m2m_ctx); in vpu_next_src_buf() 346 if (!src_buf || vpu_get_buffer_state(src_buf) == VPU_BUF_STATE_IDLE) in vpu_next_src_buf() 350 return src_buf; in vpu_next_src_buf() 355 struct vb2_v4l2_buffer *src_buf; in vpu_skip_frame() local [all …]
|
/openbmc/u-boot/board/gdsys/a38x/ |
H A D | hre.c | 386 const uint8_t *src_buf, *data; in hre_execute_op() local 444 src_buf = src_reg->digest; in hre_execute_op() 448 src_buf = buf; in hre_execute_op() 451 src_buf = buf; in hre_execute_op() 453 src_buf = data; in hre_execute_op() 455 src_buf = buf; in hre_execute_op() 456 for (ptr = (uint8_t *)src_buf, i = 20; i > 0; in hre_execute_op() 462 bin_func(dst_reg->digest, src_buf, 20); in hre_execute_op()
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/encoder/ |
H A D | mtk_vcodec_enc.c | 936 struct vb2_v4l2_buffer *src_buf, *dst_buf; in vb2ops_venc_stop_streaming() local 965 while ((src_buf = v4l2_m2m_src_buf_remove(ctx->m2m_ctx))) { in vb2ops_venc_stop_streaming() 966 if (src_buf != &ctx->empty_flush_buf.vb) in vb2ops_venc_stop_streaming() 967 v4l2_m2m_buf_done(src_buf, VB2_BUF_STATE_ERROR); in vb2ops_venc_stop_streaming() 1022 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_venc_encode_header() local 1052 src_buf = v4l2_m2m_next_src_buf(ctx->m2m_ctx); in mtk_venc_encode_header() 1053 if (src_buf) { in mtk_venc_encode_header() 1054 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp; in mtk_venc_encode_header() 1055 dst_buf->timecode = src_buf->timecode; in mtk_venc_encode_header() 1142 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mtk_venc_worker() local [all …]
|
/openbmc/linux/drivers/media/test-drivers/vidtv/ |
H 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() 466 e->src_buf = (args.src_buf) ? args.src_buf : NULL; in vidtv_s302m_encoder_init() 467 e->src_buf_sz = (args.src_buf) ? args.src_buf_sz : 0; in vidtv_s302m_encoder_init()
|
/openbmc/linux/drivers/media/platform/renesas/ |
H A D | rcar_jpu.c | 1319 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_cleanup() local 1324 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in jpu_cleanup() 1327 v4l2_m2m_buf_done(src_buf, VB2_BUF_STATE_ERROR); in jpu_cleanup() 1345 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_device_run() local 1360 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in jpu_device_run() 1367 jpu_buf = vb2_to_jpu_buffer(src_buf); in jpu_device_run() 1383 vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, 0); in jpu_device_run() 1386 &src_buf->vb2_buf, 1); in jpu_device_run() 1447 src_addr = vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, 0); in jpu_device_run() 1491 struct vb2_v4l2_buffer *src_buf, *dst_buf; in jpu_irq_handler() local [all …]
|
/openbmc/linux/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_scaler.c | 153 struct exynos_drm_ipp_buffer *src_buf) in scaler_set_src_base() argument 162 for (i = 0; i < src_buf->format->num_planes; ++i) in scaler_set_src_base() 163 scaler_write(src_buf->dma_addr[i], bases[i]); in scaler_set_src_base() 167 struct exynos_drm_ipp_buffer *src_buf) in scaler_set_src_span() argument 171 val = SCALER_SRC_SPAN_SET_Y_SPAN(src_buf->buf.pitch[0] / in scaler_set_src_span() 172 src_buf->format->cpp[0]); in scaler_set_src_span() 174 if (src_buf->format->num_planes > 1) in scaler_set_src_span() 175 val |= SCALER_SRC_SPAN_SET_C_SPAN(src_buf->buf.pitch[1]); in scaler_set_src_span()
|
/openbmc/linux/drivers/media/test-drivers/vicodec/ |
H A D | vicodec-core.c | 404 struct vb2_v4l2_buffer *src_buf, *dst_buf; in device_run() local 409 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in device_run() 411 src_req = src_buf->vb2_buf.req_obj.req; in device_run() 417 if (device_process(ctx, src_buf, dst_buf)) in device_run() 422 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, false); in device_run() 426 v4l2_m2m_is_last_draining_src_buf(ctx->fh.m2m_ctx, src_buf)) { in device_run() 432 src_buf->sequence = q_src->sequence++; in device_run() 433 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in device_run() 434 v4l2_m2m_buf_done(src_buf, state); in device_run() 435 } else if (vb2_get_plane_payload(&src_buf->vb2_buf, 0) == ctx->cur_buf_offset) { in device_run() [all …]
|
/openbmc/linux/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc.c | 259 struct s5p_mfc_buf *dst_buf, *src_buf; in s5p_mfc_handle_frame_copy_time() local 273 src_buf = list_entry(ctx->src_queue.next, struct s5p_mfc_buf, list); in s5p_mfc_handle_frame_copy_time() 278 dst_buf->b->timecode = src_buf->b->timecode; in s5p_mfc_handle_frame_copy_time() 280 src_buf->b->vb2_buf.timestamp; in s5p_mfc_handle_frame_copy_time() 284 src_buf->b->flags in s5p_mfc_handle_frame_copy_time() 377 struct s5p_mfc_buf *src_buf; in s5p_mfc_handle_frame() local 435 src_buf = list_entry(ctx->src_queue.next, struct s5p_mfc_buf, in s5p_mfc_handle_frame() 442 src_buf->b->vb2_buf.planes[0].bytesused) { in s5p_mfc_handle_frame() 449 if (src_buf->flags & MFC_BUF_FLAG_EOS) in s5p_mfc_handle_frame() 451 list_del(&src_buf->list); in s5p_mfc_handle_frame() [all …]
|
/openbmc/linux/drivers/media/platform/nxp/imx-jpeg/ |
H A D | mxc-jpeg.c | 822 struct vb2_v4l2_buffer *src_buf, in mxc_jpeg_check_and_set_last_buffer() argument 825 if (v4l2_m2m_is_last_draining_src_buf(ctx->fh.m2m_ctx, src_buf)) { in mxc_jpeg_check_and_set_last_buffer() 837 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mxc_jpeg_job_finish() local 840 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in mxc_jpeg_job_finish() 841 mxc_jpeg_check_and_set_last_buffer(ctx, src_buf, dst_buf); in mxc_jpeg_job_finish() 844 v4l2_m2m_buf_done(src_buf, state); in mxc_jpeg_job_finish() 886 struct vb2_v4l2_buffer *src_buf, *dst_buf; in mxc_jpeg_dec_irq() local 919 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in mxc_jpeg_dec_irq() 920 if (!dst_buf || !src_buf) { in mxc_jpeg_dec_irq() 924 jpeg_src_buf = vb2_to_mxc_buf(&src_buf->vb2_buf); in mxc_jpeg_dec_irq() [all …]
|