Home
last modified time | relevance | path

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

12345678910>>...14

/openbmc/linux/drivers/virtio/
H A Dvirtio_balloon.c150 sg_init_one(&sg, vb->pfns, sizeof(vb->pfns[0]) * vb->num_pfns); in tell_host()
237 set_page_pfns(vb, vb->pfns + vb->num_pfns, page); in fill_balloon()
248 tell_host(vb, vb->inflate_vq); in fill_balloon()
286 set_page_pfns(vb, vb->pfns + vb->num_pfns, page); in leak_balloon()
298 tell_host(vb, vb->deflate_vq); in leak_balloon()
788 set_page_pfns(vb, vb->pfns, newpage); in virtballoon_migratepage()
789 tell_host(vb, vb->inflate_vq); in virtballoon_migratepage()
796 set_page_pfns(vb, vb->pfns, page); in virtballoon_migratepage()
797 tell_host(vb, vb->deflate_vq); in virtballoon_migratepage()
1018 leak_balloon(vb, vb->num_pages); in remove_common()
[all …]
/openbmc/linux/drivers/media/common/videobuf2/
H 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()
516 if (vb && vb->planes[0].mem_priv) in __vb2_queue_free()
517 call_void_vb_qop(vb, buf_cleanup, vb); in __vb2_queue_free()
574 vb->cnt_mem_alloc, vb->cnt_mem_put, in __vb2_queue_free()
1120 vb, vb->planes); in __prepare_mmap()
1211 ret = call_vb_qop(vb, buf_init, vb); in __prepare_userptr()
1218 ret = call_vb_qop(vb, buf_prepare, vb); in __prepare_userptr()
1355 ret = call_vb_qop(vb, buf_init, vb); in __prepare_dmabuf()
1389 call_void_vb_qop(vb, buf_queue, vb); in __enqueue_in_driver()
[all …]
H 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 …]
/openbmc/linux/drivers/mfd/
H 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 …]
/openbmc/linux/drivers/gpio/
H 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 …]
/openbmc/linux/drivers/media/usb/go7007/
H A Dgo7007-driver.c383 if (vb && vb->vb.vb2_buf.planes[0].bytesused < GO7007_BUF_SIZE) { in store_byte()
384 u8 *ptr = vb2_plane_vaddr(&vb->vb.vb2_buf, 0); in store_byte()
398 .frame_sequence = vb->vb.sequence, in go7007_set_motion_regions()
456 bytesused = &vb->vb.vb2_buf.planes[0].bytesused; in frame_boundary()
458 vb->vb.sequence = go->next_seq++; in frame_boundary()
464 vb->vb.vb2_buf.timestamp = ktime_get_ns(); in frame_boundary()
518 if (vb && vb->vb.vb2_buf.planes[0].bytesused >= in go7007_parse_video_stream()
521 vb2_set_plane_payload(&vb->vb.vb2_buf, 0, 0); in go7007_parse_video_stream()
598 vb = frame_boundary(go, vb); in go7007_parse_video_stream()
602 vb->vb.vb2_buf.planes[0].bytesused; in go7007_parse_video_stream()
[all …]
/openbmc/linux/include/media/
H A Dvideobuf2-core.h119 void *(*alloc)(struct vb2_buffer *vb,
127 void *(*get_userptr)(struct vb2_buffer *vb,
440 int (*buf_init)(struct vb2_buffer *vb);
450 void (*buf_queue)(struct vb2_buffer *vb);
1176 if (plane_no < vb->num_planes) { in vb2_set_plane_payload()
1178 size = vb->planes[plane_no].length; in vb2_set_plane_payload()
1179 vb->planes[plane_no].bytesused = size; in vb2_set_plane_payload()
1192 if (plane_no < vb->num_planes) in vb2_get_plane_payload()
1193 return vb->planes[plane_no].bytesused; in vb2_get_plane_payload()
1206 if (plane_no < vb->num_planes) in vb2_plane_size()
[all …]
/openbmc/linux/include/trace/events/
H 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 …]
/openbmc/linux/drivers/media/test-drivers/vivid/
H 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 …]
H A Dvivid-kthread-out.c90 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()
103 vid_out_buf->vb.vb2_buf.index); in vivid_thread_vid_out_tick()
115 vbi_out_buf->vb.vb2_buf.timestamp = in vivid_thread_vid_out_tick()
120 vbi_out_buf->vb.vb2_buf.index); in vivid_thread_vid_out_tick()
129 meta_out_buf->vb.vb2_buf.timestamp = in vivid_thread_vid_out_tick()
134 meta_out_buf->vb.vb2_buf.index); in vivid_thread_vid_out_tick()
315 buf->vb.vb2_buf.index); in vivid_stop_generating_vid_out()
330 buf->vb.vb2_buf.index); in vivid_stop_generating_vid_out()
[all …]
H 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 …]
H 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 …]
H A 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()
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()
99 vb2_buffer_done(&buf->vb.vb2_buf, in vbi_out_start_streaming()
120 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_out_buf_request_complete()
[all …]
/openbmc/qemu/target/alpha/
H A Dtranslate.c542 TCGv_i64 va, vb, z; in gen_fcmov() local
545 vb = load_fpr(ctx, rb); in gen_fcmov()
702 TCGv vb; in gen_ieee_arith2() local
726 TCGv vb, vc; in IEEE_ARITH2() local
747 TCGv vb, vc; in gen_ieee_intcvt() local
750 vb = load_fpr(ctx, rb); in gen_ieee_intcvt()
792 TCGv va, vb, vc; in gen_ieee_arith3() local
824 TCGv va, vb, vc; in IEEE_ARITH3() local
1291 gen_helper_halt(vb); in gen_mtpr()
1383 TCGv va, vb, vc, tmp, tmp2; in translate_one() local
[all …]
/openbmc/linux/drivers/media/usb/au0828/
H A Dau0828-vbi.c35 static int vbi_buffer_prepare(struct vb2_buffer *vb) in vbi_buffer_prepare() argument
37 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_prepare()
42 if (vb2_plane_size(vb, 0) < size) { in vbi_buffer_prepare()
44 __func__, vb2_plane_size(vb, 0), size); in vbi_buffer_prepare()
47 vb2_set_plane_payload(vb, 0, size); in vbi_buffer_prepare()
53 vbi_buffer_queue(struct vb2_buffer *vb) in vbi_buffer_queue() argument
55 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue()
56 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_buffer_queue()
58 container_of(vbuf, struct au0828_buffer, vb); in vbi_buffer_queue()
62 buf->mem = vb2_plane_vaddr(vb, 0); in vbi_buffer_queue()
[all …]
/openbmc/linux/drivers/media/usb/em28xx/
H A 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 …]
/openbmc/linux/drivers/iio/adc/
H 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 …]
/openbmc/linux/drivers/media/pci/cx88/
H 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()
153 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument
156 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_finish()
166 static void buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument
169 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_queue()
182 buf, buf->vb.vb2_buf.index); in buffer_queue()
[all …]
/openbmc/linux/drivers/i2c/busses/
H 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 …]
/openbmc/linux/block/partitions/
H A Dldm.c574 struct vblk *vb; in ldm_create_data_partitions() local
1109 BUG_ON (!buf || !vb); in ldm_parse_vblk()
1120 ldm_get_vstr (buf+0x18+r_objid, vb->name, sizeof (vb->name)); in ldm_parse_vblk()
1122 switch (vb->type) { in ldm_parse_vblk()
1134 (unsigned long long) vb->obj_id, vb->type); in ldm_parse_vblk()
1137 (unsigned long long) vb->obj_id, vb->type); in ldm_parse_vblk()
1158 struct vblk *vb; in ldm_ldmdb_add() local
1163 vb = kmalloc (sizeof (*vb), GFP_KERNEL); in ldm_ldmdb_add()
1164 if (!vb) { in ldm_ldmdb_add()
1170 kfree(vb); in ldm_ldmdb_add()
[all …]
/openbmc/linux/drivers/media/pci/cx23885/
H 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 …]
/openbmc/linux/drivers/media/v4l2-core/
H A Dv4l2-compat-ioctl32.c400 memset(vb, 0, sizeof(*vb)); in get_v4l2_buffer32()
417 switch (vb->memory) { in get_v4l2_buffer32()
461 switch (vb->memory) { in get_v4l2_buffer32_time32()
489 .index = vb->index, in put_v4l2_buffer32()
490 .type = vb->type, in put_v4l2_buffer32()
492 .flags = vb->flags, in put_v4l2_buffer32()
493 .field = vb->field, in put_v4l2_buffer32()
504 switch (vb->memory) { in put_v4l2_buffer32()
534 .index = vb->index, in put_v4l2_buffer32_time32()
535 .type = vb->type, in put_v4l2_buffer32_time32()
[all …]
/openbmc/linux/fs/ceph/
H A Dceph_frag.c11 unsigned vb = ceph_frag_value(b); in ceph_frag_compare() local
12 if (va < vb) in ceph_frag_compare()
14 if (va > vb) in ceph_frag_compare()
17 vb = ceph_frag_bits(b); in ceph_frag_compare()
18 if (va < vb) in ceph_frag_compare()
20 if (va > vb) in ceph_frag_compare()
/openbmc/linux/drivers/media/platform/rockchip/rga/
H A 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 …]
/openbmc/linux/drivers/media/dvb-core/
H A Ddvb_vb2.c50 static int _buffer_prepare(struct vb2_buffer *vb) in _buffer_prepare() argument
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
70 struct dvb_buffer *buf = container_of(vb, struct dvb_buffer, vb); in _buffer_queue()
138 b->index = vb->index; in _fill_dmx_buffer()
139 b->length = vb->planes[0].length; in _fill_dmx_buffer()
140 b->bytesused = vb->planes[0].bytesused; in _fill_dmx_buffer()
141 b->offset = vb->planes[0].m.offset; in _fill_dmx_buffer()
[all …]

12345678910>>...14