Home
last modified time | relevance | path

Searched refs:vb2_buf (Results 1 – 25 of 236) sorted by relevance

12345678910

/linux-6.12.1/drivers/media/test-drivers/vivid/
Dvivid-kthread-out.c86 v4l2_ctrl_request_setup(vid_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick()
88 v4l2_ctrl_request_complete(vid_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick()
98 vid_out_buf->vb.vb2_buf.timestamp = in vivid_thread_vid_out_tick()
100 vb2_buffer_done(&vid_out_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_vid_out_tick()
103 vid_out_buf->vb.vb2_buf.index); in vivid_thread_vid_out_tick()
107 v4l2_ctrl_request_setup(vbi_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick()
109 v4l2_ctrl_request_complete(vbi_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick()
115 vbi_out_buf->vb.vb2_buf.timestamp = in vivid_thread_vid_out_tick()
117 vb2_buffer_done(&vbi_out_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_vid_out_tick()
120 vbi_out_buf->vb.vb2_buf.index); in vivid_thread_vid_out_tick()
[all …]
Dvivid-kthread-touch.c28 v4l2_ctrl_request_setup(tch_cap_buf->vb.vb2_buf.req_obj.req, in vivid_thread_tch_cap_tick()
32 v4l2_ctrl_request_complete(tch_cap_buf->vb.vb2_buf.req_obj.req, in vivid_thread_tch_cap_tick()
34 vb2_buffer_done(&tch_cap_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_tch_cap_tick()
37 tch_cap_buf->vb.vb2_buf.index); in vivid_thread_tch_cap_tick()
39 tch_cap_buf->vb.vb2_buf.timestamp = ktime_get_ns() + dev->time_wrap_offset; in vivid_thread_tch_cap_tick()
182 v4l2_ctrl_request_complete(buf->vb.vb2_buf.req_obj.req, in vivid_stop_generating_touch_cap()
184 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in vivid_stop_generating_touch_cap()
186 buf->vb.vb2_buf.index); in vivid_stop_generating_touch_cap()
Dvivid-kthread-cap.c209 return vb2_plane_vaddr(&buf->vb.vb2_buf, p); in plane_vaddr()
210 vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in plane_vaddr()
220 bool blank = dev->must_blank[vid_cap_buf->vb.vb2_buf.index]; in vivid_copy_buffer()
262 voutbuf += vid_out_buf->vb.vb2_buf.planes[p].data_offset; in vivid_copy_buffer()
423 tpg_s_perc_fill_blank(tpg, dev->must_blank[buf->vb.vb2_buf.index]); in vivid_fillbuff()
476 dev->must_blank[buf->vb.vb2_buf.index] = false; in vivid_fillbuff()
626 v4l2_ctrl_request_setup(vid_cap_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_cap_tick()
631 vid_cap_buf->vb.vb2_buf.index); in vivid_thread_vid_cap_tick()
633 v4l2_ctrl_request_complete(vid_cap_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_cap_tick()
635 vb2_buffer_done(&vid_cap_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_vid_cap_tick()
[all …]
Dvivid-sdr-cap.c106 v4l2_ctrl_request_setup(sdr_cap_buf->vb.vb2_buf.req_obj.req, in vivid_thread_sdr_cap_tick()
108 v4l2_ctrl_request_complete(sdr_cap_buf->vb.vb2_buf.req_obj.req, in vivid_thread_sdr_cap_tick()
111 sdr_cap_buf->vb.vb2_buf.timestamp = in vivid_thread_sdr_cap_tick()
113 vb2_buffer_done(&sdr_cap_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_sdr_cap_tick()
295 vb2_buffer_done(&buf->vb.vb2_buf, in sdr_cap_start_streaming()
316 v4l2_ctrl_request_complete(buf->vb.vb2_buf.req_obj.req, in sdr_cap_stop_streaming()
318 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in sdr_cap_stop_streaming()
517 u8 *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_sdr_cap_process()
519 unsigned long plane_size = vb2_plane_size(&buf->vb.vb2_buf, 0); in vivid_sdr_cap_process()
Dvivid-vbi-cap.c86 u8 *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_raw_vbi_cap_process()
95 memset(vbuf, 0x10, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_raw_vbi_cap_process()
106 vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_sliced_vbi_cap_process()
114 memset(vbuf, 0, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_sliced_vbi_cap_process()
203 vb2_buffer_done(&buf->vb.vb2_buf, in vbi_cap_start_streaming()
/linux-6.12.1/drivers/media/platform/mediatek/vcodec/decoder/
Dmtk_vcodec_dec_stateful.c81 vb->vb2_buf.index, dstbuf->queued_in_vb2); in get_display_buffer()
87 return &vb->vb2_buf; in get_display_buffer()
134 vb->vb2_buf.index, dstbuf->queued_in_vb2); in get_free_buffer()
150 vb->vb2_buf.index); in get_free_buffer()
164 vb->vb2_buf.index, dstbuf->queued_in_vb2, in get_free_buffer()
170 return &vb->vb2_buf; in get_free_buffer()
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()
[all …]
/linux-6.12.1/drivers/media/test-drivers/visl/
Dvisl-dec.c46 u64 ts, struct vb2_buffer *vb2_buf) in visl_print_ts_idx() argument
50 if (tpg_verbose && vb2_buf) { in visl_print_ts_idx()
52 ts, vb2_buf->index); in visl_print_ts_idx()
78 struct vb2_buffer *vb2_buf; in visl_get_ref_frames() local
80 vb2_buf = vb2_find_buffer(cap_q, run->fwht.params->backward_ref_ts); in visl_get_ref_frames()
83 run->fwht.params->backward_ref_ts, vb2_buf); in visl_get_ref_frames()
144 struct vb2_buffer *vb2_buf; in visl_get_ref_frames() local
147 vb2_buf = vb2_find_buffer(cap_q, in visl_get_ref_frames()
149 if (tpg_verbose && vb2_buf) { in visl_get_ref_frames()
152 vb2_buf->index); in visl_get_ref_frames()
[all …]
/linux-6.12.1/drivers/staging/media/meson/vdec/
Dvdec_helpers.c200 ret = set_canvas_nv12m(sess, &buf->vb.vb2_buf, width, in amvdec_set_canvases()
206 ret = set_canvas_yuv420m(sess, &buf->vb.vb2_buf, width, in amvdec_set_canvases()
223 sess->fw_idx_to_vb2_idx[i++] = buf->vb.vb2_buf.index; in amvdec_set_canvases()
283 vb2_set_plane_payload(&vbuf->vb2_buf, 0, output_size); in dst_buf_done()
284 vb2_set_plane_payload(&vbuf->vb2_buf, 1, output_size / 2); in dst_buf_done()
287 vb2_set_plane_payload(&vbuf->vb2_buf, 0, output_size); in dst_buf_done()
288 vb2_set_plane_payload(&vbuf->vb2_buf, 1, output_size / 4); in dst_buf_done()
289 vb2_set_plane_payload(&vbuf->vb2_buf, 2, output_size / 4); in dst_buf_done()
293 vbuf->vb2_buf.timestamp = timestamp; in dst_buf_done()
315 vbuf->vb2_buf.index, timestamp, flags); in dst_buf_done()
[all …]
/linux-6.12.1/drivers/media/platform/mediatek/vcodec/encoder/
Dmtk_vcodec_enc.c847 container_of(vb, struct vb2_v4l2_buffer, vb2_buf); in vb2ops_venc_buf_queue()
856 ctx->id, vb2_v4l2->vb2_buf.index, ctx->param_change); in vb2ops_venc_buf_queue()
943 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, 0); in vb2ops_venc_stop_streaming()
1032 bs_buf.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in mtk_venc_encode_header()
1033 bs_buf.dma_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in mtk_venc_encode_header()
1034 bs_buf.size = (size_t)dst_buf->vb2_buf.planes[0].length; in mtk_venc_encode_header()
1038 ctx->id, dst_buf->vb2_buf.index, bs_buf.va, in mtk_venc_encode_header()
1046 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, 0); in mtk_venc_encode_header()
1054 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp; in mtk_venc_encode_header()
1061 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, enc_result.bs_size); in mtk_venc_encode_header()
[all …]
/linux-6.12.1/drivers/staging/media/sunxi/cedrus/
Dcedrus_mpeg2.c133 dst_luma_addr = cedrus_dst_buf_addr(ctx, &run->dst->vb2_buf, 0); in cedrus_mpeg2_setup()
134 dst_chroma_addr = cedrus_dst_buf_addr(ctx, &run->dst->vb2_buf, 1); in cedrus_mpeg2_setup()
143 reg = vb2_get_plane_payload(&run->src->vb2_buf, 0) * 8; in cedrus_mpeg2_setup()
148 src_buf_addr = vb2_dma_contig_plane_dma_addr(&run->src->vb2_buf, 0); in cedrus_mpeg2_setup()
157 reg = src_buf_addr + vb2_get_plane_payload(&run->src->vb2_buf, 0); in cedrus_mpeg2_setup()
/linux-6.12.1/drivers/usb/gadget/function/
Duvc_queue.c262 vb2_buffer_done(&buf->buf.vb2_buf, VB2_BUF_STATE_ERROR); in uvcg_queue_cancel()
336 vb2_set_plane_payload(&buf->buf.vb2_buf, 0, 0); in uvcg_complete_buffer()
337 vb2_buffer_done(&buf->buf.vb2_buf, VB2_BUF_STATE_ERROR); in uvcg_complete_buffer()
343 buf->buf.vb2_buf.timestamp = ktime_get_ns(); in uvcg_complete_buffer()
345 vb2_set_plane_payload(&buf->buf.vb2_buf, 0, buf->bytesused); in uvcg_complete_buffer()
346 vb2_buffer_done(&buf->buf.vb2_buf, VB2_BUF_STATE_DONE); in uvcg_complete_buffer()
/linux-6.12.1/drivers/media/usb/pwc/
Dpwc-uncompress.c28 image = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0); in pwc_decompress()
43 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, in pwc_decompress()
48 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, in pwc_decompress()
/linux-6.12.1/drivers/media/platform/st/stm32/stm32-dcmipp/
Ddcmipp-bytecap.c388 vb2_buffer_done(&buf->vb.vb2_buf, state); in dcmipp_bytecap_all_buffers_done()
432 vcap->next->vb.vb2_buf.index, vcap->next, &vcap->next->addr); in dcmipp_bytecap_start_streaming()
548 buf->addr = vb2_dma_contig_plane_dma_addr(&buf->vb.vb2_buf, 0); in dcmipp_bytecap_buf_prepare()
549 buf->size = vb2_plane_size(&buf->vb.vb2_buf, 0); in dcmipp_bytecap_buf_prepare()
552 vb2_set_plane_payload(&buf->vb.vb2_buf, 0, buf->size); in dcmipp_bytecap_buf_prepare()
561 static void dcmipp_bytecap_buf_queue(struct vb2_buffer *vb2_buf) in dcmipp_bytecap_buf_queue() argument
564 vb2_get_drv_priv(vb2_buf->vb2_queue); in dcmipp_bytecap_buf_queue()
565 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2_buf); in dcmipp_bytecap_buf_queue()
568 dev_dbg(vcap->dev, "Queue [%d] %p phy=%pad\n", buf->vb.vb2_buf.index, in dcmipp_bytecap_buf_queue()
577 buf->vb.vb2_buf.index, buf, &buf->addr); in dcmipp_bytecap_buf_queue()
[all …]
/linux-6.12.1/drivers/media/test-drivers/vimc/
Dvimc-capture.c236 vb2_buffer_done(&vbuf->vb2.vb2_buf, state); in vimc_capture_return_all_buffers()
283 static void vimc_capture_buf_queue(struct vb2_buffer *vb2_buf) in vimc_capture_buf_queue() argument
285 struct vimc_capture_device *vcapture = vb2_get_drv_priv(vb2_buf->vb2_queue); in vimc_capture_buf_queue()
286 struct vimc_capture_buffer *buf = container_of(vb2_buf, in vimc_capture_buf_queue()
288 vb2.vb2_buf); in vimc_capture_buf_queue()
382 vimc_buf->vb2.vb2_buf.timestamp = ktime_get_ns(); in vimc_capture_process_frame()
386 vbuf = vb2_plane_vaddr(&vimc_buf->vb2.vb2_buf, 0); in vimc_capture_process_frame()
391 vb2_set_plane_payload(&vimc_buf->vb2.vb2_buf, 0, in vimc_capture_process_frame()
393 vb2_buffer_done(&vimc_buf->vb2.vb2_buf, VB2_BUF_STATE_DONE); in vimc_capture_process_frame()
/linux-6.12.1/drivers/media/usb/go7007/
Dgo7007-driver.c383 if (vb && vb->vb.vb2_buf.planes[0].bytesused < GO7007_BUF_SIZE) { in store_byte()
384 u8 *ptr = vb2_plane_vaddr(&vb->vb.vb2_buf, 0); in store_byte()
386 ptr[vb->vb.vb2_buf.planes[0].bytesused++] = byte; in store_byte()
414 u32 *bytesused = &vb->vb.vb2_buf.planes[0].bytesused; in go7007_motion_regions()
456 bytesused = &vb->vb.vb2_buf.planes[0].bytesused; in frame_boundary()
464 vb->vb.vb2_buf.timestamp = ktime_get_ns(); in frame_boundary()
475 vb2_buffer_done(&vb_tmp->vb.vb2_buf, VB2_BUF_STATE_DONE); in frame_boundary()
518 if (vb && vb->vb.vb2_buf.planes[0].bytesused >= in go7007_parse_video_stream()
521 vb2_set_plane_payload(&vb->vb.vb2_buf, 0, 0); in go7007_parse_video_stream()
602 vb->vb.vb2_buf.planes[0].bytesused; in go7007_parse_video_stream()
/linux-6.12.1/drivers/media/platform/verisilicon/
Dhantro_h1_jpeg_enc.c119 jpeg_ctx.buffer = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); 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()
131 &dst_buf->vb2_buf); in hantro_h1_jpeg_enc_run()
164 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, in hantro_h1_jpeg_enc_done()
Drockchip_vpu2_hw_jpeg_enc.c145 jpeg_ctx.buffer = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); 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()
160 &dst_buf->vb2_buf); in rockchip_vpu2_jpeg_enc_run()
195 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, in rockchip_vpu2_jpeg_enc_done()
/linux-6.12.1/drivers/media/platform/samsung/s5p-mfc/
Ds5p_mfc.c137 for (i = 0; i < b->b->vb2_buf.num_planes; i++) in s5p_mfc_cleanup_queue()
138 vb2_set_plane_payload(&b->b->vb2_buf, i, 0); in s5p_mfc_cleanup_queue()
139 vb2_buffer_done(&b->b->vb2_buf, VB2_BUF_STATE_ERROR); in s5p_mfc_cleanup_queue()
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()
251 ctx->dec_dst_flag &= ~(1 << dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted()
252 vb2_buffer_done(&dst_buf->b->vb2_buf, VB2_BUF_STATE_DONE); in s5p_mfc_handle_frame_all_extracted()
275 u32 addr = (u32)vb2_dma_contig_plane_dma_addr(&dst_buf->b->vb2_buf, 0); in s5p_mfc_handle_frame_copy_time()
279 dst_buf->b->vb2_buf.timestamp = in s5p_mfc_handle_frame_copy_time()
[all …]
Ds5p_mfc_opr_v5.c1184 vb2_dma_contig_plane_dma_addr(&temp_vb->b->vb2_buf, 0), in s5p_mfc_run_dec_frame()
1185 ctx->consumed_stream, temp_vb->b->vb2_buf.planes[0].bytesused); in s5p_mfc_run_dec_frame()
1187 if (temp_vb->b->vb2_buf.planes[0].bytesused == 0) { in s5p_mfc_run_dec_frame()
1221 if (src_mb->b->vb2_buf.planes[0].bytesused == 0) { in s5p_mfc_run_enc_frame()
1229 &src_mb->b->vb2_buf, 0); in s5p_mfc_run_enc_frame()
1231 &src_mb->b->vb2_buf, 1); in s5p_mfc_run_enc_frame()
1240 dst_addr = vb2_dma_contig_plane_dma_addr(&dst_mb->b->vb2_buf, 0); in s5p_mfc_run_enc_frame()
1241 dst_size = vb2_plane_size(&dst_mb->b->vb2_buf, 0); in s5p_mfc_run_enc_frame()
1245 src_mb ? src_mb->b->vb2_buf.index : -1, ctx->state); in s5p_mfc_run_enc_frame()
1260 temp_vb->b->vb2_buf.planes[0].bytesused); in s5p_mfc_run_init_dec()
[all …]
/linux-6.12.1/drivers/media/platform/chips-media/wave5/
Dwave5-vpu-dec.c208 size_t src_size = vb2_get_plane_payload(&src_buf->vb2_buf, 0); in wave5_handle_src_buffer()
214 __func__, src_buf->vb2_buf.index); in wave5_handle_src_buffer()
216 inst->timestamp = src_buf->vb2_buf.timestamp; in wave5_handle_src_buffer()
340 for (i = 0; i < vb->vb2_buf.num_planes; i++) in flag_last_buffer_done()
341 vb2_set_plane_payload(&vb->vb2_buf, i, 0); in flag_last_buffer_done()
449 dec_buf->vb2_buf.timestamp = inst->timestamp; in wave5_vpu_dec_finish_decode()
468 vb2_set_plane_payload(&disp_buf->vb2_buf, 0, in wave5_vpu_dec_finish_decode()
471 vb2_set_plane_payload(&disp_buf->vb2_buf, 0, in wave5_vpu_dec_finish_decode()
473 vb2_set_plane_payload(&disp_buf->vb2_buf, 1, in wave5_vpu_dec_finish_decode()
476 vb2_set_plane_payload(&disp_buf->vb2_buf, 0, in wave5_vpu_dec_finish_decode()
[all …]
Dwave5-vpu-enc.c170 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in start_encode()
172 vb2_plane_size(&dst_buf->vb2_buf, 0); in start_encode()
184 vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, 0); in start_encode()
189 vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, 0); in start_encode()
191 vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, 1); in start_encode()
195 vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, 0); in start_encode()
197 vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, 1); in start_encode()
199 vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, 2); in start_encode()
202 pic_param.src_idx = src_buf->vb2_buf.index; in start_encode()
230 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp; in start_encode()
[all …]
/linux-6.12.1/drivers/media/usb/uvc/
Duvc_queue.c58 vb2_buffer_done(&buf->buf.vb2_buf, vb2_state); in uvc_queue_return_buffers()
468 vb2_set_plane_payload(&buf->buf.vb2_buf, 0, 0); in uvc_queue_buffer_requeue()
470 uvc_buffer_queue(&buf->buf.vb2_buf); in uvc_queue_buffer_requeue()
476 struct vb2_buffer *vb = &buf->buf.vb2_buf; in uvc_queue_buffer_complete()
485 vb2_set_plane_payload(&buf->buf.vb2_buf, 0, buf->bytesused); in uvc_queue_buffer_complete()
486 vb2_buffer_done(&buf->buf.vb2_buf, VB2_BUF_STATE_DONE); in uvc_queue_buffer_complete()
/linux-6.12.1/drivers/media/pci/cx88/
Dcx88-vbi.c108 buf, buf->vb.vb2_buf.index); in cx8800_restart_vbi_queue()
182 buf, buf->vb.vb2_buf.index); in buffer_queue()
190 buf, buf->vb.vb2_buf.index); in buffer_queue()
221 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in stop_streaming()
/linux-6.12.1/drivers/media/platform/chips-media/coda/
Dcoda-jpeg.c1087 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()
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()
1234 start_ptr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in coda9_jpeg_finish_encode()
1236 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, wr_ptr - start_ptr); in coda9_jpeg_finish_encode()
1348 if (vb2_get_plane_payload(&src_buf->vb2_buf, 0) == 0) in coda9_jpeg_prepare_decode()
[all …]
/linux-6.12.1/drivers/media/usb/cx231xx/
Dcx231xx-vbi.c192 container_of(vb, struct cx231xx_buffer, vb.vb2_buf); in vbi_buf_queue()
212 vb2_buffer_done(&buf->vb.vb2_buf, state); in return_all_buffers()
484 buf->vb.vb2_buf.timestamp = ktime_get_ns(); in vbi_buffer_filled()
489 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE); in vbi_buffer_filled()
582 outp = vb2_plane_vaddr(&(*buf)->vb.vb2_buf, 0); in get_next_vbi_buf()
583 memset(outp, 0, vb2_plane_size(&(*buf)->vb.vb2_buf, 0)); in get_next_vbi_buf()
624 p_out_buffer = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in cx231xx_do_vbi_copy()

12345678910