| /Linux-v5.10/drivers/media/test-drivers/vivid/ |
| D | vivid-kthread-out.c | 85 v4l2_ctrl_request_setup(vid_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick() 87 v4l2_ctrl_request_complete(vid_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick() 97 vid_out_buf->vb.vb2_buf.timestamp = in vivid_thread_vid_out_tick() 99 vb2_buffer_done(&vid_out_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_vid_out_tick() 102 vid_out_buf->vb.vb2_buf.index); in vivid_thread_vid_out_tick() 106 v4l2_ctrl_request_setup(vbi_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick() 108 v4l2_ctrl_request_complete(vbi_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick() 114 vbi_out_buf->vb.vb2_buf.timestamp = in vivid_thread_vid_out_tick() 116 vb2_buffer_done(&vbi_out_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_vid_out_tick() 119 vbi_out_buf->vb.vb2_buf.index); in vivid_thread_vid_out_tick() [all …]
|
| D | vivid-kthread-touch.c | 27 v4l2_ctrl_request_setup(tch_cap_buf->vb.vb2_buf.req_obj.req, in vivid_thread_tch_cap_tick() 31 v4l2_ctrl_request_complete(tch_cap_buf->vb.vb2_buf.req_obj.req, in vivid_thread_tch_cap_tick() 33 vb2_buffer_done(&tch_cap_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_tch_cap_tick() 36 tch_cap_buf->vb.vb2_buf.index); in vivid_thread_tch_cap_tick() 38 tch_cap_buf->vb.vb2_buf.timestamp = ktime_get_ns() + dev->time_wrap_offset; in vivid_thread_tch_cap_tick() 172 v4l2_ctrl_request_complete(buf->vb.vb2_buf.req_obj.req, in vivid_stop_generating_touch_cap() 174 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in vivid_stop_generating_touch_cap() 176 buf->vb.vb2_buf.index); in vivid_stop_generating_touch_cap()
|
| D | vivid-kthread-cap.c | 229 return vb2_plane_vaddr(&buf->vb.vb2_buf, p); in plane_vaddr() 230 vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in plane_vaddr() 239 bool blank = dev->must_blank[vid_cap_buf->vb.vb2_buf.index]; in vivid_copy_buffer() 281 voutbuf += vid_out_buf->vb.vb2_buf.planes[p].data_offset; in vivid_copy_buffer() 448 tpg_s_perc_fill_blank(tpg, dev->must_blank[buf->vb.vb2_buf.index]); in vivid_fillbuff() 471 dev->must_blank[buf->vb.vb2_buf.index] = false; in vivid_fillbuff() 597 void *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_overlay() 724 v4l2_ctrl_request_setup(vid_cap_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_cap_tick() 729 vid_cap_buf->vb.vb2_buf.index); in vivid_thread_vid_cap_tick() 736 v4l2_ctrl_request_complete(vid_cap_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_cap_tick() [all …]
|
| D | vivid-sdr-cap.c | 105 v4l2_ctrl_request_setup(sdr_cap_buf->vb.vb2_buf.req_obj.req, in vivid_thread_sdr_cap_tick() 107 v4l2_ctrl_request_complete(sdr_cap_buf->vb.vb2_buf.req_obj.req, in vivid_thread_sdr_cap_tick() 110 sdr_cap_buf->vb.vb2_buf.timestamp = in vivid_thread_sdr_cap_tick() 112 vb2_buffer_done(&sdr_cap_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_sdr_cap_tick() 283 vb2_buffer_done(&buf->vb.vb2_buf, in sdr_cap_start_streaming() 304 v4l2_ctrl_request_complete(buf->vb.vb2_buf.req_obj.req, in sdr_cap_stop_streaming() 306 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in sdr_cap_stop_streaming() 508 u8 *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_sdr_cap_process() 510 unsigned long plane_size = vb2_plane_size(&buf->vb.vb2_buf, 0); in vivid_sdr_cap_process()
|
| D | vivid-vbi-cap.c | 85 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()
|
| D | vivid-meta-cap.c | 98 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-v5.10/drivers/media/platform/mtk-vcodec/ |
| D | mtk_vcodec_dec.c | 128 vb2_set_plane_payload(&vb->vb2_buf, 0, in get_display_buffer() 131 vb2_set_plane_payload(&vb->vb2_buf, 1, in get_display_buffer() 137 vb->vb2_buf.index, in get_display_buffer() 144 return &vb->vb2_buf; in get_display_buffer() 194 vb->vb2_buf.index, in get_free_buffer() 211 vb->vb2_buf.index); in get_free_buffer() 225 vb->vb2_buf.index, in get_free_buffer() 232 return &vb->vb2_buf; in get_free_buffer() 377 pfb->base_y.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in mtk_vdec_worker() 378 pfb->base_y.dma_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in mtk_vdec_worker() [all …]
|
| D | mtk_vcodec_enc.c | 768 container_of(vb, struct vb2_v4l2_buffer, vb2_buf); in vb2ops_venc_buf_queue() 778 vb2_v4l2->vb2_buf.index, in vb2ops_venc_buf_queue() 867 dst_buf->vb2_buf.planes[0].bytesused = 0; in vb2ops_venc_stop_streaming() 927 bs_buf.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in mtk_venc_encode_header() 928 bs_buf.dma_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in mtk_venc_encode_header() 929 bs_buf.size = (size_t)dst_buf->vb2_buf.planes[0].length; in mtk_venc_encode_header() 934 dst_buf->vb2_buf.index, bs_buf.va, in mtk_venc_encode_header() 943 dst_buf->vb2_buf.planes[0].bytesused = 0; in mtk_venc_encode_header() 951 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp; in mtk_venc_encode_header() 958 dst_buf->vb2_buf.planes[0].bytesused = enc_result.bs_size; in mtk_venc_encode_header() [all …]
|
| /Linux-v5.10/drivers/staging/media/meson/vdec/ |
| D | vdec_helpers.c | 200 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() 279 vbuf->vb2_buf.planes[0].bytesused = output_size; in dst_buf_done() 280 vbuf->vb2_buf.planes[1].bytesused = output_size / 2; in dst_buf_done() 283 vbuf->vb2_buf.planes[0].bytesused = output_size; in dst_buf_done() 284 vbuf->vb2_buf.planes[1].bytesused = output_size / 4; in dst_buf_done() 285 vbuf->vb2_buf.planes[2].bytesused = output_size / 4; in dst_buf_done() 289 vbuf->vb2_buf.timestamp = timestamp; in dst_buf_done() 311 vbuf->vb2_buf.index, timestamp, flags); in dst_buf_done() [all …]
|
| D | codec_hevc_common.c | 72 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-v5.10/drivers/media/usb/pwc/ |
| D | pwc-uncompress.c | 31 image = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0); in pwc_decompress() 46 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, in pwc_decompress() 51 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, in pwc_decompress()
|
| /Linux-v5.10/drivers/media/test-drivers/vimc/ |
| D | vimc-capture.c | 234 vb2_buffer_done(&vbuf->vb2.vb2_buf, state); in vimc_cap_return_all_buffers() 282 static void vimc_cap_buf_queue(struct vb2_buffer *vb2_buf) in vimc_cap_buf_queue() argument 284 struct vimc_cap_device *vcap = vb2_get_drv_priv(vb2_buf->vb2_queue); in vimc_cap_buf_queue() 285 struct vimc_cap_buffer *buf = container_of(vb2_buf, in vimc_cap_buf_queue() 287 vb2.vb2_buf); in vimc_cap_buf_queue() 381 vimc_buf->vb2.vb2_buf.timestamp = ktime_get_ns(); in vimc_cap_process_frame() 385 vbuf = vb2_plane_vaddr(&vimc_buf->vb2.vb2_buf, 0); in vimc_cap_process_frame() 390 vb2_set_plane_payload(&vimc_buf->vb2.vb2_buf, 0, in vimc_cap_process_frame() 392 vb2_buffer_done(&vimc_buf->vb2.vb2_buf, VB2_BUF_STATE_DONE); in vimc_cap_process_frame()
|
| /Linux-v5.10/drivers/staging/media/hantro/ |
| D | hantro_h1_jpeg_enc.c | 104 jpeg_ctx.buffer = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in hantro_h1_jpeg_enc_run() 115 hantro_h1_jpeg_enc_set_buffers(vpu, ctx, &src_buf->vb2_buf); in hantro_h1_jpeg_enc_run() 151 memcpy(vb2_plane_vaddr(&dst_buf->vb2_buf, 0) + in hantro_jpeg_enc_done() 154 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, in hantro_jpeg_enc_done()
|
| D | hantro_g1_vp8_dec.c | 247 src_dma = vb2_dma_contig_plane_dma_addr(&vb2_src->vb2_buf, 0); in cfg_parts() 381 ref = vb2_dma_contig_plane_dma_addr(&vb2_dst->vb2_buf, 0); in cfg_ref() 387 ref = vb2_dma_contig_plane_dma_addr(&vb2_dst->vb2_buf, 0); in cfg_ref() 395 ref = vb2_dma_contig_plane_dma_addr(&vb2_dst->vb2_buf, 0); in cfg_ref() 425 dst_dma = hantro_get_dec_buf_addr(ctx, &vb2_dst->vb2_buf); in cfg_buffers()
|
| /Linux-v5.10/drivers/usb/gadget/function/ |
| D | uvc_queue.c | 243 vb2_buffer_done(&buf->buf.vb2_buf, VB2_BUF_STATE_ERROR); in uvcg_queue_cancel() 315 vb2_set_plane_payload(&buf->buf.vb2_buf, 0, 0); in uvcg_queue_next_buffer() 328 buf->buf.vb2_buf.timestamp = ktime_get_ns(); in uvcg_queue_next_buffer() 330 vb2_set_plane_payload(&buf->buf.vb2_buf, 0, buf->bytesused); in uvcg_queue_next_buffer() 331 vb2_buffer_done(&buf->buf.vb2_buf, VB2_BUF_STATE_DONE); in uvcg_queue_next_buffer()
|
| /Linux-v5.10/drivers/media/platform/s5p-mfc/ |
| D | s5p_mfc.c | 137 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() 230 dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted() 231 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 0, 0); in s5p_mfc_handle_frame_all_extracted() 232 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 1, 0); in s5p_mfc_handle_frame_all_extracted() 245 ctx->dec_dst_flag &= ~(1 << dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted() 246 vb2_buffer_done(&dst_buf->b->vb2_buf, VB2_BUF_STATE_DONE); in s5p_mfc_handle_frame_all_extracted() 267 u32 addr = (u32)vb2_dma_contig_plane_dma_addr(&dst_buf->b->vb2_buf, 0); in s5p_mfc_handle_frame_copy_time() 271 dst_buf->b->vb2_buf.timestamp = in s5p_mfc_handle_frame_copy_time() [all …]
|
| D | s5p_mfc_opr_v5.c | 1182 vb2_dma_contig_plane_dma_addr(&temp_vb->b->vb2_buf, 0), in s5p_mfc_run_dec_frame() 1183 ctx->consumed_stream, temp_vb->b->vb2_buf.planes[0].bytesused); in s5p_mfc_run_dec_frame() 1185 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() 1238 dst_addr = vb2_dma_contig_plane_dma_addr(&dst_mb->b->vb2_buf, 0); 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() [all …]
|
| /Linux-v5.10/drivers/media/usb/go7007/ |
| D | go7007-driver.c | 381 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 vb->vb.vb2_buf.planes[0].bytesused = 0; in go7007_parse_video_stream() 600 vb->vb.vb2_buf.planes[0].bytesused; in go7007_parse_video_stream()
|
| /Linux-v5.10/drivers/media/usb/uvc/ |
| D | uvc_queue.c | 64 vb2_buffer_done(&buf->buf.vb2_buf, vb2_state); in uvc_queue_return_buffers() 471 vb2_set_plane_payload(&buf->buf.vb2_buf, 0, 0); in uvc_queue_buffer_requeue() 473 uvc_buffer_queue(&buf->buf.vb2_buf); in uvc_queue_buffer_requeue() 479 struct vb2_buffer *vb = &buf->buf.vb2_buf; in uvc_queue_buffer_complete() 488 vb2_set_plane_payload(&buf->buf.vb2_buf, 0, buf->bytesused); in uvc_queue_buffer_complete() 489 vb2_buffer_done(&buf->buf.vb2_buf, VB2_BUF_STATE_DONE); in uvc_queue_buffer_complete()
|
| /Linux-v5.10/drivers/media/pci/cx88/ |
| D | cx88-vbi.c | 108 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-v5.10/drivers/media/platform/coda/ |
| D | coda-jpeg.c | 1081 if (vb2_get_plane_payload(&src_buf->vb2_buf, 0) == 0) in coda9_jpeg_prepare_encode() 1082 vb2_set_plane_payload(&src_buf->vb2_buf, 0, in coda9_jpeg_prepare_encode() 1083 vb2_plane_size(&src_buf->vb2_buf, 0)); in coda9_jpeg_prepare_encode() 1094 start_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in coda9_jpeg_prepare_encode() 1095 end_addr = start_addr + vb2_plane_size(&dst_buf->vb2_buf, 0); in coda9_jpeg_prepare_encode() 1112 vb2_plane_size(&dst_buf->vb2_buf, 0), in coda9_jpeg_prepare_encode() 1113 vb2_plane_vaddr(&dst_buf->vb2_buf, 0)); in coda9_jpeg_prepare_encode() 1227 start_ptr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in coda9_jpeg_finish_encode() 1229 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, wr_ptr - start_ptr); in coda9_jpeg_finish_encode() 1319 if (vb2_get_plane_payload(&src_buf->vb2_buf, 0) == 0) in coda9_jpeg_prepare_decode() [all …]
|
| /Linux-v5.10/drivers/media/usb/cx231xx/ |
| D | cx231xx-vbi.c | 192 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() 485 buf->vb.vb2_buf.timestamp = ktime_get_ns(); in vbi_buffer_filled() 490 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE); in vbi_buffer_filled() 583 outp = vb2_plane_vaddr(&(*buf)->vb.vb2_buf, 0); in get_next_vbi_buf() 584 memset(outp, 0, vb2_plane_size(&(*buf)->vb.vb2_buf, 0)); in get_next_vbi_buf() 625 p_out_buffer = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in cx231xx_do_vbi_copy()
|
| /Linux-v5.10/drivers/media/platform/ti-vpe/ |
| D | cal-video.c | 555 vb.vb2_buf); in cal_buffer_prepare() 569 vb2_set_plane_payload(&buf->vb.vb2_buf, 0, size); in cal_buffer_prepare() 577 vb.vb2_buf); in cal_buffer_queue() 609 addr = vb2_dma_contig_plane_dma_addr(&ctx->cur_frm->vb.vb2_buf, 0); in cal_start_streaming() 635 vb2_buffer_done(&ctx->cur_frm->vb.vb2_buf, VB2_BUF_STATE_QUEUED); in cal_start_streaming() 640 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_QUEUED); in cal_start_streaming() 678 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in cal_stop_streaming() 682 vb2_buffer_done(&ctx->cur_frm->vb.vb2_buf, VB2_BUF_STATE_ERROR); in cal_stop_streaming() 684 vb2_buffer_done(&ctx->cur_frm->vb.vb2_buf, VB2_BUF_STATE_ERROR); in cal_stop_streaming() 685 vb2_buffer_done(&ctx->next_frm->vb.vb2_buf, in cal_stop_streaming()
|
| /Linux-v5.10/drivers/media/pci/tw686x/ |
| D | tw686x-video.c | 55 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() 188 struct sg_table *vbuf = vb2_dma_sg_plane_desc(&buf->vb.vb2_buf, 0); in tw686x_sg_desc_fill() 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() [all …]
|
| /Linux-v5.10/drivers/media/platform/sunxi/sun4i-csi/ |
| D | sun4i_dma.c | 136 buf_addr = vb2_dma_contig_plane_dma_addr(&v_buf->vb2_buf, in sun4i_csi_buffer_fill_slot() 172 v_buf->vb2_buf.timestamp = ktime_get_ns(); in sun4i_csi_buffer_mark_done() 173 vb2_buffer_done(&v_buf->vb2_buf, VB2_BUF_STATE_DONE); in sun4i_csi_buffer_mark_done() 211 vb2_buffer_done(&buf->vb.vb2_buf, state); in return_all_buffers() 221 vb2_buffer_done(&v_buf->vb2_buf, state); in return_all_buffers()
|