Home
last modified time | relevance | path

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

12345678910>>...12

/linux/drivers/virtio/
A Dvirtio_balloon.c157 sg_init_one(&sg, vb->pfns, sizeof(vb->pfns[0]) * vb->num_pfns); in tell_host()
244 set_page_pfns(vb, vb->pfns + vb->num_pfns, page); in fill_balloon()
255 tell_host(vb, vb->inflate_vq); in fill_balloon()
293 set_page_pfns(vb, vb->pfns + vb->num_pfns, page); in leak_balloon()
305 tell_host(vb, vb->deflate_vq); in leak_balloon()
792 tell_host(vb, vb->inflate_vq); in virtballoon_migratepage()
799 set_page_pfns(vb, vb->pfns, page); in virtballoon_migratepage()
800 tell_host(vb, vb->deflate_vq); in virtballoon_migratepage()
1051 leak_balloon(vb, vb->num_pages); in remove_common()
1059 vb->vdev->config->reset(vb->vdev); in remove_common()
[all …]
/linux/drivers/media/common/videobuf2/
A Dvideobuf2-core.c440 q->bufs[vb->index] = vb; in __vb2_queue_alloc()
458 ret = call_vb_qop(vb, buf_init, vb); in __vb2_queue_alloc()
532 if (vb && vb->planes[0].mem_priv) in __vb2_queue_free()
533 call_void_vb_qop(vb, buf_cleanup, vb); in __vb2_queue_free()
585 vb->cnt_mem_alloc, vb->cnt_mem_put, in __vb2_queue_free()
1099 vb, vb->planes); in __prepare_mmap()
1190 ret = call_vb_qop(vb, buf_init, vb); in __prepare_userptr()
1197 ret = call_vb_qop(vb, buf_prepare, vb); in __prepare_userptr()
1334 ret = call_vb_qop(vb, buf_init, vb); in __prepare_dmabuf()
1368 call_void_vb_qop(vb, buf_queue, vb); in __enqueue_in_driver()
[all …]
A Dvideobuf2-v4l2.c71 dprintk(vb->vb2_queue, 1, in __verify_planes_array()
77 dprintk(vb->vb2_queue, 1, in __verify_planes_array()
373 struct vb2_buffer *vb; in vb2_queue_or_prepare_buf() local
397 vb = q->bufs[b->index]; in vb2_queue_or_prepare_buf()
409 if (!vb->prepared) { in vb2_queue_or_prepare_buf()
500 b->index = vb->index; in __fill_v4l2_buffer()
501 b->type = vb->type; in __fill_v4l2_buffer()
563 switch (vb->state) { in __fill_v4l2_buffer()
585 vb->synced && vb->prepared) in __fill_v4l2_buffer()
607 vb->timestamp = 0; in __fill_vb2_buffer()
[all …]
/linux/drivers/gpio/
A Dgpio-viperboard.c69 struct vprbrd *vb; member
86 struct vprbrd *vb = gpio->vb; in vprbrd_gpioa_get() local
107 ret = usb_control_msg(vb->usb_dev, usb_sndctrlpipe(vb->usb_dev, 0), in vprbrd_gpioa_get()
136 struct vprbrd *vb = gpio->vb; in vprbrd_gpioa_set() local
177 struct vprbrd *vb = gpio->vb; in vprbrd_gpioa_direction_input() local
214 struct vprbrd *vb = gpio->vb; in vprbrd_gpioa_direction_output() local
281 struct vprbrd *vb = gpio->vb; in vprbrd_gpiob_get() local
312 struct vprbrd *vb = gpio->vb; in vprbrd_gpiob_set() local
345 struct vprbrd *vb = gpio->vb; in vprbrd_gpiob_direction_input() local
366 struct vprbrd *vb = gpio->vb; in vprbrd_gpiob_direction_output() local
[all …]
/linux/drivers/media/usb/go7007/
A Dgo7007-driver.c381 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()
396 .frame_sequence = vb->vb.sequence, in go7007_set_motion_regions()
454 bytesused = &vb->vb.vb2_buf.planes[0].bytesused; in frame_boundary()
456 vb->vb.sequence = go->next_seq++; in frame_boundary()
462 vb->vb.vb2_buf.timestamp = ktime_get_ns(); in frame_boundary()
516 if (vb && vb->vb.vb2_buf.planes[0].bytesused >= in go7007_parse_video_stream()
519 vb->vb.vb2_buf.planes[0].bytesused = 0; in go7007_parse_video_stream()
596 vb = frame_boundary(go, vb); in go7007_parse_video_stream()
600 vb->vb.vb2_buf.planes[0].bytesused; in go7007_parse_video_stream()
[all …]
/linux/drivers/mfd/
A 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()
66 dev_set_drvdata(&vb->pdev.dev, vb); in vprbrd_probe()
74 version = vb->buf[0]; in vprbrd_probe()
87 vb->usb_dev->bus->busnum, vb->usb_dev->devnum); in vprbrd_probe()
99 if (vb) { in vprbrd_probe()
101 kfree(vb); in vprbrd_probe()
113 usb_put_dev(vb->usb_dev); in vprbrd_disconnect()
[all …]
/linux/include/media/
A Dvideobuf2-core.h119 void *(*alloc)(struct vb2_buffer *vb,
127 void *(*get_userptr)(struct vb2_buffer *vb,
430 int (*buf_init)(struct vb2_buffer *vb);
431 int (*buf_prepare)(struct vb2_buffer *vb);
438 void (*buf_queue)(struct vb2_buffer *vb);
1158 if (plane_no < vb->num_planes) in vb2_set_plane_payload()
1159 vb->planes[plane_no].bytesused = size; in vb2_set_plane_payload()
1171 if (plane_no < vb->num_planes) in vb2_get_plane_payload()
1172 return vb->planes[plane_no].bytesused; in vb2_get_plane_payload()
1185 if (plane_no < vb->num_planes) in vb2_plane_size()
[all …]
/linux/include/trace/events/
A Dvb2.h12 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
13 TP_ARGS(q, vb),
30 __entry->index = vb->index;
31 __entry->type = vb->type;
32 __entry->bytesused = vb->planes[0].bytesused;
33 __entry->timestamp = vb->timestamp;
47 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
48 TP_ARGS(q, vb)
53 TP_ARGS(q, vb)
58 TP_ARGS(q, vb)
[all …]
/linux/drivers/media/test-drivers/vivid/
A Dvivid-meta-cap.c40 static int meta_cap_buf_prepare(struct vb2_buffer *vb) in meta_cap_buf_prepare() argument
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()
98 vb2_buffer_done(&buf->vb.vb2_buf, in meta_cap_start_streaming()
168 buf->vb.sequence = dev->meta_cap_seq_count; in vivid_meta_cap_fillbuff()
170 buf->vb.sequence /= 2; in vivid_meta_cap_fillbuff()
174 meta->sof = buf->vb.sequence * 30; in vivid_meta_cap_fillbuff()
[all …]
A Dvivid-kthread-out.c89 vid_out_buf->vb.sequence = dev->vid_out_seq_count; in vivid_thread_vid_out_tick()
95 vid_out_buf->vb.sequence /= 2; in vivid_thread_vid_out_tick()
97 vid_out_buf->vb.vb2_buf.timestamp = in vivid_thread_vid_out_tick()
102 vid_out_buf->vb.vb2_buf.index); in vivid_thread_vid_out_tick()
114 vbi_out_buf->vb.vb2_buf.timestamp = in vivid_thread_vid_out_tick()
119 vbi_out_buf->vb.vb2_buf.index); in vivid_thread_vid_out_tick()
128 meta_out_buf->vb.vb2_buf.timestamp = in vivid_thread_vid_out_tick()
133 meta_out_buf->vb.vb2_buf.index); in vivid_thread_vid_out_tick()
313 buf->vb.vb2_buf.index); in vivid_stop_generating_vid_out()
328 buf->vb.vb2_buf.index); in vivid_stop_generating_vid_out()
[all …]
A 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()
98 vb2_buffer_done(&buf->vb.vb2_buf, in meta_out_start_streaming()
114 static void meta_out_buf_request_complete(struct vb2_buffer *vb) in meta_out_buf_request_complete() argument
[all …]
A 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()
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()
162 if (vb2_plane_size(vb, 0) < size) { in vbi_cap_buf_prepare()
164 __func__, vb2_plane_size(vb, 0), size); in vbi_cap_buf_prepare()
167 vb2_set_plane_payload(vb, 0, size); in vbi_cap_buf_prepare()
[all …]
/linux/drivers/media/platform/
A Dfsl-viu.c323 } else if (prev->vb.width == buf->vb.width && in restart_video_queue()
324 prev->vb.height == buf->vb.height && in restart_video_queue()
375 struct videobuf_buffer *vb = &buf->vb; in free_buffer() local
420 buf->vb.width; in buffer_activate()
443 struct viu_buf *buf = container_of(vb, struct viu_buf, vb); in buffer_prepare()
452 if (buf->vb.baddr != 0 && buf->vb.bsize < buf->vb.size) in buffer_prepare()
515 if (prev->vb.width == buf->vb.width && in buffer_queue()
516 prev->vb.height == buf->vb.height && in buffer_queue()
534 struct viu_buf *buf = container_of(vb, struct viu_buf, vb); in buffer_release()
956 vb.queue); in viu_activate_next_buf()
[all …]
/linux/drivers/media/pci/bt8xx/
A Dbttv-risc.c601 list_del(&vbi->vb.queue); in bttv_buffer_activate_vbi()
703 buf->fmt->fourcc, buf->vb.width, buf->vb.height); in bttv_buffer_risc()
710 bttv_calc_geo(btv,&buf->geo,buf->vb.width,buf->vb.height, in bttv_buffer_risc()
714 switch (buf->vb.field) { in bttv_buffer_risc()
719 buf->vb.height); in bttv_buffer_risc()
748 uoffset = buf->vb.width * buf->vb.height; in bttv_buffer_risc()
749 voffset = buf->vb.width * buf->vb.height; in bttv_buffer_risc()
762 switch (buf->vb.field) { in bttv_buffer_risc()
768 0,buf->vb.width,0,buf->vb.height, in bttv_buffer_risc()
774 buf->vb.height,0, in bttv_buffer_risc()
[all …]
A 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()
104 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) 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()
203 struct bttv_buffer *buf = container_of(vb,struct bttv_buffer,vb); in vbi_buffer_queue()
205 dprintk("queue %p\n",vb); in vbi_buffer_queue()
206 buf->vb.state = VIDEOBUF_QUEUED; in vbi_buffer_queue()
218 struct bttv_buffer *buf = container_of(vb,struct bttv_buffer,vb); in vbi_buffer_release()
[all …]
/linux/drivers/media/usb/au0828/
A 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 …]
/linux/drivers/iio/adc/
A 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 …]
/linux/drivers/media/usb/em28xx/
A Dem28xx-vbi.c54 static int vbi_buffer_prepare(struct vb2_buffer *vb) in vbi_buffer_prepare() argument
56 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_prepare()
62 if (vb2_plane_size(vb, 0) < size) { in vbi_buffer_prepare()
65 __func__, vb2_plane_size(vb, 0), size); in vbi_buffer_prepare()
68 vb2_set_plane_payload(vb, 0, size); in vbi_buffer_prepare()
74 vbi_buffer_queue(struct vb2_buffer *vb) in vbi_buffer_queue() argument
76 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_buffer_queue()
77 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue()
79 container_of(vbuf, struct em28xx_buffer, vb); in vbi_buffer_queue()
83 buf->mem = vb2_plane_vaddr(vb, 0); in vbi_buffer_queue()
[all …]
/linux/drivers/i2c/busses/
A Di2c-viperboard.c45 ret = usb_control_msg(vb->usb_dev, usb_rcvctrlpipe(vb->usb_dev, 0), in vprbrd_i2c_status()
118 (struct vprbrd_i2c_read_msg *)vb->buf; in vprbrd_i2c_read()
255 ret = usb_bulk_msg(vb->usb_dev, in vprbrd_i2c_write()
256 usb_sndbulkpipe(vb->usb_dev, in vprbrd_i2c_write()
286 mutex_lock(&vb->lock); in vprbrd_i2c_xfer()
301 ret = vprbrd_i2c_read(vb, pmsg); in vprbrd_i2c_xfer()
313 ret = vprbrd_i2c_write(vb, pmsg); in vprbrd_i2c_xfer()
333 mutex_unlock(&vb->lock); in vprbrd_i2c_xfer()
337 mutex_unlock(&vb->lock); in vprbrd_i2c_xfer()
373 vb_i2c->i2c.algo_data = vb; in vprbrd_i2c_probe()
[all …]
/linux/drivers/media/pci/cx88/
A 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
132 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; 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()
154 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument
157 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_finish()
167 static void buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument
170 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_queue()
183 buf, buf->vb.vb2_buf.index); in buffer_queue()
[all …]
/linux/block/partitions/
A Dldm.c574 struct vblk *vb; in ldm_create_data_partitions() local
1118 BUG_ON (!buf || !vb); in ldm_parse_vblk()
1129 ldm_get_vstr (buf+0x18+r_objid, vb->name, sizeof (vb->name)); in ldm_parse_vblk()
1131 switch (vb->type) { in ldm_parse_vblk()
1143 (unsigned long long) vb->obj_id, vb->type); in ldm_parse_vblk()
1146 (unsigned long long) vb->obj_id, vb->type); in ldm_parse_vblk()
1167 struct vblk *vb; in ldm_ldmdb_add() local
1172 vb = kmalloc (sizeof (*vb), GFP_KERNEL); in ldm_ldmdb_add()
1173 if (!vb) { in ldm_ldmdb_add()
1179 kfree(vb); in ldm_ldmdb_add()
[all …]
/linux/drivers/media/pci/cx23885/
A Dcx23885-vbi.c128 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument
131 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare()
133 struct cx23885_buffer, vb); in buffer_prepare()
152 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument
156 struct cx23885_buffer, vb); in buffer_finish()
158 cx23885_free_buffer(vb->vb2_queue->drv_priv, buf); in buffer_finish()
182 static void buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument
185 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_queue()
187 struct cx23885_buffer, vb); in buffer_queue()
202 buf, buf->vb.vb2_buf.index); in buffer_queue()
[all …]
/linux/drivers/media/v4l2-core/
A Dv4l2-compat-ioctl32.c413 memset(vb, 0, sizeof(*vb)); in get_v4l2_buffer32()
430 switch (vb->memory) { in get_v4l2_buffer32()
474 switch (vb->memory) { in get_v4l2_buffer32_time32()
502 .index = vb->index, in put_v4l2_buffer32()
503 .type = vb->type, in put_v4l2_buffer32()
505 .flags = vb->flags, in put_v4l2_buffer32()
506 .field = vb->field, in put_v4l2_buffer32()
517 switch (vb->memory) { in put_v4l2_buffer32()
547 .index = vb->index, in put_v4l2_buffer32_time32()
548 .type = vb->type, in put_v4l2_buffer32_time32()
[all …]
/linux/drivers/media/dvb-core/
A Ddvb_vb2.c54 static int _buffer_prepare(struct vb2_buffer *vb) in _buffer_prepare() argument
59 if (vb2_plane_size(vb, 0) < size) { in _buffer_prepare()
61 ctx->name, vb2_plane_size(vb, 0), size); in _buffer_prepare()
65 vb2_set_plane_payload(vb, 0, size); in _buffer_prepare()
71 static void _buffer_queue(struct vb2_buffer *vb) in _buffer_queue() argument
74 struct dvb_buffer *buf = container_of(vb, struct dvb_buffer, vb); in _buffer_queue()
142 b->index = vb->index; in _fill_dmx_buffer()
143 b->length = vb->planes[0].length; in _fill_dmx_buffer()
144 b->bytesused = vb->planes[0].bytesused; in _fill_dmx_buffer()
145 b->offset = vb->planes[0].m.offset; in _fill_dmx_buffer()
[all …]
/linux/drivers/media/platform/mtk-vcodec/
A Dmtk_vcodec_dec_stateful.c74 struct vb2_v4l2_buffer *vb; in get_display_buffer() local
90 vb = &dstbuf->m2m_buf.vb; in get_display_buffer()
95 vb2_set_plane_payload(&vb->vb2_buf, 1, in get_display_buffer()
106 return &vb->vb2_buf; in get_display_buffer()
121 struct vb2_v4l2_buffer *vb; in get_free_buffer() local
138 vb = &dstbuf->m2m_buf.vb; in get_free_buffer()
169 vb->vb2_buf.index); in get_free_buffer()
189 return &vb->vb2_buf; in get_free_buffer()
442 vb->vb2_queue->type, vb->index, vb); in vb2ops_vdec_stateful_buf_queue()
449 vb2_v4l2 = to_vb2_v4l2_buffer(vb); in vb2ops_vdec_stateful_buf_queue()
[all …]

Completed in 70 milliseconds

12345678910>>...12