| /linux/drivers/virtio/ |
| H A D | virtio_vdpa.c | 29 struct vdpa_device *vdpa; member 41 return to_virtio_vdpa_device(vdev)->vdpa; in vd_get_vdpa() 47 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_get() local 49 vdpa_get_config(vdpa, offset, buf, len); in virtio_vdpa_get() 55 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_set() local 57 vdpa_set_config(vdpa, offset, buf, len); in virtio_vdpa_set() 62 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_generation() local 63 const struct vdpa_config_ops *ops = vdpa->config; in virtio_vdpa_generation() 66 return ops->get_generation(vdpa); in virtio_vdpa_generation() 73 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_get_status() local [all …]
|
| /linux/drivers/vhost/ |
| H A D | vdpa.c | 55 struct vdpa_device *vdpa; member 115 if (asid >= v->vdpa->nas) in vhost_vdpa_alloc_as() 144 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_reset_map() local 145 const struct vdpa_config_ops *ops = vdpa->config; in vhost_vdpa_reset_map() 148 ops->reset_map(vdpa, asid); in vhost_vdpa_reset_map() 178 const struct vdpa_config_ops *ops = v->vdpa->config; in handle_vq_kick() 180 ops->kick_vq(v->vdpa, vq - v->vqs); in handle_vq_kick() 208 const struct vdpa_config_ops *ops = v->vdpa->config; in vhost_vdpa_setup_vq_irq() 209 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_setup_vq_irq() local 215 irq = ops->get_vq_irq(vdpa, qid); in vhost_vdpa_setup_vq_irq() [all …]
|
| H A D | Makefile | 14 vhost_vdpa-y := vdpa.o
|
| /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 …]
|
| /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 …]
|
| /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() 198 struct vdpa_device *vdpa; in vdpasim_create() local 221 vdpa = __vdpa_alloc_device(NULL, ops, NULL, in vdpasim_create() 225 if (IS_ERR(vdpa)) { in vdpasim_create() 226 ret = PTR_ERR(vdpa); in vdpasim_create() 230 vdpasim = vdpa_to_sim(vdpa); in vdpasim_create() 232 dev = &vdpasim->vdpa.dev; in vdpasim_create() 249 vdpasim->vdpa.mdev = dev_attr->mgmt_dev; in vdpasim_create() 281 vdpasim->vdpa.vmap.dma_dev = dev; in vdpasim_create() [all …]
|
| H A D | vdpa_sim.h | 58 struct vdpa_device vdpa; member
|
| /linux/drivers/vdpa/vdpa_user/ |
| H A D | vduse_dev.c | 95 struct vdpa_device vdpa; member 187 static inline struct vduse_dev *vdpa_to_vduse(struct vdpa_device *vdpa) in vdpa_to_vduse() argument 189 struct vduse_vdpa *vdev = container_of(vdpa, struct vduse_vdpa, vdpa); in vdpa_to_vduse() 196 struct vdpa_device *vdpa = dev_to_vdpa(dev); in dev_to_vduse() local 198 return vdpa_to_vduse(vdpa); in dev_to_vduse() 554 static int vduse_vdpa_set_vq_address(struct vdpa_device *vdpa, u16 idx, in vduse_vdpa_set_vq_address() argument 558 struct vduse_dev *dev = vdpa_to_vduse(vdpa); in vduse_vdpa_set_vq_address() 593 static void vduse_vdpa_kick_vq(struct vdpa_device *vdpa, u16 idx) in vduse_vdpa_kick_vq() argument 595 struct vduse_dev *dev = vdpa_to_vduse(vdpa); in vduse_vdpa_kick_vq() 605 static void vduse_vdpa_set_vq_cb(struct vdpa_device *vdpa, u16 idx, in vduse_vdpa_set_vq_cb() argument [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-vdpa | 1 What: /sys/bus/vdpa/drivers_autoprobe 13 What: /sys/bus/vdpa/driver_probe 20 This can be useful when /sys/bus/vdpa/drivers_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
|
| /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
|
| /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()
|
| /linux/drivers/vdpa/octeon_ep/ |
| H A D | octep_vdpa_main.c | 30 struct vdpa_device vdpa; member 51 oct_vdpa = container_of(vdpa_dev, struct octep_vdpa, vdpa); in vdpa_to_octep_hw() 563 oct_vdpa = vdpa_alloc_device(struct octep_vdpa, vdpa, &pdev->dev, &octep_vdpa_ops, in octep_vdpa_dev_add() 571 oct_vdpa->vdpa.vmap.dma_dev = &pdev->dev; in octep_vdpa_dev_add() 572 oct_vdpa->vdpa.mdev = mdev; in octep_vdpa_dev_add() 574 vdpa_dev = &oct_vdpa->vdpa; in octep_vdpa_dev_add() 604 ret = _vdpa_register_device(&oct_vdpa->vdpa, oct_hw->nr_vring); in octep_vdpa_dev_add() 613 put_device(&oct_vdpa->vdpa.dev); in octep_vdpa_dev_add() 665 octep_vdpa_dev_del(&mgmt_dev->mdev, &mgmt_dev->oct_vdpa->vdpa); in octep_event_work()
|
| /linux/drivers/vdpa/mlx5/ |
| H A D | Makefile | 1 subdir-ccflags-y += -I$(srctree)/drivers/vdpa/mlx5/core
|
| /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() 1011 snet = vdpa_alloc_device(struct snet, vdpa, &pdev->dev, &snet_config_ops, in snet_vdpa_probe_vf() 1056 snet->vdpa.vmap.dma_dev = &pdev->dev; in snet_vdpa_probe_vf() 1059 ret = vdpa_register_device(&snet->vdpa, snet->cfg->vq_num); in snet_vdpa_probe_vf() 1070 put_device(&snet->vdpa.dev); in snet_vdpa_probe_vf() 1103 vdpa_unregister_device(&snet->vdpa); in snet_vdpa_remove_vf()
|
| H A D | snet_vdpa.h | 56 struct vdpa_device vdpa; member
|
| /linux/drivers/vdpa/ |
| H A D | Makefile | 2 obj-$(CONFIG_VDPA) += vdpa.o
|
| /linux/drivers/vdpa/ifcvf/ |
| H A D | ifcvf_base.h | 94 struct vdpa_device vdpa; member
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | Kconfig | 190 device can support RDMA, netdevice and vdpa device. 200 and vdpa device. It is similar to a SRIOV VF but it doesn't require
|
| /linux/drivers/ |
| H A D | Makefile | 50 obj-$(CONFIG_VDPA) += vdpa/
|
| H A D | Kconfig | 150 source "drivers/vdpa/Kconfig"
|
| /linux/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/ |
| H A D | switchdev.rst | 68 mlx5 supports ETH,rdma and vdpa (vnet) auxiliary devices devlink params (see :ref:`Documentation/ne… 81 devices (netdev, rdma, vdpa, etc.) of the subfunction accesses only assigned
|
| /linux/drivers/vdpa/mlx5/net/ |
| H A D | mlx5_vnet.c | 2907 static u64 mlx5_vdpa_get_backend_features(const struct vdpa_device *vdpa) in mlx5_vdpa_get_backend_features() argument
|
| /linux/ |
| H A D | MAINTAINERS | 12618 F: drivers/vdpa/ifcvf/ 15950 F: drivers/vdpa/octeon_ep/ 16999 F: drivers/vdpa/mlx5/ 21315 F: drivers/vdpa/pds/ 25293 F: drivers/vdpa/solidrun/ 28875 F: Documentation/ABI/testing/sysfs-bus-vdpa 28881 F: drivers/vdpa/ 28883 F: include/linux/vdpa.h
|