/openbmc/linux/drivers/virtio/ |
H A D | virtio_vdpa.c | 29 struct vdpa_device *vdpa; member 54 return to_virtio_vdpa_device(vdev)->vdpa; in vd_get_vdpa() 60 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_get() local 62 vdpa_get_config(vdpa, offset, buf, len); in virtio_vdpa_get() 68 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_set() local 70 vdpa_set_config(vdpa, offset, buf, len); in virtio_vdpa_set() 75 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_generation() local 76 const struct vdpa_config_ops *ops = vdpa->config; in virtio_vdpa_generation() 79 return ops->get_generation(vdpa); in virtio_vdpa_generation() 86 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_get_status() local [all …]
|
/openbmc/linux/drivers/vdpa/alibaba/ |
H A D | eni_vdpa.c | 39 struct vdpa_device vdpa; member 49 static struct eni_vdpa *vdpa_to_eni(struct vdpa_device *vdpa) in vdpa_to_eni() argument 51 return container_of(vdpa, struct eni_vdpa, vdpa); in vdpa_to_eni() 54 static struct virtio_pci_legacy_device *vdpa_to_ldev(struct vdpa_device *vdpa) in vdpa_to_ldev() argument 56 struct eni_vdpa *eni_vdpa = vdpa_to_eni(vdpa); in vdpa_to_ldev() 61 static u64 eni_vdpa_get_device_features(struct vdpa_device *vdpa) in eni_vdpa_get_device_features() argument 63 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa); in eni_vdpa_get_device_features() 72 static int eni_vdpa_set_driver_features(struct vdpa_device *vdpa, u64 features) in eni_vdpa_set_driver_features() argument 74 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa); in eni_vdpa_set_driver_features() 87 static u64 eni_vdpa_get_driver_features(struct vdpa_device *vdpa) in eni_vdpa_get_driver_features() argument [all …]
|
/openbmc/linux/drivers/vhost/ |
H A D | vdpa.c | 50 struct vdpa_device *vdpa; member 109 if (asid >= v->vdpa->nas) in vhost_vdpa_alloc_as() 153 const struct vdpa_config_ops *ops = v->vdpa->config; in handle_vq_kick() 155 ops->kick_vq(v->vdpa, vq - v->vqs); in handle_vq_kick() 183 const struct vdpa_config_ops *ops = v->vdpa->config; in vhost_vdpa_setup_vq_irq() 184 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_setup_vq_irq() local 190 irq = ops->get_vq_irq(vdpa, qid); in vhost_vdpa_setup_vq_irq() 213 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_reset() local 217 return vdpa_reset(vdpa); in vhost_vdpa_reset() 222 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_bind_mm() local [all …]
|
H A D | Makefile | 14 vhost_vdpa-y := vdpa.o
|
/openbmc/linux/drivers/vdpa/virtio_pci/ |
H A D | vp_vdpa.c | 35 struct vdpa_device vdpa; member 52 static struct vp_vdpa *vdpa_to_vp(struct vdpa_device *vdpa) in vdpa_to_vp() argument 54 return container_of(vdpa, struct vp_vdpa, vdpa); in vdpa_to_vp() 57 static struct virtio_pci_modern_device *vdpa_to_mdev(struct vdpa_device *vdpa) in vdpa_to_mdev() argument 59 struct vp_vdpa *vp_vdpa = vdpa_to_vp(vdpa); in vdpa_to_mdev() 69 static u64 vp_vdpa_get_device_features(struct vdpa_device *vdpa) in vp_vdpa_get_device_features() argument 71 struct vp_vdpa *vp_vdpa = vdpa_to_vp(vdpa); in vp_vdpa_get_device_features() 76 static int vp_vdpa_set_driver_features(struct vdpa_device *vdpa, u64 features) in vp_vdpa_set_driver_features() argument 78 struct virtio_pci_modern_device *mdev = vdpa_to_mdev(vdpa); in vp_vdpa_set_driver_features() 85 static u64 vp_vdpa_get_driver_features(struct vdpa_device *vdpa) in vp_vdpa_get_driver_features() argument [all …]
|
/openbmc/linux/drivers/vdpa/vdpa_sim/ |
H A D | vdpa_sim.c | 77 static struct vdpasim *vdpa_to_sim(struct vdpa_device *vdpa) in vdpa_to_sim() argument 79 return container_of(vdpa, struct vdpasim, vdpa); in vdpa_to_sim() 195 struct vdpa_device *vdpa; in vdpasim_create() local 216 vdpa = __vdpa_alloc_device(NULL, ops, in vdpasim_create() 220 if (IS_ERR(vdpa)) { in vdpasim_create() 221 ret = PTR_ERR(vdpa); in vdpasim_create() 225 vdpasim = vdpa_to_sim(vdpa); in vdpasim_create() 227 dev = &vdpasim->vdpa.dev; in vdpasim_create() 241 vdpasim->vdpa.mdev = dev_attr->mgmt_dev; in vdpasim_create() 269 vdpasim->vdpa.dma_dev = dev; in vdpasim_create() [all …]
|
H A D | vdpa_sim_blk.c | 83 dev_dbg(&vdpasim->vdpa.dev, in vdpasim_blk_check_range() 89 dev_dbg(&vdpasim->vdpa.dev, in vdpasim_blk_check_range() 96 dev_dbg(&vdpasim->vdpa.dev, in vdpasim_blk_check_range() 129 dev_dbg(&vdpasim->vdpa.dev, "missing headers - out_iov: %u in_iov %u\n", in vdpasim_blk_handle_req() 135 dev_dbg(&vdpasim->vdpa.dev, "request in header too short\n"); in vdpasim_blk_handle_req() 149 dev_dbg(&vdpasim->vdpa.dev, "request out header too short\n"); in vdpasim_blk_handle_req() 162 dev_dbg(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req() 183 dev_dbg(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req() 206 dev_dbg(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req() 219 dev_dbg(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req() [all …]
|
H A D | vdpa_sim_net.c | 492 ret = _vdpa_register_device(&simdev->vdpa, VDPASIM_NET_VQ_NUM); in vdpasim_net_dev_add() 499 put_device(&simdev->vdpa.dev); in vdpasim_net_dev_add() 506 struct vdpasim *simdev = container_of(dev, struct vdpasim, vdpa); in vdpasim_net_dev_del() 508 _vdpa_unregister_device(&simdev->vdpa); in vdpasim_net_dev_del()
|
/openbmc/linux/drivers/vdpa/vdpa_user/ |
H A D | vduse_dev.c | 75 struct vdpa_device vdpa; member 149 static inline struct vduse_dev *vdpa_to_vduse(struct vdpa_device *vdpa) in vdpa_to_vduse() argument 151 struct vduse_vdpa *vdev = container_of(vdpa, struct vduse_vdpa, vdpa); in vdpa_to_vduse() 158 struct vdpa_device *vdpa = dev_to_vdpa(dev); in dev_to_vduse() local 160 return vdpa_to_vduse(vdpa); in dev_to_vduse() 478 static int vduse_vdpa_set_vq_address(struct vdpa_device *vdpa, u16 idx, in vduse_vdpa_set_vq_address() argument 482 struct vduse_dev *dev = vdpa_to_vduse(vdpa); in vduse_vdpa_set_vq_address() 514 static void vduse_vdpa_kick_vq(struct vdpa_device *vdpa, u16 idx) in vduse_vdpa_kick_vq() argument 516 struct vduse_dev *dev = vdpa_to_vduse(vdpa); in vduse_vdpa_kick_vq() 526 static void vduse_vdpa_set_vq_cb(struct vdpa_device *vdpa, u16 idx, in vduse_vdpa_set_vq_cb() argument [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-vdpa | 1 What: /sys/bus/vdpa/driver_autoprobe 13 What: /sys/bus/vdpa/driver_probe 20 This can be useful when /sys/bus/vdpa/driver_autoprobe is 23 What: /sys/bus/vdpa/drivers/.../bind 31 What: /sys/bus/vdpa/drivers/.../unbind 39 What: /sys/bus/vdpa/devices/.../driver_override 47 driver_override file (echo vhost-vdpa > driver_override) and may
|
/openbmc/qemu/net/ |
H A D | trace-events | 27 # vhost-vdpa.c 29 vhost_vdpa_net_load_cmd(void *s, uint8_t class, uint8_t cmd, int data_num, int data_size) "vdpa sta… 30 vhost_vdpa_net_load_cmd_retval(void *s, uint8_t class, uint8_t cmd, int r) "vdpa state: %p class: %… 31 vhost_vdpa_net_load_mq(void *s, int ncurqps) "vdpa state: %p current_qpairs: %d"
|
H A D | meson.build | 60 …m_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-vdpa.c'), if_false: files('vhost-vdpa-st…
|
/openbmc/linux/Documentation/networking/device_drivers/ethernet/amd/ |
H A D | pds_vdpa.rst | 36 modprobe vdpa 48 PDS_VDPA_MGMT=`vdpa mgmtdev show | grep vDPA | head -1 | cut -d: -f1` 51 vdpa dev add name vdpa1 mgmtdev $PDS_VDPA_MGMT mac 00:11:22:33:44:55 53 # Set up an ethernet interface on the vdpa device
|
/openbmc/qemu/hw/virtio/ |
H A D | vdpa-dev.c | 116 v->vdpa.shared = g_new0(VhostVDPAShared, 1); in vhost_vdpa_device_realize() 117 v->vdpa.shared->device_fd = v->vhostfd; in vhost_vdpa_device_realize() 118 v->vdpa.shared->iova_range = iova_range; in vhost_vdpa_device_realize() 120 ret = vhost_dev_init(&v->dev, &v->vdpa, VHOST_BACKEND_TYPE_VDPA, 0, NULL); in vhost_vdpa_device_realize() 166 g_free(v->vdpa.shared); in vhost_vdpa_device_realize() 189 g_free(s->vdpa.shared); in vhost_vdpa_device_unrealize()
|
H A D | trace-events | 32 # vhost-vdpa.c 34 vhost_vdpa_dma_map(void *vdpa, int fd, uint32_t msg_type, uint32_t asid, uint64_t iova, uint64_t si… 35 vhost_vdpa_dma_unmap(void *vdpa, int fd, uint32_t msg_type, uint32_t asid, uint64_t iova, uint64_t … 39 vhost_vdpa_listener_region_add(void *vdpa, uint64_t iova, uint64_t llend, void *vaddr, bool readonl… 41 vhost_vdpa_listener_region_del(void *vdpa, uint64_t iova, uint64_t llend) "vdpa: %p iova 0x%"PRIx64… 43 vhost_vdpa_init(void *dev, void *s, void *vdpa) "dev: %p, common dev: %p vdpa: %p" 44 vhost_vdpa_cleanup(void *dev, void *vdpa) "dev: %p vdpa: %p"
|
H A D | meson.build | 8 system_virtio_ss.add(when: 'CONFIG_VHOST_VDPA_DEV', if_true: files('vdpa-dev.c')) 44 system_virtio_ss.add(files('vhost-vdpa.c')) 84 virtio_pci_ss.add(when: 'CONFIG_VHOST_VDPA_DEV', if_true: files('vdpa-dev-pci.c'))
|
/openbmc/linux/drivers/vdpa/pds/ |
H A D | cmds.c | 43 .vdpa.opcode = PDS_VDPA_CMD_RESET, in pds_vdpa_cmd_reset() 44 .vdpa.vdpa_index = pdsv->vdpa_index, in pds_vdpa_cmd_reset() 45 .vdpa.vf_id = cpu_to_le16(pdsv->vdpa_aux->vf_id), in pds_vdpa_cmd_reset() 50 err = pds_client_adminq_cmd(padev, &cmd, sizeof(cmd.vdpa), &comp, 0); in pds_vdpa_cmd_reset()
|
/openbmc/linux/drivers/vdpa/ifcvf/ |
H A D | ifcvf_main.c | 354 return container_of(vdpa_dev, struct ifcvf_adapter, vdpa); in vdpa_to_adapter() 557 static u32 ifcvf_vdpa_get_vq_group(struct vdpa_device *vdpa, u16 idx) in ifcvf_vdpa_get_vq_group() argument 692 adapter = vdpa_alloc_device(struct ifcvf_adapter, vdpa, in ifcvf_vdpa_dev_add() 701 adapter->vdpa.dma_dev = &pdev->dev; in ifcvf_vdpa_dev_add() 702 adapter->vdpa.mdev = mdev; in ifcvf_vdpa_dev_add() 704 vdpa_dev = &adapter->vdpa; in ifcvf_vdpa_dev_add() 722 ret = _vdpa_register_device(&adapter->vdpa, vf->nr_vring); in ifcvf_vdpa_dev_add() 724 put_device(&adapter->vdpa.dev); in ifcvf_vdpa_dev_add()
|
/openbmc/linux/drivers/vdpa/solidrun/ |
H A D | snet_main.c | 33 static struct snet *vdpa_to_snet(struct vdpa_device *vdpa) in vdpa_to_snet() argument 35 return container_of(vdpa, struct snet, vdpa); in vdpa_to_snet() 1012 snet = vdpa_alloc_device(struct snet, vdpa, &pdev->dev, &snet_config_ops, 1, 1, NULL, in snet_vdpa_probe_vf() 1057 snet->vdpa.dma_dev = &pdev->dev; in snet_vdpa_probe_vf() 1060 ret = vdpa_register_device(&snet->vdpa, snet->cfg->vq_num); in snet_vdpa_probe_vf() 1071 put_device(&snet->vdpa.dev); in snet_vdpa_probe_vf() 1104 vdpa_unregister_device(&snet->vdpa); in snet_vdpa_remove_vf()
|
/openbmc/linux/drivers/vdpa/mlx5/ |
H A D | Makefile | 1 subdir-ccflags-y += -I$(srctree)/drivers/vdpa/mlx5/core
|
/openbmc/linux/drivers/vdpa/ |
H A D | Makefile | 2 obj-$(CONFIG_VDPA) += vdpa.o
|
/openbmc/qemu/include/hw/virtio/ |
H A D | vdpa-dev.h | 34 struct vhost_vdpa vdpa; member
|
/openbmc/qemu/docs/interop/ |
H A D | index.rst | 28 vhost-vdpa
|
H A D | vhost-vdpa.rst | 2 Vhost-vdpa Protocol
|
/openbmc/qemu/qapi/ |
H A D | net.json | 501 # Vhost-vdpa network backend 506 # @vhostdev: path of vhost-vdpa device (default:'/dev/vhost-vdpa-0') 508 # @vhostfd: file descriptor of an already opened vhost vdpa device 510 # @queues: number of queues to be created for multiqueue vhost-vdpa 718 # @vhost-vdpa: since 5.1 737 'vhost-vdpa', 772 'vhost-vdpa': 'NetdevVhostVDPAOptions',
|