Home
last modified time | relevance | path

Searched refs:vb2 (Results 1 – 25 of 28) sorted by relevance

12

/drivers/media/pci/saa7134/
A Dsaa7134-vbi.c73 struct saa7134_dmaqueue *dmaq = buf->vb2.vb2_buf.vb2_queue->drv_priv; in buffer_activate()
105 static int buffer_prepare(struct vb2_buffer *vb2) in buffer_prepare() argument
107 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in buffer_prepare()
109 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in buffer_prepare()
110 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in buffer_prepare()
111 struct sg_table *dma = vb2_dma_sg_plane_desc(vb2, 0); in buffer_prepare()
119 if (vb2_plane_size(vb2, 0) < size) in buffer_prepare()
122 vb2_set_plane_payload(vb2, 0, size); in buffer_prepare()
148 static int buffer_init(struct vb2_buffer *vb2) in buffer_init() argument
150 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in buffer_init()
[all …]
A Dsaa7134-ts.c67 int saa7134_ts_buffer_init(struct vb2_buffer *vb2) in saa7134_ts_buffer_init() argument
69 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in saa7134_ts_buffer_init()
70 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in saa7134_ts_buffer_init()
80 int saa7134_ts_buffer_prepare(struct vb2_buffer *vb2) in saa7134_ts_buffer_prepare() argument
82 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in saa7134_ts_buffer_prepare()
83 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in saa7134_ts_buffer_prepare()
86 struct sg_table *dma = vb2_dma_sg_plane_desc(vb2, 0); in saa7134_ts_buffer_prepare()
95 if (vb2_plane_size(vb2, 0) < size) in saa7134_ts_buffer_prepare()
98 vb2_set_plane_payload(vb2, 0, size); in saa7134_ts_buffer_prepare()
139 vb2_buffer_done(&buf->vb2.vb2_buf, in saa7134_ts_start_streaming()
[all …]
A Dsaa7134-video.c715 static int buffer_init(struct vb2_buffer *vb2) in buffer_init() argument
717 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in buffer_init()
718 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in buffer_init()
726 static int buffer_prepare(struct vb2_buffer *vb2) in buffer_prepare() argument
728 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in buffer_prepare()
730 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in buffer_prepare()
732 struct sg_table *dma = vb2_dma_sg_plane_desc(vb2, 0); in buffer_prepare()
740 if (vb2_plane_size(vb2, 0) < size) in buffer_prepare()
743 vb2_set_plane_payload(vb2, 0, size); in buffer_prepare()
804 vb2_buffer_done(&buf->vb2.vb2_buf, in saa7134_vb2_start_streaming()
[all …]
A Dsaa7134-core.c201 return saa7134_buffer_pages(vb2_plane_size(&buf->vb2.vb2_buf, 0)) in saa7134_buffer_startpage()
202 * buf->vb2.vb2_buf.index; in saa7134_buffer_startpage()
208 struct sg_table *dma = vb2_dma_sg_plane_desc(&buf->vb2.vb2_buf, 0); in saa7134_buffer_base()
295 q->curr->vb2.vb2_buf.timestamp = ktime_get_ns(); in saa7134_buffer_finish()
296 q->curr->vb2.sequence = q->seq_nr++; in saa7134_buffer_finish()
297 vb2_buffer_done(&q->curr->vb2.vb2_buf, state); in saa7134_buffer_finish()
361 vb2_buffer_done(&tmp->vb2.vb2_buf, in saa7134_stop_streaming()
A Dsaa7134.h465 struct vb2_v4l2_buffer vb2; member
830 int saa7134_ts_buffer_init(struct vb2_buffer *vb2);
831 int saa7134_ts_buffer_prepare(struct vb2_buffer *vb2);
/drivers/media/platform/qcom/iris/
A Diris_vb2.c103 int iris_vb2_buf_init(struct vb2_buffer *vb2) in iris_vb2_buf_init() argument
105 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in iris_vb2_buf_init()
108 buf->device_addr = vb2_dma_contig_plane_dma_addr(vb2, 0); in iris_vb2_buf_init()
282 void iris_vb2_buf_queue(struct vb2_buffer *vb2) in iris_vb2_buf_queue() argument
285 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in iris_vb2_buf_queue()
290 inst = vb2_get_drv_priv(vb2->vb2_queue); in iris_vb2_buf_queue()
303 if (!vb2->planes[0].bytesused && V4L2_TYPE_IS_OUTPUT(vb2->type)) { in iris_vb2_buf_queue()
308 if (!inst->last_buffer_dequeued && V4L2_TYPE_IS_CAPTURE(vb2->vb2_queue->type)) { in iris_vb2_buf_queue()
316 vb2_set_plane_payload(vb2, 0, 0); in iris_vb2_buf_queue()
A Diris_vdec.c554 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in iris_vdec_vb2_buffer_to_driver()
556 buf->type = iris_v4l2_type_to_driver(vb2->type); in iris_vdec_vb2_buffer_to_driver()
557 buf->index = vb2->index; in iris_vdec_vb2_buffer_to_driver()
558 buf->fd = vb2->planes[0].m.fd; in iris_vdec_vb2_buffer_to_driver()
559 buf->buffer_size = vb2->planes[0].length; in iris_vdec_vb2_buffer_to_driver()
560 buf->data_offset = vb2->planes[0].data_offset; in iris_vdec_vb2_buffer_to_driver()
561 buf->data_size = vb2->planes[0].bytesused - vb2->planes[0].data_offset; in iris_vdec_vb2_buffer_to_driver()
563 buf->timestamp = vb2->timestamp; in iris_vdec_vb2_buffer_to_driver()
592 struct vb2_buffer *vb2 = &vbuf->vb2_buf; in iris_vdec_qbuf() local
596 ret = iris_vdec_vb2_buffer_to_driver(vb2, buf); in iris_vdec_qbuf()
[all …]
A Diris_vb2.h9 int iris_vb2_buf_init(struct vb2_buffer *vb2);
17 void iris_vb2_buf_queue(struct vb2_buffer *vb2);
A Diris_buffer.c597 struct vb2_buffer *vb2; in iris_vb2_buffer_done() local
615 vb2 = &vbuf->vb2_buf; in iris_vb2_buffer_done()
619 vb2_set_plane_payload(vb2, 0, 0); in iris_vb2_buffer_done()
620 vb2->timestamp = 0; in iris_vb2_buffer_done()
628 vb2_set_plane_payload(vb2, 0, buf->data_size); in iris_vb2_buffer_done()
646 vb2->timestamp = buf->timestamp; in iris_vb2_buffer_done()
A Diris_buffer.h13 #define to_iris_buffer(ptr) container_of(ptr, struct iris_buffer, vb2)
81 struct vb2_v4l2_buffer vb2; member
/drivers/media/dvb-core/
A Ddvb_vb2.c355 struct vb2_buffer *vb2 = vb2_get_buffer(q, b->index); in dvb_vb2_querybuf() local
357 if (!vb2) { in dvb_vb2_querybuf()
361 vb2_core_querybuf(&ctx->vb_q, vb2, b); in dvb_vb2_querybuf()
369 struct vb2_buffer *vb2 = vb2_get_buffer(q, exp->index); in dvb_vb2_expbuf() local
372 if (!vb2) { in dvb_vb2_expbuf()
377 ret = vb2_core_expbuf(&ctx->vb_q, &exp->fd, q->type, vb2, in dvb_vb2_expbuf()
392 struct vb2_buffer *vb2 = vb2_get_buffer(q, b->index); in dvb_vb2_qbuf() local
395 if (!vb2) { in dvb_vb2_qbuf()
399 ret = vb2_core_qbuf(&ctx->vb_q, vb2, b, NULL); in dvb_vb2_qbuf()
A DMakefile7 dvb-vb2-$(CONFIG_DVB_MMAP) := dvb_vb2.o
11 $(dvb-net-y) dvb_ringbuffer.o $(dvb-vb2-y)
/drivers/media/test-drivers/vimc/
A Dvimc-capture.c51 struct vb2_v4l2_buffer vb2; member
236 vb2_buffer_done(&vbuf->vb2.vb2_buf, state); in vimc_capture_return_all_buffers()
288 vb2.vb2_buf); in vimc_capture_buf_queue()
376 vimc_buf->vb2.vb2_buf.timestamp = ktime_get_ns(); in vimc_capture_process_frame()
377 vimc_buf->vb2.sequence = vcapture->sequence++; in vimc_capture_process_frame()
378 vimc_buf->vb2.field = vcapture->format.field; in vimc_capture_process_frame()
380 vbuf = vb2_plane_vaddr(&vimc_buf->vb2.vb2_buf, 0); in vimc_capture_process_frame()
385 vb2_set_plane_payload(&vimc_buf->vb2.vb2_buf, 0, in vimc_capture_process_frame()
387 vb2_buffer_done(&vimc_buf->vb2.vb2_buf, VB2_BUF_STATE_DONE); in vimc_capture_process_frame()
/drivers/media/test-drivers/visl/
A Dvisl-dec.c413 struct vb2_buffer *vb2; in visl_tpg_fill() local
416 vb2 = vb2_get_buffer(out_q, i); in visl_tpg_fill()
417 if (!vb2) in visl_tpg_fill()
420 q_status = visl_get_vb2_state(vb2->state); in visl_tpg_fill()
424 to_vb2_v4l2_buffer(vb2)->request_fd); in visl_tpg_fill()
474 struct vb2_buffer *vb2; in visl_tpg_fill() local
477 vb2 = vb2_get_buffer(cap_q, i); in visl_tpg_fill()
478 if (!vb2) in visl_tpg_fill()
485 vb2->index, q_status, in visl_tpg_fill()
486 vb2->timestamp, in visl_tpg_fill()
[all …]
/drivers/media/platform/nxp/imx8-isi/
A Dimx8-isi-video.c843 dma_addrs[i] = vb2_dma_contig_plane_dma_addr(vb2, i); in mxc_isi_video_buffer_init()
864 struct vb2_v4l2_buffer *v4l2_buf = to_vb2_v4l2_buffer(vb2); in mxc_isi_video_buffer_prepare()
870 if (vb2_plane_size(vb2, i) < size) { in mxc_isi_video_buffer_prepare()
872 vb2_plane_size(vb2, i), size); in mxc_isi_video_buffer_prepare()
876 vb2_set_plane_payload(vb2, i, size); in mxc_isi_video_buffer_prepare()
896 static int mxc_isi_vb2_buffer_init(struct vb2_buffer *vb2) in mxc_isi_vb2_buffer_init() argument
901 mxc_isi_video_buffer_init(vb2, buf->dma_addrs, video->fmtinfo, in mxc_isi_vb2_buffer_init()
907 static int mxc_isi_vb2_buffer_prepare(struct vb2_buffer *vb2) in mxc_isi_vb2_buffer_prepare() argument
911 return mxc_isi_video_buffer_prepare(video->pipe->isi, vb2, in mxc_isi_vb2_buffer_prepare()
915 static void mxc_isi_vb2_buffer_queue(struct vb2_buffer *vb2) in mxc_isi_vb2_buffer_queue() argument
[all …]
A Dimx8-isi-m2m.c206 static int mxc_isi_m2m_vb2_buffer_init(struct vb2_buffer *vb2) in mxc_isi_m2m_vb2_buffer_init() argument
208 struct vb2_queue *vq = vb2->vb2_queue; in mxc_isi_m2m_vb2_buffer_init()
209 struct mxc_isi_m2m_buffer *buf = to_isi_m2m_buffer(to_vb2_v4l2_buffer(vb2)); in mxc_isi_m2m_vb2_buffer_init()
210 struct mxc_isi_m2m_ctx *ctx = vb2_get_drv_priv(vb2->vb2_queue); in mxc_isi_m2m_vb2_buffer_init()
214 mxc_isi_video_buffer_init(vb2, buf->dma_addrs, qdata->info, in mxc_isi_m2m_vb2_buffer_init()
220 static int mxc_isi_m2m_vb2_buffer_prepare(struct vb2_buffer *vb2) in mxc_isi_m2m_vb2_buffer_prepare() argument
222 struct vb2_queue *vq = vb2->vb2_queue; in mxc_isi_m2m_vb2_buffer_prepare()
227 return mxc_isi_video_buffer_prepare(ctx->m2m->isi, vb2, qdata->info, in mxc_isi_m2m_vb2_buffer_prepare()
231 static void mxc_isi_m2m_vb2_buffer_queue(struct vb2_buffer *vb2) in mxc_isi_m2m_vb2_buffer_queue() argument
233 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in mxc_isi_m2m_vb2_buffer_queue()
[all …]
A Dimx8-isi-core.h336 void mxc_isi_video_buffer_init(struct vb2_buffer *vb2, dma_addr_t dma_addrs[3],
339 int mxc_isi_video_buffer_prepare(struct mxc_isi_dev *isi, struct vb2_buffer *vb2,
/drivers/staging/media/atomisp/pci/
A Dia_css_frame_public.h182 #define vb_to_frame(vb2) \ argument
183 container_of(to_vb2_v4l2_buffer(vb2), struct ia_css_frame, vb)
/drivers/media/usb/gspca/
A Dgspca.h149 static inline struct gspca_buffer *to_gspca_buffer(struct vb2_buffer *vb2) in to_gspca_buffer() argument
151 return container_of(vb2, struct gspca_buffer, vb.vb2_buf); in to_gspca_buffer()
/drivers/media/usb/dvb-usb/
A Dcxusb-analog.c475 cxdev->vbuf->vb2.vb2_buf.timestamp = ktime_get_ns(); in cxusb_medion_v_process_auxbuf()
476 bt656->buf = vb2_plane_vaddr(&cxdev->vbuf->vb2.vb2_buf, in cxusb_medion_v_process_auxbuf()
509 vb2_set_plane_payload(&cxdev->vbuf->vb2.vb2_buf, 0, in cxusb_medion_v_process_auxbuf()
512 cxdev->vbuf->vb2.field = cxdev->field_order; in cxusb_medion_v_process_auxbuf()
513 cxdev->vbuf->vb2.sequence = cxdev->vbuf_sequence++; in cxusb_medion_v_process_auxbuf()
515 vb2_buffer_done(&cxdev->vbuf->vb2.vb2_buf, in cxusb_medion_v_process_auxbuf()
672 vb2_buffer_done(&vbuf->vb2.vb2_buf, in cxusb_medion_return_buffers()
678 vb2_buffer_done(&cxdev->vbuf->vb2.vb2_buf, in cxusb_medion_return_buffers()
944 container_of(v4l2buf, struct cxusb_medion_vbuffer, vb2); in cxusub_medion_v_buf_queue()
A Dcxusb.h155 struct vb2_v4l2_buffer vb2; member
/drivers/media/common/videobuf2/
A DMakefile6 videobuf2-common-objs += vb2-trace.o
A Dvideobuf2-v4l2.c618 struct vb2_buffer *vb2; in vb2_find_buffer() local
625 vb2 = vb2_get_buffer(q, i); in vb2_find_buffer()
627 if (!vb2) in vb2_find_buffer()
630 if (vb2->copied_timestamp && in vb2_find_buffer()
631 vb2->timestamp == timestamp) in vb2_find_buffer()
632 return vb2; in vb2_find_buffer()
/drivers/media/pci/cobalt/
A Dcobalt-driver.h204 struct cobalt_buffer *to_cobalt_buffer(struct vb2_v4l2_buffer *vb2) in to_cobalt_buffer() argument
206 return container_of(vb2, struct cobalt_buffer, vb); in to_cobalt_buffer()
/drivers/staging/vc04_services/bcm2835-camera/
A Dbcm2835-camera.c268 struct vb2_v4l2_buffer *vb2 = to_vb2_v4l2_buffer(vb); in buffer_init() local
270 container_of(vb2, struct vb2_mmal_buffer, vb); in buffer_init()
305 struct vb2_v4l2_buffer *vb2 = to_vb2_v4l2_buffer(vb); in buffer_cleanup() local
307 container_of(vb2, struct vb2_mmal_buffer, vb); in buffer_cleanup()
482 struct vb2_v4l2_buffer *vb2 = to_vb2_v4l2_buffer(vb); in buffer_queue() local
484 container_of(vb2, struct vb2_mmal_buffer, vb); in buffer_queue()
489 __func__, dev, buf, vb2->vb2_buf.index); in buffer_queue()

Completed in 58 milliseconds

12