Home
last modified time | relevance | path

Searched refs:vub (Results 1 – 7 of 7) sorted by relevance

/openbmc/qemu/hw/virtio/
H A Dvhost-user-base.c24 VHostUserBase *vub = VHOST_USER_BASE(vdev); in vub_start() local
32 ret = vhost_dev_enable_notifiers(&vub->vhost_dev, vdev); in vub_start()
38 ret = k->set_guest_notifiers(qbus->parent, vub->vhost_dev.nvqs, true); in vub_start()
44 vub->vhost_dev.acked_features = vdev->guest_features; in vub_start()
46 ret = vhost_dev_start(&vub->vhost_dev, vdev, true); in vub_start()
57 for (i = 0; i < vub->vhost_dev.nvqs; i++) { in vub_start()
58 vhost_virtqueue_mask(&vub->vhost_dev, vdev, i, false); in vub_start()
64 k->set_guest_notifiers(qbus->parent, vub->vhost_dev.nvqs, false); in vub_start()
66 vhost_dev_disable_notifiers(&vub->vhost_dev, vdev); in vub_start()
71 VHostUserBase *vub = VHOST_USER_BASE(vdev); in vub_stop() local
[all …]
H A Dvhost-user-snd.c31 VHostUserBase *vub = VHOST_USER_BASE(dev); in vu_snd_base_realize() local
34 vub->virtio_id = VIRTIO_ID_SOUND; in vu_snd_base_realize()
35 vub->num_vqs = 4; in vu_snd_base_realize()
36 vub->config_size = sizeof(struct virtio_snd_config); in vu_snd_base_realize()
37 vub->vq_size = 64; in vu_snd_base_realize()
H A Dvhost-user-input.c17 VHostUserBase *vub = VHOST_USER_BASE(dev); in vinput_realize() local
21 vub->virtio_id = VIRTIO_ID_INPUT; in vinput_realize()
22 vub->num_vqs = 2; in vinput_realize()
23 vub->vq_size = 4; in vinput_realize()
24 vub->config_size = sizeof(virtio_input_config); in vinput_realize()
H A Dvhost-user-gpio.c24 VHostUserBase *vub = VHOST_USER_BASE(dev); in vgpio_realize() local
28 vub->virtio_id = VIRTIO_ID_GPIO; in vgpio_realize()
29 vub->num_vqs = 2; in vgpio_realize()
30 vub->config_size = sizeof(struct virtio_gpio_config); in vgpio_realize()
H A Dvhost-user-rng.c30 VHostUserBase *vub = VHOST_USER_BASE(dev); in vu_rng_base_realize() local
34 vub->virtio_id = VIRTIO_ID_RNG; in vu_rng_base_realize()
35 vub->num_vqs = 1; in vu_rng_base_realize()
36 vub->vq_size = 4; in vu_rng_base_realize()
H A Dvhost-user-i2c.c24 VHostUserBase *vub = VHOST_USER_BASE(dev); in vi2c_realize() local
28 vub->virtio_id = VIRTIO_ID_I2C_ADAPTER; in vi2c_realize()
29 vub->num_vqs = 1; in vi2c_realize()
30 vub->vq_size = 4; in vi2c_realize()
H A Dvhost-user-device-pci.c18 VHostUserBase vub; member
28 DeviceState *vdev = DEVICE(&dev->vub); in OBJECT_DECLARE_SIMPLE_TYPE()
55 virtio_instance_init_common(obj, &dev->vub, sizeof(dev->vub), in vhost_user_device_pci_instance_init()