Home
last modified time | relevance | path

Searched refs:config_size (Results 1 – 25 of 31) sorted by relevance

12

/qemu/hw/virtio/
H A Dvdpa-dev.c127 v->config_size = vhost_vdpa_device_get_u32(v->vhostfd, in vhost_vdpa_device_realize()
142 v->config = g_malloc0(v->config_size); in vhost_vdpa_device_realize()
144 ret = vhost_dev_get_config(&v->dev, v->config, v->config_size, NULL); in vhost_vdpa_device_realize()
150 virtio_init(vdev, v->vdev_id, v->config_size); in vhost_vdpa_device_realize()
200 ret = vhost_dev_get_config(&s->dev, s->config, s->config_size, in vhost_vdpa_device_get_config()
206 memcpy(config, s->config, s->config_size); in vhost_vdpa_device_get_config()
215 ret = vhost_dev_set_config(&s->dev, s->config, 0, s->config_size, in vhost_vdpa_device_set_config()
H A Dvhost-user-base.c140 g_assert(vub->config_size && vub->vhost_user.supports_config == true); in vub_get_config()
143 vub->config_size, &local_err)) { in vub_get_config()
153 g_assert(vub->config_size && vub->vhost_user.supports_config == true); in vub_set_config()
156 0, vub->config_size, in vub_set_config()
304 if (vub->config_size) { in vub_device_realize()
312 virtio_init(vdev, vub->virtio_id, vub->config_size); in vub_device_realize()
H A Dvhost-user-device.c37 DEFINE_PROP_UINT32("config_size", VHostUserBase, config_size, 0),
H A Dvhost-user-input.c23 vub->config_size = sizeof(virtio_input_config); in vinput_realize()
H A Dvhost-user-gpio.c29 vub->config_size = sizeof(struct virtio_gpio_config); in vgpio_realize()
H A Dvhost-user-snd.c50 vub->config_size = virtio_get_config_size(&cfg_size_params, in vu_snd_base_realize()
H A Dvhost-vdpa.c983 unsigned long config_size = offsetof(struct vhost_vdpa_config, buf); in vhost_vdpa_set_config() local
986 config = g_malloc(size + config_size); in vhost_vdpa_set_config()
1003 unsigned long config_size = offsetof(struct vhost_vdpa_config, buf); in vhost_vdpa_get_config() local
1007 v_config = g_malloc(config_len + config_size); in vhost_vdpa_get_config()
H A Dvirtio-crypto.c1076 virtio_init(vdev, VIRTIO_ID_CRYPTO, vcrypto->config_size); in virtio_crypto_device_realize()
1159 memcpy(config, &crypto_cfg, c->config_size); in virtio_crypto_get_config()
1295 vcrypto->config_size = sizeof(struct virtio_crypto_config); in virtio_crypto_instance_init()
/qemu/hw/9pfs/
H A Dvirtio-9p-device.c109 memcpy(config, cfg, v->config_size); in virtio_9p_get_config()
218 v->config_size = sizeof(struct virtio_9p_config) + strlen(s->fsconf.tag); in virtio_9p_device_realize()
219 virtio_init(vdev, VIRTIO_ID_9P, v->config_size); in virtio_9p_device_realize()
H A Dvirtio-9p.h12 size_t config_size; member
/qemu/include/hw/virtio/
H A Dvdpa-dev.h37 int config_size; member
H A Dvhost-user-base.h27 uint32_t config_size; member
H A Dvirtio-crypto.h97 size_t config_size; member
H A Dvirtio-blk.h75 size_t config_size; member
H A Dvirtio-net.h209 size_t config_size; member
/qemu/subprojects/libvduse/
H A Dlibvduse.h234 uint16_t num_queues, uint32_t config_size,
H A Dlibvduse.c1275 uint16_t num_queues, uint32_t config_size, in vduse_dev_create() argument
1286 !config_size || !ops || !ops->enable_queue || !ops->disable_queue) { in vduse_dev_create()
1311 dev_config = calloc(size + config_size, 1); in vduse_dev_create()
1324 dev_config->config_size = config_size; in vduse_dev_create()
1325 memcpy(dev_config->config, config, config_size); in vduse_dev_create()
/qemu/hw/block/
H A Dvhost-user-blk.c450 size_t config_size; in vhost_user_blk_device_realize() local
481 config_size = virtio_get_config_size(&virtio_blk_cfg_size_params, in vhost_user_blk_device_realize()
483 virtio_init(vdev, VIRTIO_ID_BLOCK, config_size); in vhost_user_blk_device_realize()
H A Dvirtio-blk.c1227 memcpy(config, &blkcfg, s->config_size); in virtio_blk_update_config()
1235 memcpy(&blkcfg, config, s->config_size); in virtio_blk_set_config()
1771 s->config_size = virtio_get_config_size(&virtio_blk_cfg_size_params, in virtio_blk_device_realize()
1773 virtio_init(vdev, VIRTIO_ID_BLOCK, s->config_size); in virtio_blk_device_realize()
/qemu/linux-headers/linux/
H A Dvduse.h45 __u32 config_size; member
/qemu/hw/vmapple/
H A Dvirtio-blk.c79 g_assert(dev->parent_obj.config_size >= endof(struct virtio_blk_config, zoned)); in vmapple_virtio_blk_get_config()
/qemu/hw/vfio/
H A Dpci.h136 unsigned int config_size; member
/qemu/hw/pci/
H A Dpci.c1023 int config_size = pci_config_size(dev); in pci_init_wmask() local
1033 config_size - PCI_CONFIG_HEADER_SIZE); in pci_init_wmask()
1160 int config_size = pci_config_size(pci_dev); in pci_config_alloc() local
1162 pci_dev->config = g_malloc0(config_size); in pci_config_alloc()
1163 pci_dev->cmask = g_malloc0(config_size); in pci_config_alloc()
1164 pci_dev->wmask = g_malloc0(config_size); in pci_config_alloc()
1165 pci_dev->w1cmask = g_malloc0(config_size); in pci_config_alloc()
1166 pci_dev->used = g_malloc0(config_size); in pci_config_alloc()
/qemu/hw/char/
H A Dvirtio-serial-bus.c1028 size_t config_size = sizeof(struct virtio_console_config); in virtio_serial_device_realize() local
1045 config_size = offsetof(struct virtio_console_config, emerg_wr); in virtio_serial_device_realize()
1047 virtio_init(vdev, VIRTIO_ID_CONSOLE, config_size); in virtio_serial_device_realize()
/qemu/docs/system/devices/
H A Dvhost-user.rst74 - The ``config_size`` if needed

12