/linux-master/drivers/media/test-drivers/vivid/ |
H A D | vivid-kthread-out.c | 86 v4l2_ctrl_request_setup(vid_out_buf->vb.vb2_buf.req_obj.req, 88 v4l2_ctrl_request_complete(vid_out_buf->vb.vb2_buf.req_obj.req, 98 vid_out_buf->vb.vb2_buf.timestamp = 100 vb2_buffer_done(&vid_out_buf->vb.vb2_buf, dev->dqbuf_error ? 103 vid_out_buf->vb.vb2_buf.index); 107 v4l2_ctrl_request_setup(vbi_out_buf->vb.vb2_buf.req_obj.req, 109 v4l2_ctrl_request_complete(vbi_out_buf->vb.vb2_buf.req_obj.req, 115 vbi_out_buf->vb.vb2_buf.timestamp = 117 vb2_buffer_done(&vbi_out_buf->vb.vb2_buf, dev->dqbuf_error ? 120 vbi_out_buf->vb.vb2_buf [all...] |
H A D | vivid-kthread-touch.c | 28 v4l2_ctrl_request_setup(tch_cap_buf->vb.vb2_buf.req_obj.req, 32 v4l2_ctrl_request_complete(tch_cap_buf->vb.vb2_buf.req_obj.req, 34 vb2_buffer_done(&tch_cap_buf->vb.vb2_buf, dev->dqbuf_error ? 37 tch_cap_buf->vb.vb2_buf.index); 39 tch_cap_buf->vb.vb2_buf.timestamp = ktime_get_ns() + dev->time_wrap_offset; 182 v4l2_ctrl_request_complete(buf->vb.vb2_buf.req_obj.req, 184 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); 186 buf->vb.vb2_buf.index);
|
H A D | vivid-kthread-cap.c | 209 return vb2_plane_vaddr(&buf->vb.vb2_buf, p); 210 vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); 219 bool blank = dev->must_blank[vid_cap_buf->vb.vb2_buf.index]; 261 voutbuf += vid_out_buf->vb.vb2_buf.planes[p].data_offset; 429 tpg_s_perc_fill_blank(tpg, dev->must_blank[buf->vb.vb2_buf.index]); 452 dev->must_blank[buf->vb.vb2_buf.index] = false; 602 v4l2_ctrl_request_setup(vid_cap_buf->vb.vb2_buf.req_obj.req, 607 vid_cap_buf->vb.vb2_buf.index); 609 v4l2_ctrl_request_complete(vid_cap_buf->vb.vb2_buf.req_obj.req, 611 vb2_buffer_done(&vid_cap_buf->vb.vb2_buf, de [all...] |
H A D | vivid-sdr-cap.c | 106 v4l2_ctrl_request_setup(sdr_cap_buf->vb.vb2_buf.req_obj.req, 108 v4l2_ctrl_request_complete(sdr_cap_buf->vb.vb2_buf.req_obj.req, 111 sdr_cap_buf->vb.vb2_buf.timestamp = 113 vb2_buffer_done(&sdr_cap_buf->vb.vb2_buf, dev->dqbuf_error ? 290 vb2_buffer_done(&buf->vb.vb2_buf, 311 v4l2_ctrl_request_complete(buf->vb.vb2_buf.req_obj.req, 313 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); 512 u8 *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); 514 unsigned long plane_size = vb2_plane_size(&buf->vb.vb2_buf, 0);
|
H A D | vivid-meta-out.c | 99 vb2_buffer_done(&buf->vb.vb2_buf, 166 struct vivid_meta_out_buf *meta = vb2_plane_vaddr(&buf->vb.vb2_buf, 0);
|
/linux-master/drivers/media/usb/pwc/ |
H A D | pwc-uncompress.c | 28 image = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0); 43 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, 48 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0,
|
/linux-master/drivers/media/platform/mediatek/vcodec/decoder/ |
H A D | mtk_vcodec_dec_stateful.c | 81 vb->vb2_buf.index, dstbuf->queued_in_vb2); 87 return &vb->vb2_buf; 134 vb->vb2_buf.index, dstbuf->queued_in_vb2); 150 vb->vb2_buf.index); 164 vb->vb2_buf.index, dstbuf->queued_in_vb2, 170 return &vb->vb2_buf; 305 pfb->base_y.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); 307 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); 310 pfb->base_c.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 1); 312 vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, [all...] |
/linux-master/drivers/media/platform/verisilicon/ |
H A D | hantro_h1_jpeg_enc.c | 119 jpeg_ctx.buffer = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); 130 hantro_h1_jpeg_enc_set_buffers(vpu, ctx, &src_buf->vb2_buf, 131 &dst_buf->vb2_buf); 164 vb2_set_plane_payload(&dst_buf->vb2_buf, 0,
|
H A D | rockchip_vpu2_hw_jpeg_enc.c | 145 jpeg_ctx.buffer = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); 159 rockchip_vpu2_jpeg_enc_set_buffers(vpu, ctx, &src_buf->vb2_buf, 160 &dst_buf->vb2_buf); 195 vb2_set_plane_payload(&dst_buf->vb2_buf, 0,
|
/linux-master/drivers/media/test-drivers/vimc/ |
H A D | vimc-capture.c | 235 vb2_buffer_done(&vbuf->vb2.vb2_buf, state); 282 static void vimc_capture_buf_queue(struct vb2_buffer *vb2_buf) argument 284 struct vimc_capture_device *vcapture = vb2_get_drv_priv(vb2_buf->vb2_queue); 285 struct vimc_capture_buffer *buf = container_of(vb2_buf, 287 vb2.vb2_buf); 381 vimc_buf->vb2.vb2_buf.timestamp = ktime_get_ns(); 385 vbuf = vb2_plane_vaddr(&vimc_buf->vb2.vb2_buf, 0); 390 vb2_set_plane_payload(&vimc_buf->vb2.vb2_buf, 0, 392 vb2_buffer_done(&vimc_buf->vb2.vb2_buf, VB2_BUF_STATE_DONE);
|
/linux-master/drivers/staging/media/sunxi/cedrus/ |
H A D | cedrus_mpeg2.c | 133 dst_luma_addr = cedrus_dst_buf_addr(ctx, &run->dst->vb2_buf, 0); 134 dst_chroma_addr = cedrus_dst_buf_addr(ctx, &run->dst->vb2_buf, 1); 143 reg = vb2_get_plane_payload(&run->src->vb2_buf, 0) * 8; 148 src_buf_addr = vb2_dma_contig_plane_dma_addr(&run->src->vb2_buf, 0); 157 reg = src_buf_addr + vb2_get_plane_payload(&run->src->vb2_buf, 0);
|
/linux-master/drivers/media/test-drivers/visl/ |
H A D | visl-dec.c | 46 u64 ts, struct vb2_buffer *vb2_buf) 50 if (tpg_verbose && vb2_buf) { 52 ts, vb2_buf->index); 78 struct vb2_buffer *vb2_buf; local 80 vb2_buf = vb2_find_buffer(cap_q, run->fwht.params->backward_ref_ts); 83 run->fwht.params->backward_ref_ts, vb2_buf); 144 struct vb2_buffer *vb2_buf; local 147 vb2_buf = vb2_find_buffer(cap_q, 149 if (tpg_verbose && vb2_buf) { 152 vb2_buf 45 visl_print_ts_idx(u8 **buf, __kernel_size_t *buflen, const char *name, u64 ts, struct vb2_buffer *vb2_buf) argument 167 struct vb2_buffer *vb2_buf; local [all...] |
H A D | visl-debugfs.c | 42 u8 *vaddr = vb2_plane_vaddr(&run->src->vb2_buf, 0); 44 size_t data_sz = vb2_get_plane_payload(&run->src->vb2_buf, 0);
|
/linux-master/drivers/staging/media/meson/vdec/ |
H A D | vdec_helpers.c | 200 ret = set_canvas_nv12m(sess, &buf->vb.vb2_buf, width, 206 ret = set_canvas_yuv420m(sess, &buf->vb.vb2_buf, width, 223 sess->fw_idx_to_vb2_idx[i++] = buf->vb.vb2_buf.index; 283 vb2_set_plane_payload(&vbuf->vb2_buf, 0, output_size); 284 vb2_set_plane_payload(&vbuf->vb2_buf, 1, output_size / 2); 287 vb2_set_plane_payload(&vbuf->vb2_buf, 0, output_size); 288 vb2_set_plane_payload(&vbuf->vb2_buf, 1, output_size / 4); 289 vb2_set_plane_payload(&vbuf->vb2_buf, 2, output_size / 4); 293 vbuf->vb2_buf.timestamp = timestamp; 315 vbuf->vb2_buf [all...] |
H A D | codec_hevc_common.c | 72 struct vb2_buffer *vb = &buf->vb.vb2_buf; 125 struct vb2_buffer *vb = &buf->vb.vb2_buf; 179 u32 idx = buf->vb.vb2_buf.index; 232 u32 idx = buf->vb.vb2_buf.index;
|
/linux-master/drivers/usb/gadget/function/ |
H A D | uvc_queue.c | 262 vb2_buffer_done(&buf->buf.vb2_buf, VB2_BUF_STATE_ERROR); 336 vb2_set_plane_payload(&buf->buf.vb2_buf, 0, 0); 337 vb2_buffer_done(&buf->buf.vb2_buf, VB2_BUF_STATE_ERROR); 343 buf->buf.vb2_buf.timestamp = ktime_get_ns(); 345 vb2_set_plane_payload(&buf->buf.vb2_buf, 0, buf->bytesused); 346 vb2_buffer_done(&buf->buf.vb2_buf, VB2_BUF_STATE_DONE);
|
/linux-master/drivers/media/pci/cx88/ |
H A D | cx88-vbi.c | 108 buf, buf->vb.vb2_buf.index); 182 buf, buf->vb.vb2_buf.index); 190 buf, buf->vb.vb2_buf.index); 221 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
|
/linux-master/drivers/media/usb/go7007/ |
H A D | go7007-driver.c | 383 if (vb && vb->vb.vb2_buf.planes[0].bytesused < GO7007_BUF_SIZE) { 384 u8 *ptr = vb2_plane_vaddr(&vb->vb.vb2_buf, 0); 386 ptr[vb->vb.vb2_buf.planes[0].bytesused++] = byte; 414 u32 *bytesused = &vb->vb.vb2_buf.planes[0].bytesused; 456 bytesused = &vb->vb.vb2_buf.planes[0].bytesused; 464 vb->vb.vb2_buf.timestamp = ktime_get_ns(); 475 vb2_buffer_done(&vb_tmp->vb.vb2_buf, VB2_BUF_STATE_DONE); 518 if (vb && vb->vb.vb2_buf.planes[0].bytesused >= 521 vb2_set_plane_payload(&vb->vb.vb2_buf, 0, 0); 602 vb->vb.vb2_buf [all...] |
/linux-master/drivers/media/platform/mediatek/vcodec/encoder/ |
H A D | mtk_vcodec_enc.c | 847 container_of(vb, struct vb2_v4l2_buffer, vb2_buf); 856 ctx->id, vb2_v4l2->vb2_buf.index, ctx->param_change); 943 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, 0); 1032 bs_buf.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); 1033 bs_buf.dma_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); 1034 bs_buf.size = (size_t)dst_buf->vb2_buf.planes[0].length; 1038 ctx->id, dst_buf->vb2_buf.index, bs_buf.va, 1046 vb2_set_plane_payload(&dst_buf->vb2_buf, 0, 0); 1054 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf [all...] |
/linux-master/drivers/media/platform/st/stm32/stm32-dcmipp/ |
H A D | dcmipp-bytecap.c | 388 vb2_buffer_done(&buf->vb.vb2_buf, state); 432 vcap->next->vb.vb2_buf.index, vcap->next, &vcap->next->addr); 548 buf->addr = vb2_dma_contig_plane_dma_addr(&buf->vb.vb2_buf, 0); 549 buf->size = vb2_plane_size(&buf->vb.vb2_buf, 0); 552 vb2_set_plane_payload(&buf->vb.vb2_buf, 0, buf->size); 561 static void dcmipp_bytecap_buf_queue(struct vb2_buffer *vb2_buf) argument 564 vb2_get_drv_priv(vb2_buf->vb2_queue); 565 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2_buf); 568 dev_dbg(vcap->dev, "Queue [%d] %p phy=%pad\n", buf->vb.vb2_buf.index, 577 buf->vb.vb2_buf [all...] |
/linux-master/drivers/media/usb/uvc/ |
H A D | uvc_queue.c | 58 vb2_buffer_done(&buf->buf.vb2_buf, vb2_state); 468 vb2_set_plane_payload(&buf->buf.vb2_buf, 0, 0); 470 uvc_buffer_queue(&buf->buf.vb2_buf); 476 struct vb2_buffer *vb = &buf->buf.vb2_buf; 485 vb2_set_plane_payload(&buf->buf.vb2_buf, 0, buf->bytesused); 486 vb2_buffer_done(&buf->buf.vb2_buf, VB2_BUF_STATE_DONE);
|
/linux-master/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc.c | 137 for (i = 0; i < b->b->vb2_buf.num_planes; i++) 138 vb2_set_plane_payload(&b->b->vb2_buf, i, 0); 139 vb2_buffer_done(&b->b->vb2_buf, VB2_BUF_STATE_ERROR); 236 dst_buf->b->vb2_buf.index); 237 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 0, 0); 238 vb2_set_plane_payload(&dst_buf->b->vb2_buf, 1, 0); 251 ctx->dec_dst_flag &= ~(1 << dst_buf->b->vb2_buf.index); 252 vb2_buffer_done(&dst_buf->b->vb2_buf, VB2_BUF_STATE_DONE); 275 u32 addr = (u32)vb2_dma_contig_plane_dma_addr(&dst_buf->b->vb2_buf, 0); 279 dst_buf->b->vb2_buf [all...] |
/linux-master/include/media/ |
H A D | videobuf2-v4l2.h | 31 * @vb2_buf: embedded struct &vb2_buffer. 45 struct vb2_buffer vb2_buf; member in struct:vb2_v4l2_buffer 63 container_of(vb, struct vb2_v4l2_buffer, vb2_buf)
|
/linux-master/drivers/media/pci/mgb4/ |
H A D | mgb4_vout.c | 51 vb2_buffer_done(&buf->vb.vb2_buf, state); 161 vb2_dma_sg_plane_desc(&buf->vb.vb2_buf, 0)); 164 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); 166 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE); 363 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); 369 vb2_dma_sg_plane_desc(&buf->vb.vb2_buf, 0)); 372 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); 374 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE);
|
/linux-master/drivers/media/pci/cx23885/ |
H A D | cx23885-vbi.c | 202 buf, buf->vb.vb2_buf.index); 213 buf, buf->vb.vb2_buf.index); 241 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
|