Home
last modified time | relevance | path

Searched refs:vb (Results 1 – 25 of 289) sorted by relevance

12345678910>>...12

/drivers/virtio/
Dvirtio_balloon.c140 struct virtio_balloon *vb = vq->vdev->priv; in balloon_ack() local
142 wake_up(&vb->acked); in balloon_ack()
145 static void tell_host(struct virtio_balloon *vb, struct virtqueue *vq) in tell_host() argument
150 sg_init_one(&sg, vb->pfns, sizeof(vb->pfns[0]) * vb->num_pfns); in tell_host()
155 virtqueue_add_outbuf(vq, &sg, 1, vb, GFP_KERNEL); in tell_host()
159 wait_event(vb->acked, virtqueue_get_buf(vq, &len)); in tell_host()
166 struct virtio_balloon *vb = in virtballoon_free_page_report() local
168 struct virtqueue *vq = vb->reporting_vq; in virtballoon_free_page_report()
172 err = virtqueue_add_inbuf(vq, sg, nents, vb, GFP_NOWAIT | __GFP_NOWARN); in virtballoon_free_page_report()
187 wait_event(vb->acked, virtqueue_get_buf(vq, &unused)); in virtballoon_free_page_report()
[all …]
/drivers/media/common/videobuf2/
Dvideobuf2-core.c54 #define log_memop(vb, op) \ argument
55 dprintk((vb)->vb2_queue, 2, "call_memop(%d, %s)%s\n", \
56 (vb)->index, #op, \
57 (vb)->vb2_queue->mem_ops->op ? "" : " (nop)")
59 #define call_memop(vb, op, args...) \ argument
61 struct vb2_queue *_q = (vb)->vb2_queue; \
64 log_memop(vb, op); \
67 (vb)->cnt_mem_ ## op++; \
71 #define call_ptr_memop(op, vb, args...) \ argument
73 struct vb2_queue *_q = (vb)->vb2_queue; \
[all …]
Dvideobuf2-v4l2.c64 static int __verify_planes_array(struct vb2_buffer *vb, const struct v4l2_buffer *b) in __verify_planes_array() argument
71 dprintk(vb->vb2_queue, 1, in __verify_planes_array()
76 if (b->length < vb->num_planes || b->length > VB2_MAX_PLANES) { in __verify_planes_array()
77 dprintk(vb->vb2_queue, 1, in __verify_planes_array()
79 vb->num_planes, b->length); in __verify_planes_array()
86 static int __verify_planes_array_core(struct vb2_buffer *vb, const void *pb) in __verify_planes_array_core() argument
88 return __verify_planes_array(vb, pb); in __verify_planes_array_core()
95 static int __verify_length(struct vb2_buffer *vb, const struct v4l2_buffer *b) in __verify_length() argument
105 for (plane = 0; plane < vb->num_planes; ++plane) { in __verify_length()
109 : vb->planes[plane].length; in __verify_length()
[all …]
/drivers/gpio/
Dgpio-viperboard.c69 struct vprbrd *vb; member
86 struct vprbrd *vb = gpio->vb; in vprbrd_gpioa_get() local
87 struct vprbrd_gpioa_msg *gamsg = (struct vprbrd_gpioa_msg *)vb->buf; in vprbrd_gpioa_get()
93 mutex_lock(&vb->lock); in vprbrd_gpioa_get()
107 ret = usb_control_msg(vb->usb_dev, usb_sndctrlpipe(vb->usb_dev, 0), in vprbrd_gpioa_get()
114 ret = usb_control_msg(vb->usb_dev, usb_rcvctrlpipe(vb->usb_dev, 0), in vprbrd_gpioa_get()
120 mutex_unlock(&vb->lock); in vprbrd_gpioa_get()
136 struct vprbrd *vb = gpio->vb; in vprbrd_gpioa_set() local
137 struct vprbrd_gpioa_msg *gamsg = (struct vprbrd_gpioa_msg *)vb->buf; in vprbrd_gpioa_set()
145 mutex_lock(&vb->lock); in vprbrd_gpioa_set()
[all …]
/drivers/media/usb/go7007/
Dgo7007-driver.c379 static inline void store_byte(struct go7007_buffer *vb, u8 byte) in store_byte() argument
381 if (vb && vb->vb.vb2_buf.planes[0].bytesused < GO7007_BUF_SIZE) { in store_byte()
382 u8 *ptr = vb2_plane_vaddr(&vb->vb.vb2_buf, 0); in store_byte()
384 ptr[vb->vb.vb2_buf.planes[0].bytesused++] = byte; in store_byte()
388 static void go7007_set_motion_regions(struct go7007 *go, struct go7007_buffer *vb, in go7007_set_motion_regions() argument
396 .frame_sequence = vb->vb.sequence, in go7007_set_motion_regions()
410 static void go7007_motion_regions(struct go7007 *go, struct go7007_buffer *vb) in go7007_motion_regions() argument
412 u32 *bytesused = &vb->vb.vb2_buf.planes[0].bytesused; in go7007_motion_regions()
420 store_byte(vb, go->active_map[i]); in go7007_motion_regions()
433 go7007_set_motion_regions(go, vb, motion_regions); in go7007_motion_regions()
[all …]
/drivers/mfd/
Dviperboard.c50 struct vprbrd *vb; in vprbrd_probe() local
56 vb = kzalloc(sizeof(*vb), GFP_KERNEL); in vprbrd_probe()
57 if (!vb) in vprbrd_probe()
60 mutex_init(&vb->lock); in vprbrd_probe()
62 vb->usb_dev = usb_get_dev(interface_to_usbdev(interface)); in vprbrd_probe()
65 usb_set_intfdata(interface, vb); in vprbrd_probe()
66 dev_set_drvdata(&vb->pdev.dev, vb); in vprbrd_probe()
69 pipe = usb_rcvctrlpipe(vb->usb_dev, 0); in vprbrd_probe()
70 ret = usb_control_msg(vb->usb_dev, pipe, VPRBRD_USB_REQUEST_MAJOR, in vprbrd_probe()
71 VPRBRD_USB_TYPE_IN, 0x0000, 0x0000, vb->buf, 1, in vprbrd_probe()
[all …]
/drivers/media/test-drivers/vivid/
Dvivid-kthread-out.c86 v4l2_ctrl_request_setup(vid_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick()
88 v4l2_ctrl_request_complete(vid_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick()
90 vid_out_buf->vb.sequence = dev->vid_out_seq_count; in vivid_thread_vid_out_tick()
96 vid_out_buf->vb.sequence /= 2; in vivid_thread_vid_out_tick()
98 vid_out_buf->vb.vb2_buf.timestamp = in vivid_thread_vid_out_tick()
100 vb2_buffer_done(&vid_out_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_vid_out_tick()
103 vid_out_buf->vb.vb2_buf.index); in vivid_thread_vid_out_tick()
107 v4l2_ctrl_request_setup(vbi_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick()
109 v4l2_ctrl_request_complete(vbi_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick()
114 vbi_out_buf->vb.sequence = dev->vbi_out_seq_count; in vivid_thread_vid_out_tick()
[all …]
Dvivid-meta-cap.c40 static int meta_cap_buf_prepare(struct vb2_buffer *vb) in meta_cap_buf_prepare() argument
42 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in meta_cap_buf_prepare()
55 if (vb2_plane_size(vb, 0) < size) { in meta_cap_buf_prepare()
57 __func__, vb2_plane_size(vb, 0), size); in meta_cap_buf_prepare()
60 vb2_set_plane_payload(vb, 0, size); in meta_cap_buf_prepare()
65 static void meta_cap_buf_queue(struct vb2_buffer *vb) in meta_cap_buf_queue() argument
67 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in meta_cap_buf_queue()
68 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in meta_cap_buf_queue()
69 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in meta_cap_buf_queue()
98 vb2_buffer_done(&buf->vb.vb2_buf, in meta_cap_start_streaming()
[all …]
Dvivid-vbi-cap.c85 u8 *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_raw_vbi_cap_process()
88 buf->vb.sequence = dev->vbi_cap_seq_count; in vivid_raw_vbi_cap_process()
90 buf->vb.sequence /= 2; in vivid_raw_vbi_cap_process()
92 vivid_sliced_vbi_cap_fill(dev, buf->vb.sequence); in vivid_raw_vbi_cap_process()
94 memset(vbuf, 0x10, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_raw_vbi_cap_process()
105 vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_sliced_vbi_cap_process()
107 buf->vb.sequence = dev->vbi_cap_seq_count; in vivid_sliced_vbi_cap_process()
109 buf->vb.sequence /= 2; in vivid_sliced_vbi_cap_process()
111 vivid_sliced_vbi_cap_fill(dev, buf->vb.sequence); in vivid_sliced_vbi_cap_process()
113 memset(vbuf, 0, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_sliced_vbi_cap_process()
[all …]
Dvivid-meta-out.c40 static int meta_out_buf_prepare(struct vb2_buffer *vb) in meta_out_buf_prepare() argument
42 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in meta_out_buf_prepare()
55 if (vb2_plane_size(vb, 0) < size) { in meta_out_buf_prepare()
57 __func__, vb2_plane_size(vb, 0), size); in meta_out_buf_prepare()
60 vb2_set_plane_payload(vb, 0, size); in meta_out_buf_prepare()
65 static void meta_out_buf_queue(struct vb2_buffer *vb) in meta_out_buf_queue() argument
67 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in meta_out_buf_queue()
68 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in meta_out_buf_queue()
69 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in meta_out_buf_queue()
98 vb2_buffer_done(&buf->vb.vb2_buf, in meta_out_start_streaming()
[all …]
Dvivid-vbi-out.c40 static int vbi_out_buf_prepare(struct vb2_buffer *vb) in vbi_out_buf_prepare() argument
42 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_out_buf_prepare()
44 unsigned size = vb->vb2_queue->type == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT ? in vbi_out_buf_prepare()
58 if (vb2_plane_size(vb, 0) < size) { in vbi_out_buf_prepare()
60 __func__, vb2_plane_size(vb, 0), size); in vbi_out_buf_prepare()
63 vb2_set_plane_payload(vb, 0, size); in vbi_out_buf_prepare()
68 static void vbi_out_buf_queue(struct vb2_buffer *vb) in vbi_out_buf_queue() argument
70 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_out_buf_queue()
71 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_out_buf_queue()
72 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in vbi_out_buf_queue()
[all …]
/drivers/staging/media/deprecated/fsl-viu/
Dfsl-viu.c76 struct videobuf_buffer vb; member
290 buf = list_entry(vidq->active.next, struct viu_buf, vb.queue); in restart_video_queue()
292 buf, buf->vb.i); in restart_video_queue()
297 list_for_each_entry_safe(buf, prev, &vidq->active, vb.queue) { in restart_video_queue()
298 list_del(&buf->vb.queue); in restart_video_queue()
299 buf->vb.state = VIDEOBUF_ERROR; in restart_video_queue()
300 wake_up(&buf->vb.done); in restart_video_queue()
310 buf = list_entry(vidq->queued.next, struct viu_buf, vb.queue); in restart_video_queue()
312 list_move_tail(&buf->vb.queue, &vidq->active); in restart_video_queue()
318 buf->vb.state = VIDEOBUF_ACTIVE; in restart_video_queue()
[all …]
/drivers/media/pci/bt8xx/
Dbttv-risc.c573 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); in bttv_dma_free()
575 videobuf_waiton(q, &buf->vb, 0, 0); in bttv_dma_free()
580 buf->vb.state = VIDEOBUF_NEEDS_INIT; in bttv_dma_free()
600 vbi->vb.state = VIDEOBUF_ACTIVE; in bttv_buffer_activate_vbi()
601 list_del(&vbi->vb.queue); in bttv_buffer_activate_vbi()
642 set->top->vb.state = VIDEOBUF_ACTIVE; in bttv_buffer_activate_video()
643 if (set->top->vb.queue.next) in bttv_buffer_activate_video()
644 list_del(&set->top->vb.queue); in bttv_buffer_activate_video()
646 set->top->vb.state = VIDEOBUF_ACTIVE; in bttv_buffer_activate_video()
647 set->bottom->vb.state = VIDEOBUF_ACTIVE; in bttv_buffer_activate_video()
[all …]
Dbttv-vbi.c92 struct videobuf_buffer *vb, in vbi_buffer_prepare() argument
97 struct bttv_buffer *buf = container_of(vb,struct bttv_buffer,vb); in vbi_buffer_prepare()
103 buf->vb.size = IMAGE_SIZE(&fh->vbi_fmt.fmt); in vbi_buffer_prepare()
104 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) in vbi_buffer_prepare()
139 if (VIDEOBUF_NEEDS_INIT == buf->vb.state) { in vbi_buffer_prepare()
141 if (0 != (rc = videobuf_iolock(q, &buf->vb, NULL))) in vbi_buffer_prepare()
147 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); in vbi_buffer_prepare()
186 buf->vb.state = VIDEOBUF_PREPARED; in vbi_buffer_prepare()
187 buf->vb.field = field; in vbi_buffer_prepare()
189 vb, &buf->top, &buf->bottom, in vbi_buffer_prepare()
[all …]
/drivers/media/usb/au0828/
Dau0828-vbi.c34 static int vbi_buffer_prepare(struct vb2_buffer *vb) in vbi_buffer_prepare() argument
36 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_prepare()
41 if (vb2_plane_size(vb, 0) < size) { in vbi_buffer_prepare()
43 __func__, vb2_plane_size(vb, 0), size); in vbi_buffer_prepare()
46 vb2_set_plane_payload(vb, 0, size); in vbi_buffer_prepare()
52 vbi_buffer_queue(struct vb2_buffer *vb) in vbi_buffer_queue() argument
54 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue()
55 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_buffer_queue()
57 container_of(vbuf, struct au0828_buffer, vb); in vbi_buffer_queue()
61 buf->mem = vb2_plane_vaddr(vb, 0); in vbi_buffer_queue()
[all …]
/drivers/iio/adc/
Dviperboard_adc.c32 struct vprbrd *vb; member
57 struct vprbrd *vb = adc->vb; in vprbrd_iio_read_raw() local
58 struct vprbrd_adc_msg *admsg = (struct vprbrd_adc_msg *)vb->buf; in vprbrd_iio_read_raw()
62 mutex_lock(&vb->lock); in vprbrd_iio_read_raw()
68 ret = usb_control_msg(vb->usb_dev, in vprbrd_iio_read_raw()
69 usb_sndctrlpipe(vb->usb_dev, 0), VPRBRD_USB_REQUEST_ADC, in vprbrd_iio_read_raw()
77 ret = usb_control_msg(vb->usb_dev, in vprbrd_iio_read_raw()
78 usb_rcvctrlpipe(vb->usb_dev, 0), VPRBRD_USB_REQUEST_ADC, in vprbrd_iio_read_raw()
84 mutex_unlock(&vb->lock); in vprbrd_iio_read_raw()
109 struct vprbrd *vb = dev_get_drvdata(pdev->dev.parent); in vprbrd_adc_probe() local
[all …]
/drivers/i2c/busses/
Di2c-viperboard.c40 struct vprbrd *vb = (struct vprbrd *)i2c->algo_data; in vprbrd_i2c_status() local
45 ret = usb_control_msg(vb->usb_dev, usb_rcvctrlpipe(vb->usb_dev, 0), in vprbrd_i2c_status()
113 static int vprbrd_i2c_read(struct vprbrd *vb, struct i2c_msg *msg) in vprbrd_i2c_read() argument
118 (struct vprbrd_i2c_read_msg *)vb->buf; in vprbrd_i2c_read()
200 ret = vprbrd_i2c_receive(vb->usb_dev, rmsg, len1); in vprbrd_i2c_read()
208 ret = vprbrd_i2c_receive(vb->usb_dev, rmsg, len2); in vprbrd_i2c_read()
218 static int vprbrd_i2c_write(struct vprbrd *vb, struct i2c_msg *msg) in vprbrd_i2c_write() argument
224 (struct vprbrd_i2c_write_msg *)vb->buf; in vprbrd_i2c_write()
255 ret = usb_bulk_msg(vb->usb_dev, in vprbrd_i2c_write()
256 usb_sndbulkpipe(vb->usb_dev, in vprbrd_i2c_write()
[all …]
/drivers/media/usb/em28xx/
Dem28xx-vbi.c44 static int vbi_buffer_prepare(struct vb2_buffer *vb) in vbi_buffer_prepare() argument
46 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_prepare()
52 if (vb2_plane_size(vb, 0) < size) { in vbi_buffer_prepare()
55 __func__, vb2_plane_size(vb, 0), size); in vbi_buffer_prepare()
58 vb2_set_plane_payload(vb, 0, size); in vbi_buffer_prepare()
64 vbi_buffer_queue(struct vb2_buffer *vb) in vbi_buffer_queue() argument
66 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_buffer_queue()
67 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue()
69 container_of(vbuf, struct em28xx_buffer, vb); in vbi_buffer_queue()
73 buf->mem = vb2_plane_vaddr(vb, 0); in vbi_buffer_queue()
[all …]
/drivers/media/pci/cx88/
Dcx88-vbi.c108 buf, buf->vb.vb2_buf.index); in cx8800_restart_vbi_queue()
129 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument
131 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare()
132 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare()
133 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_prepare()
134 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare()
143 if (vb2_plane_size(vb, 0) < size) in buffer_prepare()
145 vb2_set_plane_payload(vb, 0, size); in buffer_prepare()
153 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument
155 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish()
[all …]
/drivers/media/v4l2-core/
Dv4l2-compat-ioctl32.c405 static int get_v4l2_buffer32(struct v4l2_buffer *vb, in get_v4l2_buffer32() argument
413 memset(vb, 0, sizeof(*vb)); in get_v4l2_buffer32()
414 *vb = (struct v4l2_buffer) { in get_v4l2_buffer32()
430 switch (vb->memory) { in get_v4l2_buffer32()
433 vb->m.offset = vb32.m.offset; in get_v4l2_buffer32()
436 vb->m.userptr = (unsigned long)compat_ptr(vb32.m.userptr); in get_v4l2_buffer32()
439 vb->m.fd = vb32.m.fd; in get_v4l2_buffer32()
443 if (V4L2_TYPE_IS_MULTIPLANAR(vb->type)) in get_v4l2_buffer32()
444 vb->m.planes = (void __force *) in get_v4l2_buffer32()
451 static int get_v4l2_buffer32_time32(struct v4l2_buffer *vb, in get_v4l2_buffer32_time32() argument
[all …]
Dvideobuf-vmalloc.c138 struct videobuf_buffer *vb; in __videobuf_alloc_vb() local
140 vb = kzalloc(size + sizeof(*mem), GFP_KERNEL); in __videobuf_alloc_vb()
141 if (!vb) in __videobuf_alloc_vb()
142 return vb; in __videobuf_alloc_vb()
144 mem = vb->priv = ((char *)vb) + size; in __videobuf_alloc_vb()
148 __func__, vb, (long)sizeof(*vb), (long)size - sizeof(*vb), in __videobuf_alloc_vb()
151 return vb; in __videobuf_alloc_vb()
155 struct videobuf_buffer *vb, in __videobuf_iolock() argument
158 struct videobuf_vmalloc_memory *mem = vb->priv; in __videobuf_iolock()
165 switch (vb->memory) { in __videobuf_iolock()
[all …]
/drivers/media/pci/cx23885/
Dcx23885-vbi.c128 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument
130 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare()
131 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare()
133 struct cx23885_buffer, vb); in buffer_prepare()
134 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare()
140 if (vb2_plane_size(vb, 0) < lines * VBI_LINE_LENGTH * 2) in buffer_prepare()
142 vb2_set_plane_payload(vb, 0, lines * VBI_LINE_LENGTH * 2); in buffer_prepare()
152 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument
154 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish()
156 struct cx23885_buffer, vb); in buffer_finish()
[all …]
/drivers/media/dvb-core/
Ddvb_vb2.c50 static int _buffer_prepare(struct vb2_buffer *vb) in _buffer_prepare() argument
52 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _buffer_prepare()
55 if (vb2_plane_size(vb, 0) < size) { in _buffer_prepare()
57 ctx->name, vb2_plane_size(vb, 0), size); in _buffer_prepare()
61 vb2_set_plane_payload(vb, 0, size); in _buffer_prepare()
67 static void _buffer_queue(struct vb2_buffer *vb) in _buffer_queue() argument
69 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _buffer_queue()
70 struct dvb_buffer *buf = container_of(vb, struct dvb_buffer, vb); in _buffer_queue()
100 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in _stop_streaming()
133 static void _fill_dmx_buffer(struct vb2_buffer *vb, void *pb) in _fill_dmx_buffer() argument
[all …]
/drivers/media/platform/rockchip/rga/
Drga-buf.c38 static int rga_buf_prepare(struct vb2_buffer *vb) in rga_buf_prepare() argument
40 struct rga_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in rga_buf_prepare()
41 struct rga_frame *f = rga_get_frame(ctx, vb->vb2_queue->type); in rga_buf_prepare()
46 vb2_set_plane_payload(vb, 0, f->size); in rga_buf_prepare()
51 static void rga_buf_queue(struct vb2_buffer *vb) in rga_buf_queue() argument
53 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in rga_buf_queue()
54 struct rga_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in rga_buf_queue()
113 void rga_buf_map(struct vb2_buffer *vb) in rga_buf_map() argument
115 struct rga_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in rga_buf_map()
123 if (vb->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) in rga_buf_map()
[all …]
/drivers/media/platform/mediatek/vcodec/
Dmtk_vcodec_dec_stateful.c62 struct vb2_v4l2_buffer *vb; in get_display_buffer() local
78 vb = &dstbuf->m2m_buf.vb; in get_display_buffer()
83 vb->vb2_buf.index, dstbuf->queued_in_vb2); in get_display_buffer()
85 v4l2_m2m_buf_done(vb, VB2_BUF_STATE_DONE); in get_display_buffer()
89 return &vb->vb2_buf; in get_display_buffer()
104 struct vb2_v4l2_buffer *vb; in get_free_buffer() local
121 vb = &dstbuf->m2m_buf.vb; in get_free_buffer()
136 vb->vb2_buf.index, dstbuf->queued_in_vb2); in get_free_buffer()
137 v4l2_m2m_buf_queue(ctx->m2m_ctx, vb); in get_free_buffer()
152 vb->vb2_buf.index); in get_free_buffer()
[all …]

12345678910>>...12