/openbmc/linux/drivers/virtio/ |
H A D | virtio_balloon.c | 150 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 D | videobuf2-core.c | 444 q->bufs[vb->index] = vb; in __vb2_queue_alloc() 462 ret = call_vb_qop(vb, buf_init, vb); in __vb2_queue_alloc() 520 if (vb && vb->planes[0].mem_priv) in __vb2_queue_free() 521 call_void_vb_qop(vb, buf_cleanup, vb); in __vb2_queue_free() 578 vb->cnt_mem_alloc, vb->cnt_mem_put, in __vb2_queue_free() 1124 vb, vb->planes); in __prepare_mmap() 1215 ret = call_vb_qop(vb, buf_init, vb); in __prepare_userptr() 1222 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 D | videobuf2-v4l2.c | 71 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 D | viperboard.c | 50 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 D | gpio-viperboard.c | 69 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 D | go7007-driver.c | 383 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 D | videobuf2-core.h | 119 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 D | vb2.h | 12 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 D | vivid-meta-cap.c | 40 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 D | vivid-kthread-out.c | 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() 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 D | vivid-meta-out.c | 40 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 D | vivid-vbi-cap.c | 85 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 D | vivid-vbi-out.c | 40 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 D | translate.c | 693 TCGv vb; in gen_ieee_arith2() local 717 TCGv vb, vc; in IEEE_ARITH2() local 738 TCGv vb, vc; in gen_ieee_intcvt() local 741 vb = load_fpr(ctx, rb); in gen_ieee_intcvt() 748 helper(vc, tcg_env, vb); in gen_ieee_intcvt() 751 helper(vc, tcg_env, vb); in gen_ieee_intcvt() 783 TCGv va, vb, vc; in gen_ieee_arith3() local 815 TCGv va, vb, vc; in IEEE_ARITH3() local 1280 gen_helper_halt(vb); in gen_mtpr() 1372 TCGv va, vb, vc, tmp, tmp2; in translate_one() local [all …]
|
/openbmc/linux/drivers/media/usb/au0828/ |
H A D | au0828-vbi.c | 35 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 D | em28xx-vbi.c | 44 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 D | viperboard_adc.c | 32 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 D | cx88-vbi.c | 108 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 D | i2c-viperboard.c | 45 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 D | ldm.c | 574 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 D | cx23885-vbi.c | 128 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/fs/ceph/ |
H A D | ceph_frag.c | 11 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/v4l2-core/ |
H A D | v4l2-compat-ioctl32.c | 400 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/drivers/media/platform/rockchip/rga/ |
H A D | rga-buf.c | 38 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 D | dvb_vb2.c | 50 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 …]
|