Home
last modified time | relevance | path

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

/drivers/media/pci/saa7134/
Dsaa7134-vbi.c86 struct saa7134_dmaqueue *dmaq = buf->vb2.vb2_buf.vb2_queue->drv_priv; in buffer_activate()
118 static int buffer_prepare(struct vb2_buffer *vb2) in buffer_prepare() argument
120 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in buffer_prepare()
122 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in buffer_prepare()
123 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in buffer_prepare()
124 struct sg_table *dma = vb2_dma_sg_plane_desc(vb2, 0); in buffer_prepare()
132 if (vb2_plane_size(vb2, 0) < size) in buffer_prepare()
135 vb2_set_plane_payload(vb2, 0, size); in buffer_prepare()
161 static int buffer_init(struct vb2_buffer *vb2) in buffer_init() argument
163 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in buffer_init()
[all …]
Dsaa7134-ts.c80 int saa7134_ts_buffer_init(struct vb2_buffer *vb2) in saa7134_ts_buffer_init() argument
82 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in saa7134_ts_buffer_init()
83 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in saa7134_ts_buffer_init()
84 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in saa7134_ts_buffer_init()
93 int saa7134_ts_buffer_prepare(struct vb2_buffer *vb2) in saa7134_ts_buffer_prepare() argument
95 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in saa7134_ts_buffer_prepare()
96 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in saa7134_ts_buffer_prepare()
98 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in saa7134_ts_buffer_prepare()
99 struct sg_table *dma = vb2_dma_sg_plane_desc(vb2, 0); in saa7134_ts_buffer_prepare()
108 if (vb2_plane_size(vb2, 0) < size) in saa7134_ts_buffer_prepare()
[all …]
Dsaa7134-video.c851 struct saa7134_dmaqueue *dmaq = buf->vb2.vb2_buf.vb2_queue->drv_priv; in buffer_activate()
929 static int buffer_init(struct vb2_buffer *vb2) in buffer_init() argument
931 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in buffer_init()
932 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in buffer_init()
933 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in buffer_init()
940 static int buffer_prepare(struct vb2_buffer *vb2) in buffer_prepare() argument
942 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in buffer_prepare()
944 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in buffer_prepare()
945 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in buffer_prepare()
946 struct sg_table *dma = vb2_dma_sg_plane_desc(vb2, 0); in buffer_prepare()
[all …]
Dsaa7134-core.c219 return saa7134_buffer_pages(vb2_plane_size(&buf->vb2.vb2_buf, 0)) in saa7134_buffer_startpage()
220 * buf->vb2.vb2_buf.index; in saa7134_buffer_startpage()
226 struct sg_table *dma = vb2_dma_sg_plane_desc(&buf->vb2.vb2_buf, 0); in saa7134_buffer_base()
312 q->curr->vb2.vb2_buf.timestamp = ktime_get_ns(); in saa7134_buffer_finish()
313 q->curr->vb2.sequence = q->seq_nr++; in saa7134_buffer_finish()
314 vb2_buffer_done(&q->curr->vb2.vb2_buf, state); in saa7134_buffer_finish()
379 vb2_buffer_done(&tmp->vb2.vb2_buf, in saa7134_stop_streaming()
Dsaa7134.h481 struct vb2_v4l2_buffer vb2; member
852 int saa7134_ts_buffer_init(struct vb2_buffer *vb2);
853 int saa7134_ts_buffer_prepare(struct vb2_buffer *vb2);
/drivers/video/fbdev/
Dbfin_adv7393fb.c129 fbdev->vb2 = l1_data_sram_zalloc(sizeof(struct dmasg)); in dma_desc_list()
130 if (fbdev->vb2 == NULL) in dma_desc_list()
139 fbdev->av1->next_desc_addr = fbdev->vb2; in dma_desc_list()
140 fbdev->vb2->next_desc_addr = fbdev->av2; in dma_desc_list()
171 fbdev->vb2->start_addr = VB_DUMMY_MEMORY_SOURCE; in dma_desc_list()
172 fbdev->vb2->cfg = DMA_CFG_VAL; in dma_desc_list()
173 fbdev->vb2->x_count = in dma_desc_list()
176 fbdev->vb2->x_modify = 0; in dma_desc_list()
177 fbdev->vb2->y_count = fbdev->modes[mode].vb2_lines; in dma_desc_list()
178 fbdev->vb2->y_modify = 0; in dma_desc_list()
[all …]
Dbfin_adv7393fb.h273 struct dmasg *vb2; member
/drivers/media/pci/cobalt/
Dcobalt-driver.h215 struct cobalt_buffer *to_cobalt_buffer(struct vb2_v4l2_buffer *vb2) in to_cobalt_buffer() argument
217 return container_of(vb2, struct cobalt_buffer, vb); in to_cobalt_buffer()
/drivers/media/v4l2-core/
DMakefile17 videodev-objs += vb2-trace.o v4l2-trace.o
/drivers/media/pci/sta2x11/
Dsta2x11_vip.c95 static inline struct vip_buffer *to_vip_buffer(struct vb2_v4l2_buffer *vb2) in to_vip_buffer() argument
97 return container_of(vb2, struct vip_buffer, vb); in to_vip_buffer()
/drivers/media/platform/
Dsh_vou.c71 sh_vou_buffer *to_sh_vou_buffer(struct vb2_v4l2_buffer *vb2) in to_sh_vou_buffer() argument
73 return container_of(vb2, struct sh_vou_buffer, vb); in to_sh_vou_buffer()