Home
last modified time | relevance | path

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

123456789

/linux-6.3-rc2/drivers/media/test-drivers/vivid/
A Dvivid-kthread-out.c98 vid_out_buf->vb.vb2_buf.timestamp = in vivid_thread_vid_out_tick()
103 vid_out_buf->vb.vb2_buf.index); in vivid_thread_vid_out_tick()
115 vbi_out_buf->vb.vb2_buf.timestamp = in vivid_thread_vid_out_tick()
120 vbi_out_buf->vb.vb2_buf.index); in vivid_thread_vid_out_tick()
129 meta_out_buf->vb.vb2_buf.timestamp = in vivid_thread_vid_out_tick()
134 meta_out_buf->vb.vb2_buf.index); in vivid_thread_vid_out_tick()
311 v4l2_ctrl_request_complete(buf->vb.vb2_buf.req_obj.req, in vivid_stop_generating_vid_out()
313 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in vivid_stop_generating_vid_out()
315 buf->vb.vb2_buf.index); in vivid_stop_generating_vid_out()
330 buf->vb.vb2_buf.index); in vivid_stop_generating_vid_out()
[all …]
A 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()
A Dvivid-kthread-cap.c230 return vb2_plane_vaddr(&buf->vb.vb2_buf, p); in plane_vaddr()
231 vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in plane_vaddr()
473 dev->must_blank[buf->vb.vb2_buf.index] = false; in vivid_fillbuff()
731 vid_cap_buf->vb.vb2_buf.index); in vivid_thread_vid_cap_tick()
743 vid_cap_buf->vb.vb2_buf.index); in vivid_thread_vid_cap_tick()
745 vid_cap_buf->vb.vb2_buf.timestamp = f_time; in vivid_thread_vid_cap_tick()
764 vbi_cap_buf->vb.vb2_buf.index); in vivid_thread_vid_cap_tick()
781 meta_cap_buf->vb.vb2_buf.index); in vivid_thread_vid_cap_tick()
973 buf->vb.vb2_buf.index); in vivid_stop_generating_vid_cap()
988 buf->vb.vb2_buf.index); in vivid_stop_generating_vid_cap()
[all …]
A 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()
290 vb2_buffer_done(&buf->vb.vb2_buf, in sdr_cap_start_streaming()
311 v4l2_ctrl_request_complete(buf->vb.vb2_buf.req_obj.req, in sdr_cap_stop_streaming()
313 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in sdr_cap_stop_streaming()
512 u8 *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_sdr_cap_process()
514 unsigned long plane_size = vb2_plane_size(&buf->vb.vb2_buf, 0); in vivid_sdr_cap_process()
A Dvivid-vbi-cap.c85 u8 *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_raw_vbi_cap_process()
94 memset(vbuf, 0x10, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_raw_vbi_cap_process()
105 vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_sliced_vbi_cap_process()
113 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()
A Dvivid-meta-cap.c98 vb2_buffer_done(&buf->vb.vb2_buf, in meta_cap_start_streaming()
165 struct vivid_uvc_meta_buf *meta = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_meta_cap_fillbuff()
171 memset(meta, 1, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_meta_cap_fillbuff()
/linux-6.3-rc2/drivers/media/platform/mediatek/vcodec/
A Dmtk_vcodec_dec_stateful.c83 vb->vb2_buf.index, dstbuf->queued_in_vb2); in get_display_buffer()
89 return &vb->vb2_buf; in get_display_buffer()
152 vb->vb2_buf.index); in get_free_buffer()
172 return &vb->vb2_buf; in get_free_buffer()
335 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, 0); in mtk_vdec_worker()
337 vb2_set_plane_payload(&dst_buf->vb2_buf, 1, 0); in mtk_vdec_worker()
348 buf.va = vb2_plane_vaddr(&src_buf->vb2_buf, 0); in mtk_vdec_worker()
354 src_buf->vb2_buf.index); in mtk_vdec_worker()
359 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp; in mtk_vdec_worker()
370 ctx->id, src_buf->vb2_buf.index, buf.size, in mtk_vdec_worker()
[all …]
A Dmtk_vcodec_enc.c868 vb2_v4l2->vb2_buf.index, in vb2ops_venc_buf_queue()
1068 dst_buf->vb2_buf.index, bs_buf.va, in mtk_venc_encode_header()
1077 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, 0); in mtk_venc_encode_header()
1085 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp; in mtk_venc_encode_header()
1119 vb2_v4l2->vb2_buf.index, in mtk_venc_param_change()
1130 vb2_v4l2->vb2_buf.index, in mtk_venc_param_change()
1147 vb2_v4l2->vb2_buf.index, in mtk_venc_param_change()
1203 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, 0); in mtk_venc_worker()
1215 (size_t)src_buf->vb2_buf.planes[i].length; in mtk_venc_worker()
1233 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp; in mtk_venc_worker()
[all …]
/linux-6.3-rc2/drivers/media/test-drivers/visl/
A Dvisl-dec.c53 struct vb2_buffer *vb2_buf; in visl_get_ref_frames() local
59 vb2_buf ? vb2_buf->index : -1); in visl_get_ref_frames()
126 struct vb2_buffer *vb2_buf; in visl_get_ref_frames() local
132 vb2_buf ? vb2_buf->index : -1); in visl_get_ref_frames()
142 struct vb2_buffer *vb2_buf; in visl_get_ref_frames() local
148 vb2_buf ? vb2_buf->index : -1); in visl_get_ref_frames()
185 for (i = 0; i < v4l2_vb2_buf->vb2_buf.num_planes; i++) in visl_fill_bytesused()
209 run->dst->vb2_buf.timestamp, in visl_tpg_fill_sequence()
233 &run->dst->vb2_buf, p, in visl_tpg_fill()
427 src_req = run.src->vb2_buf.req_obj.req; in visl_device_run()
[all …]
/linux-6.3-rc2/drivers/staging/media/meson/vdec/
A 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()
293 vbuf->vb2_buf.timestamp = timestamp; in dst_buf_done()
315 vbuf->vb2_buf.index, timestamp, flags); in dst_buf_done()
337 vbuf->vb2_buf.index); in amvdec_dst_buf_done()
[all …]
A Dcodec_hevc_common.c72 struct vb2_buffer *vb = &buf->vb.vb2_buf; in codec_hevc_setup_buffers_gxbb()
125 struct vb2_buffer *vb = &buf->vb.vb2_buf; in codec_hevc_setup_buffers_gxl()
179 u32 idx = buf->vb.vb2_buf.index; in codec_hevc_alloc_fbc_buffers()
232 u32 idx = buf->vb.vb2_buf.index; in codec_hevc_alloc_mmu_headers()
/linux-6.3-rc2/drivers/staging/media/sunxi/cedrus/
A 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.3-rc2/drivers/media/usb/pwc/
A 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.3-rc2/drivers/usb/gadget/function/
A 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.3-rc2/drivers/media/test-drivers/vimc/
A Dvimc-capture.c235 vb2_buffer_done(&vbuf->vb2.vb2_buf, state); in vimc_capture_return_all_buffers()
282 static void vimc_capture_buf_queue(struct vb2_buffer *vb2_buf) in vimc_capture_buf_queue() argument
284 struct vimc_capture_device *vcapture = vb2_get_drv_priv(vb2_buf->vb2_queue); in vimc_capture_buf_queue()
285 struct vimc_capture_buffer *buf = container_of(vb2_buf, in vimc_capture_buf_queue()
287 vb2.vb2_buf); in vimc_capture_buf_queue()
381 vimc_buf->vb2.vb2_buf.timestamp = ktime_get_ns(); in vimc_capture_process_frame()
385 vbuf = vb2_plane_vaddr(&vimc_buf->vb2.vb2_buf, 0); in vimc_capture_process_frame()
390 vb2_set_plane_payload(&vimc_buf->vb2.vb2_buf, 0, in vimc_capture_process_frame()
392 vb2_buffer_done(&vimc_buf->vb2.vb2_buf, VB2_BUF_STATE_DONE); in vimc_capture_process_frame()
/linux-6.3-rc2/drivers/media/platform/verisilicon/
A 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()
A 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.3-rc2/drivers/media/usb/go7007/
A Dgo7007-driver.c381 if (vb && vb->vb.vb2_buf.planes[0].bytesused < GO7007_BUF_SIZE) { in store_byte()
382 u8 *ptr = vb2_plane_vaddr(&vb->vb.vb2_buf, 0); in store_byte()
384 ptr[vb->vb.vb2_buf.planes[0].bytesused++] = byte; in store_byte()
412 u32 *bytesused = &vb->vb.vb2_buf.planes[0].bytesused; in go7007_motion_regions()
454 bytesused = &vb->vb.vb2_buf.planes[0].bytesused; in frame_boundary()
462 vb->vb.vb2_buf.timestamp = ktime_get_ns(); in frame_boundary()
473 vb2_buffer_done(&vb_tmp->vb.vb2_buf, VB2_BUF_STATE_DONE); in frame_boundary()
516 if (vb && vb->vb.vb2_buf.planes[0].bytesused >= in go7007_parse_video_stream()
519 vb2_set_plane_payload(&vb->vb.vb2_buf, 0, 0); in go7007_parse_video_stream()
600 vb->vb.vb2_buf.planes[0].bytesused; in go7007_parse_video_stream()
/linux-6.3-rc2/drivers/media/platform/samsung/s5p-mfc/
A 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()
236 dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted()
279 dst_buf->b->vb2_buf.timestamp = in s5p_mfc_handle_frame_copy_time()
280 src_buf->b->vb2_buf.timestamp; in s5p_mfc_handle_frame_copy_time()
359 clear_bit(dst_buf->b->vb2_buf.index, in s5p_mfc_handle_frame_new()
442 src_buf->b->vb2_buf.planes[0].bytesused) { in s5p_mfc_handle_frame()
454 vb2_buffer_done(&src_buf->b->vb2_buf, in s5p_mfc_handle_frame()
457 vb2_buffer_done(&src_buf->b->vb2_buf, in s5p_mfc_handle_frame()
557 src_buf->b->vb2_buf.planes[0].bytesused) in s5p_mfc_handle_seq_done()
[all …]
A Ds5p_mfc_opr_v5.c1185 if (temp_vb->b->vb2_buf.planes[0].bytesused == 0) { in s5p_mfc_run_dec_frame()
1219 if (src_mb->b->vb2_buf.planes[0].bytesused == 0) { in s5p_mfc_run_enc_frame()
1227 &src_mb->b->vb2_buf, 0); in s5p_mfc_run_enc_frame()
1229 &src_mb->b->vb2_buf, 1); in s5p_mfc_run_enc_frame()
1239 dst_size = vb2_plane_size(&dst_mb->b->vb2_buf, 0); in s5p_mfc_run_enc_frame()
1243 src_mb ? src_mb->b->vb2_buf.index : -1, ctx->state); in s5p_mfc_run_enc_frame()
1258 temp_vb->b->vb2_buf.planes[0].bytesused); in s5p_mfc_run_init_dec()
1261 0, temp_vb->b->vb2_buf.planes[0].bytesused); in s5p_mfc_run_init_dec()
1276 dst_size = vb2_plane_size(&dst_mb->b->vb2_buf, 0); in s5p_mfc_run_init_enc()
1302 temp_vb->b->vb2_buf.planes[0].bytesused); in s5p_mfc_run_init_dec_buffers()
[all …]
/linux-6.3-rc2/drivers/media/usb/uvc/
A 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.3-rc2/drivers/media/pci/cx88/
A 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.3-rc2/drivers/media/platform/chips-media/
A 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()
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()
1348 if (vb2_get_plane_payload(&src_buf->vb2_buf, 0) == 0) in coda9_jpeg_prepare_decode()
1349 vb2_set_plane_payload(&src_buf->vb2_buf, 0, in coda9_jpeg_prepare_decode()
1350 vb2_plane_size(&src_buf->vb2_buf, 0)); in coda9_jpeg_prepare_decode()
1356 ret = coda_jpeg_decode_header(ctx, &src_buf->vb2_buf); in coda9_jpeg_prepare_decode()
[all …]
/linux-6.3-rc2/drivers/media/usb/cx231xx/
A 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()
/linux-6.3-rc2/drivers/media/pci/tw686x/
A Dtw686x-video.c55 struct vb2_buffer *vb2_buf; in tw686x_buf_done() local
62 vb2_buf = &vb->vb2_buf; in tw686x_buf_done()
65 memcpy(vb2_plane_vaddr(vb2_buf, 0), desc->virt, in tw686x_buf_done()
67 vb2_buf->timestamp = ktime_get_ns(); in tw686x_buf_done()
68 vb2_buffer_done(vb2_buf, VB2_BUF_STATE_DONE); in tw686x_buf_done()
167 phys = vb2_dma_contig_plane_dma_addr(&buf->vb.vb2_buf, 0); in tw686x_contig_buf_refill()
170 buf->vb.vb2_buf.state = VB2_BUF_STATE_ACTIVE; in tw686x_contig_buf_refill()
242 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in tw686x_sg_buf_refill()
246 buf->vb.vb2_buf.state = VB2_BUF_STATE_ACTIVE; in tw686x_sg_buf_refill()
462 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in tw686x_buf_queue()
[all …]

Completed in 41 milliseconds

123456789