Searched refs:vb2 (Results 1 - 25 of 26) sorted by relevance

12

/linux-master/drivers/media/common/videobuf2/
H A Dvb2-trace.c5 #include <trace/events/vb2.h>
H A DMakefile6 videobuf2-common-objs += vb2-trace.o
H A Dvideobuf2-v4l2.c42 pr_info("vb2-v4l2: [%p] %s: " fmt, \
271 * In vb2 we use our internal V4l2_planes struct for
429 * to lock access to the vb2 queue, so check that there is a lock
618 struct vb2_buffer *vb2; local
625 vb2 = vb2_get_buffer(q, i);
627 if (!vb2)
630 if (vb2->copied_timestamp &&
631 vb2->timestamp == timestamp)
632 return vb2;
640 * @q: vb2 queu
[all...]
H A Dvideobuf2-core.c32 #include <trace/events/vb2.h>
442 * __vb2_queue_alloc() - allocate vb2 buffer structures and (for MMAP type)
465 /* Allocate vb2 buffer structures */
650 /* Free vb2 buffers */
1659 * buffers back to vb2 in state QUEUED. Check if that happened and if
1688 * should be returned to vb2 in start_streaming().
1695 * correctly return them to vb2.
2051 /* Remove from vb2 queue */
2080 * userspace from vb2's queue. Returns to state after reqbufs.
2100 * to vb2 i
2809 struct vb2_buffer *vb2 = vb2_get_buffer(q, i); local
[all...]
/linux-master/drivers/media/dvb-core/
H A DMakefile7 dvb-vb2-$(CONFIG_DVB_MMAP) := dvb_vb2.o
11 $(dvb-net-y) dvb_ringbuffer.o $(dvb-vb2-y)
H A Ddvb_vb2.c3 * dvb-vb2.c - dvb-vb2
26 pr_info("vb2: %s: " fmt, __func__, ## arg); \
355 struct vb2_buffer *vb2 = vb2_get_buffer(q, b->index); local
357 if (!vb2) {
361 vb2_core_querybuf(&ctx->vb_q, vb2, b);
386 struct vb2_buffer *vb2 = vb2_get_buffer(q, b->index); local
389 if (!vb2) {
393 ret = vb2_core_qbuf(&ctx->vb_q, vb2, b, NULL);
/linux-master/drivers/media/pci/saa7134/
H A Dsaa7134-vbi.c73 struct saa7134_dmaqueue *dmaq = buf->vb2.vb2_buf.vb2_queue->drv_priv;
105 static int buffer_prepare(struct vb2_buffer *vb2) argument
107 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv;
109 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2);
110 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2);
111 struct sg_table *dma = vb2_dma_sg_plane_desc(vb2, 0);
119 if (vb2_plane_size(vb2, 0) < size)
122 vb2_set_plane_payload(vb2, 0, size);
148 static int buffer_init(struct vb2_buffer *vb2) argument
150 struct saa7134_dmaqueue *dmaq = vb2
[all...]
H A Dsaa7134-ts.c67 int saa7134_ts_buffer_init(struct vb2_buffer *vb2) argument
69 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2);
70 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv;
71 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2);
80 int saa7134_ts_buffer_prepare(struct vb2_buffer *vb2) argument
82 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2);
83 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv;
85 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2);
86 struct sg_table *dma = vb2_dma_sg_plane_desc(vb2, 0);
95 if (vb2_plane_size(vb2,
[all...]
H A Dsaa7134-video.c637 struct saa7134_dmaqueue *dmaq = buf->vb2.vb2_buf.vb2_queue->drv_priv;
715 static int buffer_init(struct vb2_buffer *vb2) argument
717 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv;
718 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2);
719 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2);
726 static int buffer_prepare(struct vb2_buffer *vb2) argument
728 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv;
730 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2);
731 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2);
732 struct sg_table *dma = vb2_dma_sg_plane_desc(vb2,
[all...]
H A Dsaa7134-core.c201 return saa7134_buffer_pages(vb2_plane_size(&buf->vb2.vb2_buf, 0))
202 * buf->vb2.vb2_buf.index;
208 struct sg_table *dma = vb2_dma_sg_plane_desc(&buf->vb2.vb2_buf, 0);
295 q->curr->vb2.vb2_buf.timestamp = ktime_get_ns();
296 q->curr->vb2.sequence = q->seq_nr++;
297 vb2_buffer_done(&q->curr->vb2.vb2_buf, state);
361 vb2_buffer_done(&tmp->vb2.vb2_buf,
H A Dsaa7134.h465 struct vb2_v4l2_buffer vb2; member in struct:saa7134_buf
830 int saa7134_ts_buffer_init(struct vb2_buffer *vb2);
831 int saa7134_ts_buffer_prepare(struct vb2_buffer *vb2);
/linux-master/drivers/staging/media/atomisp/pci/
H A Dia_css_frame_public.h155 * as v4l2-buffers in some places. In this case the vb2 member will
198 #define vb_to_frame(vb2) \
199 container_of(to_vb2_v4l2_buffer(vb2), struct ia_css_frame, vb)
/linux-master/drivers/media/test-drivers/vimc/
H A Dvimc-capture.c51 struct vb2_v4l2_buffer vb2; member in struct:vimc_capture_buffer
235 vb2_buffer_done(&vbuf->vb2.vb2_buf, state);
267 * dequeued and passed on to the vb2 framework marked as STATE_ERROR.
287 vb2.vb2_buf);
381 vimc_buf->vb2.vb2_buf.timestamp = ktime_get_ns();
382 vimc_buf->vb2.sequence = vcapture->sequence++;
383 vimc_buf->vb2.field = vcapture->format.field;
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
[all...]
/linux-master/drivers/media/test-drivers/visl/
H A Dvisl-dec.c413 struct vb2_buffer *vb2; local
416 vb2 = vb2_get_buffer(out_q, i);
417 if (!vb2)
420 q_status = visl_get_vb2_state(vb2->state);
424 to_vb2_v4l2_buffer(vb2)->request_fd);
426 len += visl_fill_bytesused(to_vb2_v4l2_buffer(vb2),
474 struct vb2_buffer *vb2; local
477 vb2 = vb2_get_buffer(cap_q, i);
478 if (!vb2)
481 q_status = visl_get_vb2_state(vb2
[all...]
/linux-master/include/trace/events/
H A Dvb2.h3 #define TRACE_SYSTEM vb2
/linux-master/drivers/media/platform/nxp/imx8-isi/
H A Dimx8-isi-video.c836 void mxc_isi_video_buffer_init(struct vb2_buffer *vb2, dma_addr_t dma_addrs[3], argument
843 dma_addrs[i] = vb2_dma_contig_plane_dma_addr(vb2, i);
860 int mxc_isi_video_buffer_prepare(struct mxc_isi_dev *isi, struct vb2_buffer *vb2, argument
869 if (vb2_plane_size(vb2, i) < size) {
871 vb2_plane_size(vb2, i), size);
875 vb2_set_plane_payload(vb2, i, size);
893 static int mxc_isi_vb2_buffer_init(struct vb2_buffer *vb2) argument
895 struct mxc_isi_buffer *buf = to_isi_buffer(to_vb2_v4l2_buffer(vb2));
896 struct mxc_isi_video *video = vb2_get_drv_priv(vb2->vb2_queue);
898 mxc_isi_video_buffer_init(vb2, bu
904 mxc_isi_vb2_buffer_prepare(struct vb2_buffer *vb2) argument
912 mxc_isi_vb2_buffer_queue(struct vb2_buffer *vb2) argument
[all...]
H A Dimx8-isi-m2m.c52 /* Protects the m2m vb2 queues */
205 static int mxc_isi_m2m_vb2_buffer_init(struct vb2_buffer *vb2) argument
207 struct vb2_queue *vq = vb2->vb2_queue;
208 struct mxc_isi_m2m_buffer *buf = to_isi_m2m_buffer(to_vb2_v4l2_buffer(vb2));
209 struct mxc_isi_m2m_ctx *ctx = vb2_get_drv_priv(vb2->vb2_queue);
213 mxc_isi_video_buffer_init(vb2, buf->dma_addrs, qdata->info,
219 static int mxc_isi_m2m_vb2_buffer_prepare(struct vb2_buffer *vb2) argument
221 struct vb2_queue *vq = vb2->vb2_queue;
226 return mxc_isi_video_buffer_prepare(ctx->m2m->isi, vb2, qdata->info,
230 static void mxc_isi_m2m_vb2_buffer_queue(struct vb2_buffer *vb2) argument
[all...]
H A Dimx8-isi-core.h335 void mxc_isi_video_buffer_init(struct vb2_buffer *vb2, dma_addr_t dma_addrs[3],
338 int mxc_isi_video_buffer_prepare(struct mxc_isi_dev *isi, struct vb2_buffer *vb2,
/linux-master/drivers/media/usb/gspca/
H A Dgspca.h149 static inline struct gspca_buffer *to_gspca_buffer(struct vb2_buffer *vb2) argument
151 return container_of(vb2, struct gspca_buffer, vb.vb2_buf);
/linux-master/drivers/media/usb/dvb-usb/
H A Dcxusb.h155 struct vb2_v4l2_buffer vb2; member in struct:cxusb_medion_vbuffer
H A Dcxusb-analog.c475 cxdev->vbuf->vb2.vb2_buf.timestamp = ktime_get_ns();
476 bt656->buf = vb2_plane_vaddr(&cxdev->vbuf->vb2.vb2_buf,
509 vb2_set_plane_payload(&cxdev->vbuf->vb2.vb2_buf, 0,
512 cxdev->vbuf->vb2.field = cxdev->field_order;
513 cxdev->vbuf->vb2.sequence = cxdev->vbuf_sequence++;
515 vb2_buffer_done(&cxdev->vbuf->vb2.vb2_buf,
672 vb2_buffer_done(&vbuf->vb2.vb2_buf,
678 vb2_buffer_done(&cxdev->vbuf->vb2.vb2_buf,
944 container_of(v4l2buf, struct cxusb_medion_vbuffer, vb2);
/linux-master/drivers/media/pci/cobalt/
H A Dcobalt-driver.h204 struct cobalt_buffer *to_cobalt_buffer(struct vb2_v4l2_buffer *vb2) argument
206 return container_of(vb2, struct cobalt_buffer, vb);
/linux-master/drivers/media/platform/marvell/
H A Dmcam-core.h35 #error One of the vb2 buffer modes must be selected in the config
/linux-master/drivers/staging/vc04_services/bcm2835-camera/
H A Dbcm2835-camera.c268 struct vb2_v4l2_buffer *vb2 = to_vb2_v4l2_buffer(vb); local
270 container_of(vb2, struct vb2_mmal_buffer, vb);
305 struct vb2_v4l2_buffer *vb2 = to_vb2_v4l2_buffer(vb); local
307 container_of(vb2, struct vb2_mmal_buffer, vb);
482 struct vb2_v4l2_buffer *vb2 = to_vb2_v4l2_buffer(vb); local
484 container_of(vb2, struct vb2_mmal_buffer, vb);
489 __func__, dev, buf, vb2->vb2_buf.index);
/linux-master/drivers/media/pci/sta2x11/
H A Dsta2x11_vip.c80 static inline struct vip_buffer *to_vip_buffer(struct vb2_v4l2_buffer *vb2) argument
82 return container_of(vb2, struct vip_buffer, vb);

Completed in 350 milliseconds

12