/kernel/linux/linux-5.10/drivers/media/pci/saa7134/ |
H A D | saa7134-vbi.c | 73 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 in buffer_init() [all...] |
H A D | saa7134-ts.c | 67 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() 71 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); 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() 85 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); 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, in saa7134_ts_buffer_prepare() [all...] |
H A D | saa7134-video.c | 824 struct saa7134_dmaqueue *dmaq = buf->vb2.vb2_buf.vb2_queue->drv_priv; in buffer_activate() 902 static int buffer_init(struct vb2_buffer *vb2) in buffer_init() argument 904 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in buffer_init() 905 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in buffer_init() 906 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in buffer_init() 913 static int buffer_prepare(struct vb2_buffer *vb2) in buffer_prepare() argument 915 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in buffer_prepare() 917 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in buffer_prepare() 918 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in buffer_prepare() 919 struct sg_table *dma = vb2_dma_sg_plane_desc(vb2, in buffer_prepare() [all...] |
H A D | saa7134-core.c | 205 return saa7134_buffer_pages(vb2_plane_size(&buf->vb2.vb2_buf, 0)) in saa7134_buffer_startpage() 206 * buf->vb2.vb2_buf.index; in saa7134_buffer_startpage() 212 struct sg_table *dma = vb2_dma_sg_plane_desc(&buf->vb2.vb2_buf, 0); in saa7134_buffer_base() 298 q->curr->vb2.vb2_buf.timestamp = ktime_get_ns(); in saa7134_buffer_finish() 299 q->curr->vb2.sequence = q->seq_nr++; in saa7134_buffer_finish() 300 vb2_buffer_done(&q->curr->vb2.vb2_buf, state); in saa7134_buffer_finish() 364 vb2_buffer_done(&tmp->vb2.vb2_buf, in saa7134_stop_streaming()
|
/kernel/linux/linux-6.6/drivers/media/pci/saa7134/ |
H A D | saa7134-vbi.c | 73 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 in buffer_init() [all...] |
H A D | saa7134-ts.c | 67 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() 71 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); 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() 85 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); 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, in saa7134_ts_buffer_prepare() [all...] |
H A D | saa7134-video.c | 637 struct saa7134_dmaqueue *dmaq = buf->vb2.vb2_buf.vb2_queue->drv_priv; in buffer_activate() 715 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() 719 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, 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() 731 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in buffer_prepare() 732 struct sg_table *dma = vb2_dma_sg_plane_desc(vb2, in buffer_prepare() [all...] |
H A D | saa7134-core.c | 201 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()
|
/kernel/linux/linux-5.10/drivers/media/test-drivers/vimc/ |
H A D | vimc-capture.c | 50 struct vb2_v4l2_buffer vb2; member 234 vb2_buffer_done(&vbuf->vb2.vb2_buf, state); in vimc_cap_return_all_buffers() 267 * dequeued and passed on to the vb2 framework marked as STATE_ERROR. 287 vb2.vb2_buf); in vimc_cap_buf_queue() 381 vimc_buf->vb2.vb2_buf.timestamp = ktime_get_ns(); in vimc_cap_process_frame() 382 vimc_buf->vb2.sequence = vcap->sequence++; in vimc_cap_process_frame() 383 vimc_buf->vb2.field = vcap->format.field; 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 in vimc_cap_process_frame() [all...] |
/kernel/linux/linux-6.6/drivers/media/test-drivers/vimc/ |
H A D | vimc-capture.c | 51 struct vb2_v4l2_buffer vb2; member 235 vb2_buffer_done(&vbuf->vb2.vb2_buf, state); in vimc_capture_return_all_buffers() 267 * dequeued and passed on to the vb2 framework marked as STATE_ERROR. 287 vb2.vb2_buf); in vimc_capture_buf_queue() 381 vimc_buf->vb2.vb2_buf.timestamp = ktime_get_ns(); in vimc_capture_process_frame() 382 vimc_buf->vb2.sequence = vcapture->sequence++; in vimc_capture_process_frame() 383 vimc_buf->vb2.field = vcapture->format.field; in vimc_capture_process_frame() 385 vbuf = vb2_plane_vaddr(&vimc_buf->vb2.vb2_buf, 0); in vimc_capture_process_frame() 390 vb2_set_plane_payload(&vimc_buf->vb2.vb2_buf, 0, in vimc_capture_process_frame() 392 vb2_buffer_done(&vimc_buf->vb2 in vimc_capture_process_frame() [all...] |
/kernel/linux/linux-5.10/drivers/media/dvb-core/ |
H A D | Makefile | 7 dvb-vb2-$(CONFIG_DVB_MMAP) := dvb_vb2.o 11 $(dvb-net-y) dvb_ringbuffer.o $(dvb-vb2-y) dvb_math.o
|
/kernel/linux/linux-6.6/drivers/media/dvb-core/ |
H A D | Makefile | 7 dvb-vb2-$(CONFIG_DVB_MMAP) := dvb_vb2.o 11 $(dvb-net-y) dvb_ringbuffer.o $(dvb-vb2-y)
|
/kernel/linux/linux-6.6/drivers/media/platform/nxp/imx8-isi/ |
H A D | imx8-isi-video.c | 836 void mxc_isi_video_buffer_init(struct vb2_buffer *vb2, dma_addr_t dma_addrs[3], in mxc_isi_video_buffer_init() argument 843 dma_addrs[i] = vb2_dma_contig_plane_dma_addr(vb2, i); in mxc_isi_video_buffer_init() 860 int mxc_isi_video_buffer_prepare(struct mxc_isi_dev *isi, struct vb2_buffer *vb2, in mxc_isi_video_buffer_prepare() argument 869 if (vb2_plane_size(vb2, i) < size) { in mxc_isi_video_buffer_prepare() 871 vb2_plane_size(vb2, i), size); in mxc_isi_video_buffer_prepare() 875 vb2_set_plane_payload(vb2, i, size); in mxc_isi_video_buffer_prepare() 893 static int mxc_isi_vb2_buffer_init(struct vb2_buffer *vb2) in mxc_isi_vb2_buffer_init() argument 895 struct mxc_isi_buffer *buf = to_isi_buffer(to_vb2_v4l2_buffer(vb2)); in mxc_isi_vb2_buffer_init() 896 struct mxc_isi_video *video = vb2_get_drv_priv(vb2->vb2_queue); in mxc_isi_vb2_buffer_init() 898 mxc_isi_video_buffer_init(vb2, bu in mxc_isi_vb2_buffer_init() 904 mxc_isi_vb2_buffer_prepare(struct vb2_buffer *vb2) mxc_isi_vb2_buffer_prepare() argument 912 mxc_isi_vb2_buffer_queue(struct vb2_buffer *vb2) mxc_isi_vb2_buffer_queue() argument [all...] |
H A D | imx8-isi-m2m.c | 52 /* Protects the m2m vb2 queues */ 205 static int mxc_isi_m2m_vb2_buffer_init(struct vb2_buffer *vb2) in mxc_isi_m2m_vb2_buffer_init() argument 207 struct vb2_queue *vq = vb2->vb2_queue; in mxc_isi_m2m_vb2_buffer_init() 208 struct mxc_isi_m2m_buffer *buf = to_isi_m2m_buffer(to_vb2_v4l2_buffer(vb2)); in mxc_isi_m2m_vb2_buffer_init() 209 struct mxc_isi_m2m_ctx *ctx = vb2_get_drv_priv(vb2->vb2_queue); in mxc_isi_m2m_vb2_buffer_init() 213 mxc_isi_video_buffer_init(vb2, buf->dma_addrs, qdata->info, in mxc_isi_m2m_vb2_buffer_init() 219 static int mxc_isi_m2m_vb2_buffer_prepare(struct vb2_buffer *vb2) in mxc_isi_m2m_vb2_buffer_prepare() argument 221 struct vb2_queue *vq = vb2->vb2_queue; in mxc_isi_m2m_vb2_buffer_prepare() 226 return mxc_isi_video_buffer_prepare(ctx->m2m->isi, vb2, qdata->info, in mxc_isi_m2m_vb2_buffer_prepare() 230 static void mxc_isi_m2m_vb2_buffer_queue(struct vb2_buffer *vb2) in mxc_isi_m2m_vb2_buffer_queue() argument [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/ |
H A D | ia_css_frame_public.h | 155 * 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)
|
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/ |
H A D | vb2-trace.c | 5 #include <trace/events/vb2.h>
|
H A D | Makefile | 5 videobuf2-common-objs += vb2-trace.o
|
/kernel/linux/linux-6.6/drivers/media/common/videobuf2/ |
H A D | vb2-trace.c | 5 #include <trace/events/vb2.h>
|
H A D | Makefile | 6 videobuf2-common-objs += vb2-trace.o
|
/kernel/linux/linux-5.10/drivers/media/usb/gspca/ |
H A D | gspca.h | 149 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()
|
/kernel/linux/linux-6.6/drivers/media/usb/gspca/ |
H A D | gspca.h | 149 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()
|
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | vb2.h | 3 #define TRACE_SYSTEM vb2
|
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | vb2.h | 3 #define TRACE_SYSTEM vb2
|
/kernel/linux/linux-5.10/drivers/media/pci/cobalt/ |
H A D | cobalt-driver.h | 204 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()
|
/kernel/linux/linux-6.6/drivers/media/pci/cobalt/ |
H A D | cobalt-driver.h | 204 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()
|