/Linux-v4.19/drivers/media/platform/vivid/ |
D | vivid-kthread-out.c | 86 vid_out_buf->vb.vb2_buf.timestamp = in vivid_thread_vid_out_tick() 88 vb2_buffer_done(&vid_out_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_vid_out_tick() 91 vid_out_buf->vb.vb2_buf.index); in vivid_thread_vid_out_tick() 99 vbi_out_buf->vb.vb2_buf.timestamp = in vivid_thread_vid_out_tick() 101 vb2_buffer_done(&vbi_out_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_vid_out_tick() 104 vbi_out_buf->vb.vb2_buf.index); in vivid_thread_vid_out_tick() 265 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in vivid_stop_generating_vid_out() 267 buf->vb.vb2_buf.index); in vivid_stop_generating_vid_out() 278 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in vivid_stop_generating_vid_out() 280 buf->vb.vb2_buf.index); in vivid_stop_generating_vid_out()
|
D | vivid-kthread-cap.c | 228 return vb2_plane_vaddr(&buf->vb.vb2_buf, p); in plane_vaddr() 229 vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in plane_vaddr() 238 bool blank = dev->must_blank[vid_cap_buf->vb.vb2_buf.index]; in vivid_copy_buffer() 280 voutbuf += vid_out_buf->vb.vb2_buf.planes[p].data_offset; in vivid_copy_buffer() 433 buf->vb.vb2_buf.timestamp = ktime_get_ns(); in vivid_fillbuff() 453 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() 563 buf->vb.vb2_buf.timestamp = ktime_get_ns(); in vivid_fillbuff() 564 buf->vb.vb2_buf.timestamp += dev->time_wrap_offset; in vivid_fillbuff() 610 void *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_overlay() [all …]
|
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() 99 buf->vb.vb2_buf.timestamp = ktime_get_ns() + dev->time_wrap_offset; in vivid_raw_vbi_cap_process() 107 vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_sliced_vbi_cap_process() 115 memset(vbuf, 0, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_sliced_vbi_cap_process() 123 buf->vb.vb2_buf.timestamp = ktime_get_ns() + dev->time_wrap_offset; in vivid_sliced_vbi_cap_process() 207 vb2_buffer_done(&buf->vb.vb2_buf, in vbi_cap_start_streaming()
|
D | vivid-sdr-cap.c | 106 sdr_cap_buf->vb.vb2_buf.timestamp = in vivid_thread_sdr_cap_tick() 108 vb2_buffer_done(&sdr_cap_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_sdr_cap_tick() 275 vb2_buffer_done(&buf->vb.vb2_buf, in sdr_cap_start_streaming() 296 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in sdr_cap_stop_streaming() 492 u8 *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_sdr_cap_process() 494 unsigned long plane_size = vb2_plane_size(&buf->vb.vb2_buf, 0); in vivid_sdr_cap_process()
|
D | vivid-vbi-out.c | 99 vb2_buffer_done(&buf->vb.vb2_buf, in vbi_out_start_streaming() 215 vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_sliced_vbi_out_process() 217 vb2_get_plane_payload(&buf->vb.vb2_buf, 0) / sizeof(*vbi); in vivid_sliced_vbi_out_process()
|
/Linux-v4.19/drivers/media/usb/pwc/ |
D | pwc-uncompress.c | 43 image = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0); in pwc_decompress() 58 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, in pwc_decompress() 63 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, in pwc_decompress()
|
/Linux-v4.19/drivers/media/platform/vimc/ |
D | vimc-capture.c | 236 vb2_buffer_done(&vbuf->vb2.vb2_buf, state); in vimc_cap_return_all_buffers() 286 static void vimc_cap_buf_queue(struct vb2_buffer *vb2_buf) in vimc_cap_buf_queue() argument 288 struct vimc_cap_device *vcap = vb2_get_drv_priv(vb2_buf->vb2_queue); in vimc_cap_buf_queue() 289 struct vimc_cap_buffer *buf = container_of(vb2_buf, in vimc_cap_buf_queue() 291 vb2.vb2_buf); in vimc_cap_buf_queue() 382 vimc_buf->vb2.vb2_buf.timestamp = ktime_get_ns(); in vimc_cap_process_frame() 386 vbuf = vb2_plane_vaddr(&vimc_buf->vb2.vb2_buf, 0); in vimc_cap_process_frame() 391 vb2_set_plane_payload(&vimc_buf->vb2.vb2_buf, 0, in vimc_cap_process_frame() 393 vb2_buffer_done(&vimc_buf->vb2.vb2_buf, VB2_BUF_STATE_DONE); in vimc_cap_process_frame()
|
/Linux-v4.19/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-v4.19/drivers/media/platform/s5p-mfc/ |
D | s5p_mfc.c | 141 for (i = 0; i < b->b->vb2_buf.num_planes; i++) in s5p_mfc_cleanup_queue() 142 vb2_set_plane_payload(&b->b->vb2_buf, i, 0); in s5p_mfc_cleanup_queue() 143 vb2_buffer_done(&b->b->vb2_buf, VB2_BUF_STATE_ERROR); in s5p_mfc_cleanup_queue() 234 dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted() 235 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 0, 0); in s5p_mfc_handle_frame_all_extracted() 236 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 1, 0); in s5p_mfc_handle_frame_all_extracted() 249 ctx->dec_dst_flag &= ~(1 << dst_buf->b->vb2_buf.index); in s5p_mfc_handle_frame_all_extracted() 250 vb2_buffer_done(&dst_buf->b->vb2_buf, VB2_BUF_STATE_DONE); in s5p_mfc_handle_frame_all_extracted() 271 u32 addr = (u32)vb2_dma_contig_plane_dma_addr(&dst_buf->b->vb2_buf, 0); in s5p_mfc_handle_frame_copy_time() 275 dst_buf->b->vb2_buf.timestamp = in s5p_mfc_handle_frame_copy_time() [all …]
|
D | s5p_mfc_opr_v5.c | 1185 vb2_dma_contig_plane_dma_addr(&temp_vb->b->vb2_buf, 0), in s5p_mfc_run_dec_frame() 1186 ctx->consumed_stream, temp_vb->b->vb2_buf.planes[0].bytesused); in s5p_mfc_run_dec_frame() 1188 if (temp_vb->b->vb2_buf.planes[0].bytesused == 0) { in s5p_mfc_run_dec_frame() 1222 if (src_mb->b->vb2_buf.planes[0].bytesused == 0) { in s5p_mfc_run_enc_frame() 1230 &src_mb->b->vb2_buf, 0); in s5p_mfc_run_enc_frame() 1232 &src_mb->b->vb2_buf, 1); in s5p_mfc_run_enc_frame() 1241 dst_addr = vb2_dma_contig_plane_dma_addr(&dst_mb->b->vb2_buf, 0); in s5p_mfc_run_enc_frame() 1242 dst_size = vb2_plane_size(&dst_mb->b->vb2_buf, 0); in s5p_mfc_run_enc_frame() 1246 src_mb ? src_mb->b->vb2_buf.index : -1, ctx->state); in s5p_mfc_run_enc_frame() 1261 temp_vb->b->vb2_buf.planes[0].bytesused); in s5p_mfc_run_init_dec() [all …]
|
/Linux-v4.19/drivers/media/usb/go7007/ |
D | go7007-driver.c | 389 if (vb && vb->vb.vb2_buf.planes[0].bytesused < GO7007_BUF_SIZE) { in store_byte() 390 u8 *ptr = vb2_plane_vaddr(&vb->vb.vb2_buf, 0); in store_byte() 392 ptr[vb->vb.vb2_buf.planes[0].bytesused++] = byte; in store_byte() 420 u32 *bytesused = &vb->vb.vb2_buf.planes[0].bytesused; in go7007_motion_regions() 462 bytesused = &vb->vb.vb2_buf.planes[0].bytesused; in frame_boundary() 470 vb->vb.vb2_buf.timestamp = ktime_get_ns(); in frame_boundary() 481 vb2_buffer_done(&vb_tmp->vb.vb2_buf, VB2_BUF_STATE_DONE); in frame_boundary() 524 if (vb && vb->vb.vb2_buf.planes[0].bytesused >= in go7007_parse_video_stream() 527 vb->vb.vb2_buf.planes[0].bytesused = 0; in go7007_parse_video_stream() 608 vb->vb.vb2_buf.planes[0].bytesused; in go7007_parse_video_stream()
|
/Linux-v4.19/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()
|
D | cx88-mpeg.c | 215 buf, buf->vb.vb2_buf.index); in cx8802_restart_queue() 226 struct sg_table *sgt = vb2_dma_sg_plane_desc(&buf->vb.vb2_buf, 0); in cx8802_buf_prepare() 230 if (vb2_plane_size(&buf->vb.vb2_buf, 0) < size) in cx8802_buf_prepare() 232 vb2_set_plane_payload(&buf->vb.vb2_buf, 0, size); in cx8802_buf_prepare() 262 buf, buf->vb.vb2_buf.index, __func__); in cx8802_buf_queue() 271 buf, buf->vb.vb2_buf.index, __func__); in cx8802_buf_queue() 288 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in do_cancel_buffers()
|
/Linux-v4.19/drivers/media/platform/mtk-vcodec/ |
D | mtk_vcodec_dec.c | 131 vb2_set_plane_payload(&dstbuf->vb.vb2_buf, 0, in get_display_buffer() 133 vb2_set_plane_payload(&dstbuf->vb.vb2_buf, 1, in get_display_buffer() 141 dstbuf->vb.vb2_buf.index, in get_display_buffer() 148 return &dstbuf->vb.vb2_buf; in get_display_buffer() 196 dstbuf->vb.vb2_buf.index, in get_free_buffer() 214 dstbuf->vb.vb2_buf.index); in get_free_buffer() 228 dstbuf->vb.vb2_buf.index, in get_free_buffer() 235 return &dstbuf->vb.vb2_buf; in get_free_buffer() 350 src_vb2_v4l2 = container_of(src_buf, struct vb2_v4l2_buffer, vb2_buf); in mtk_vdec_worker() 353 dst_vb2_v4l2 = container_of(dst_buf, struct vb2_v4l2_buffer, vb2_buf); in mtk_vdec_worker() [all …]
|
/Linux-v4.19/drivers/staging/media/davinci_vpfe/ |
D | vpfe_video.c | 447 video->next_frm->vb.vb2_buf.state = VB2_BUF_STATE_ACTIVE; in vpfe_video_get_next_buffer() 448 return vb2_dma_contig_plane_dma_addr(&video->next_frm->vb.vb2_buf, 0); in vpfe_video_get_next_buffer() 467 video->next_frm->vb.vb2_buf.state = VB2_BUF_STATE_ACTIVE; in vpfe_video_schedule_next_buffer() 468 addr = vb2_dma_contig_plane_dma_addr(&video->next_frm->vb.vb2_buf, 0); in vpfe_video_schedule_next_buffer() 479 addr = vb2_dma_contig_plane_dma_addr(&video->cur_frm->vb.vb2_buf, 0); in vpfe_video_schedule_bottom_field() 489 video->cur_frm->vb.vb2_buf.timestamp = ktime_get_ns(); in vpfe_video_process_buffer_complete() 490 vb2_buffer_done(&video->cur_frm->vb.vb2_buf, VB2_BUF_STATE_DONE); in vpfe_video_process_buffer_complete() 1224 video->cur_frm->vb.vb2_buf.state = VB2_BUF_STATE_ACTIVE; in vpfe_start_streaming() 1227 addr = vb2_dma_contig_plane_dma_addr(&video->cur_frm->vb.vb2_buf, 0); in vpfe_start_streaming() 1235 vb2_buffer_done(&video->cur_frm->vb.vb2_buf, in vpfe_start_streaming() [all …]
|
/Linux-v4.19/drivers/media/pci/tw686x/ |
D | tw686x-video.c | 59 struct vb2_buffer *vb2_buf; in tw686x_buf_done() local 66 vb2_buf = &vb->vb2_buf; in tw686x_buf_done() 69 memcpy(vb2_plane_vaddr(vb2_buf, 0), desc->virt, in tw686x_buf_done() 71 vb2_buf->timestamp = ktime_get_ns(); in tw686x_buf_done() 72 vb2_buffer_done(vb2_buf, VB2_BUF_STATE_DONE); in tw686x_buf_done() 171 phys = vb2_dma_contig_plane_dma_addr(&buf->vb.vb2_buf, 0); in tw686x_contig_buf_refill() 174 buf->vb.vb2_buf.state = VB2_BUF_STATE_ACTIVE; in tw686x_contig_buf_refill() 192 struct sg_table *vbuf = vb2_dma_sg_plane_desc(&buf->vb.vb2_buf, 0); in tw686x_sg_desc_fill() 246 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in tw686x_sg_buf_refill() 250 buf->vb.vb2_buf.state = VB2_BUF_STATE_ACTIVE; in tw686x_sg_buf_refill() [all …]
|
/Linux-v4.19/drivers/media/platform/coda/ |
D | coda-bit.c | 205 u32 src_size = vb2_get_plane_payload(&src_buf->vb2_buf, 0); in coda_bitstream_queue() 209 vb2_plane_vaddr(&src_buf->vb2_buf, 0), src_size); in coda_bitstream_queue() 221 unsigned long payload = vb2_get_plane_payload(&src_buf->vb2_buf, 0); in coda_bitstream_try_queue() 228 if (vb2_plane_vaddr(&src_buf->vb2_buf, 0) == NULL) { in coda_bitstream_try_queue() 276 !coda_jpeg_check_buffer(ctx, &src_buf->vb2_buf)) { in coda_fill_bitstream() 295 if (!vb2_get_plane_payload(&src_buf->vb2_buf, 0)) { in coda_fill_bitstream() 316 meta->timestamp = src_buf->vb2_buf.timestamp; in coda_fill_bitstream() 537 struct vb2_buffer *vb = &buf->vb2_buf; in coda_encode_header() 895 bitstream_buf = vb2_dma_contig_plane_dma_addr(&buf->vb2_buf, 0); in coda_start_encoding() 1343 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0) + in coda_prepare_encode() [all …]
|
/Linux-v4.19/include/media/ |
D | videobuf2-v4l2.h | 40 struct vb2_buffer vb2_buf; member 52 container_of(vb, struct vb2_v4l2_buffer, vb2_buf)
|
/Linux-v4.19/drivers/media/i2c/ |
D | video-i2c.c | 271 struct vb2_buffer *vb2_buf = &vid_cap_buf->vb.vb2_buf; in video_i2c_thread_vid_cap() local 272 void *vbuf = vb2_plane_vaddr(vb2_buf, 0); in video_i2c_thread_vid_cap() 276 vb2_buf->timestamp = ktime_get_ns(); in video_i2c_thread_vid_cap() 278 vb2_buffer_done(vb2_buf, ret ? in video_i2c_thread_vid_cap() 302 vb2_buffer_done(&buf->vb.vb2_buf, state); in video_i2c_del_list()
|
/Linux-v4.19/drivers/media/platform/davinci/ |
D | vpbe_display.c | 80 layer->cur_frm->vb.vb2_buf.timestamp = ktime_get_ns(); in vpbe_isr_even_field() 81 vb2_buffer_done(&layer->cur_frm->vb.vb2_buf, VB2_BUF_STATE_DONE); in vpbe_isr_even_field() 110 layer->next_frm->vb.vb2_buf.state = VB2_BUF_STATE_ACTIVE; in vpbe_isr_odd_field() 111 addr = vb2_dma_contig_plane_dma_addr(&layer->next_frm->vb.vb2_buf, 0); in vpbe_isr_odd_field() 296 layer->cur_frm->vb.vb2_buf.state = VB2_BUF_STATE_ACTIVE; in vpbe_start_streaming() 305 vb2_buffer_done(&layer->cur_frm->vb.vb2_buf, in vpbe_start_streaming() 309 vb2_buffer_done(&buf->vb.vb2_buf, in vpbe_start_streaming() 340 vb2_buffer_done(&layer->cur_frm->vb.vb2_buf, in vpbe_stop_streaming() 344 vb2_buffer_done(&layer->cur_frm->vb.vb2_buf, in vpbe_stop_streaming() 347 vb2_buffer_done(&layer->next_frm->vb.vb2_buf, in vpbe_stop_streaming() [all …]
|
D | vpif_display.c | 205 addr = vb2_dma_contig_plane_dma_addr(&common->cur_frm->vb.vb2_buf, 0); in vpif_start_streaming() 237 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_QUEUED); in vpif_start_streaming() 272 vb2_buffer_done(&common->cur_frm->vb.vb2_buf, in vpif_stop_streaming() 276 vb2_buffer_done(&common->cur_frm->vb.vb2_buf, in vpif_stop_streaming() 279 vb2_buffer_done(&common->next_frm->vb.vb2_buf, in vpif_stop_streaming() 287 vb2_buffer_done(&common->next_frm->vb.vb2_buf, in vpif_stop_streaming() 316 addr = vb2_dma_contig_plane_dma_addr(&common->next_frm->vb.vb2_buf, 0); in process_progressive_mode() 334 common->cur_frm->vb.vb2_buf.timestamp = ktime_get_ns(); in process_interlaced_mode() 336 vb2_buffer_done(&common->cur_frm->vb.vb2_buf, in process_interlaced_mode() 390 common->cur_frm->vb.vb2_buf.timestamp = in vpif_channel_isr() [all …]
|
/Linux-v4.19/drivers/media/pci/cx23885/ |
D | cx23885-vbi.c | 212 buf, buf->vb.vb2_buf.index); in buffer_queue() 223 buf, buf->vb.vb2_buf.index); in buffer_queue() 251 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in cx23885_stop_streaming()
|
/Linux-v4.19/drivers/media/usb/uvc/ |
D | uvc_queue.c | 69 vb2_buffer_done(&buf->buf.vb2_buf, vb2_state); in uvc_queue_return_buffers() 442 vb2_set_plane_payload(&buf->buf.vb2_buf, 0, 0); in uvc_queue_next_buffer() 456 vb2_set_plane_payload(&buf->buf.vb2_buf, 0, buf->bytesused); in uvc_queue_next_buffer() 457 vb2_buffer_done(&buf->buf.vb2_buf, VB2_BUF_STATE_DONE); in uvc_queue_next_buffer()
|
/Linux-v4.19/drivers/media/platform/xilinx/ |
D | xilinx-dma.c | 313 buf->buf.vb2_buf.timestamp = ktime_get_ns(); in xvip_dma_complete() 314 vb2_set_plane_payload(&buf->buf.vb2_buf, 0, dma->format.sizeimage); in xvip_dma_complete() 315 vb2_buffer_done(&buf->buf.vb2_buf, VB2_BUF_STATE_DONE); in xvip_dma_complete() 377 vb2_buffer_done(&buf->buf.vb2_buf, VB2_BUF_STATE_ERROR); in xvip_dma_buffer_queue() 444 vb2_buffer_done(&buf->buf.vb2_buf, VB2_BUF_STATE_QUEUED); in xvip_dma_start_streaming() 471 vb2_buffer_done(&buf->buf.vb2_buf, VB2_BUF_STATE_ERROR); in xvip_dma_stop_streaming()
|
/Linux-v4.19/drivers/media/usb/stk1160/ |
D | stk1160-v4l.c | 711 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in buffer_queue() 724 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in buffer_queue() 776 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in stk1160_clear_queue() 778 buf, buf->vb.vb2_buf.index); in stk1160_clear_queue() 786 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in stk1160_clear_queue() 788 buf, buf->vb.vb2_buf.index); in stk1160_clear_queue()
|