/linux-6.12.1/drivers/virtio/ |
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 …]
|
/linux-6.12.1/drivers/vhost/ |
D | vdpa.c | 50 struct vdpa_device *vdpa; member 110 if (asid >= v->vdpa->nas) in vhost_vdpa_alloc_as() 137 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_reset_map() local 138 const struct vdpa_config_ops *ops = vdpa->config; in vhost_vdpa_reset_map() 141 ops->reset_map(vdpa, asid); in vhost_vdpa_reset_map() 171 const struct vdpa_config_ops *ops = v->vdpa->config; in handle_vq_kick() 173 ops->kick_vq(v->vdpa, vq - v->vqs); in handle_vq_kick() 201 const struct vdpa_config_ops *ops = v->vdpa->config; in vhost_vdpa_setup_vq_irq() 202 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_setup_vq_irq() local 208 irq = ops->get_vq_irq(vdpa, qid); in vhost_vdpa_setup_vq_irq() [all …]
|
D | Makefile | 14 vhost_vdpa-y := vdpa.o
|
/linux-6.12.1/drivers/vdpa/alibaba/ |
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-6.12.1/drivers/vdpa/virtio_pci/ |
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-6.12.1/drivers/vdpa/vdpa_sim/ |
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() 197 struct vdpa_device *vdpa; in vdpasim_create() local 218 vdpa = __vdpa_alloc_device(NULL, ops, in vdpasim_create() 222 if (IS_ERR(vdpa)) { in vdpasim_create() 223 ret = PTR_ERR(vdpa); in vdpasim_create() 227 vdpasim = vdpa_to_sim(vdpa); in vdpasim_create() 229 dev = &vdpasim->vdpa.dev; in vdpasim_create() 243 vdpasim->vdpa.mdev = dev_attr->mgmt_dev; in vdpasim_create() 275 vdpasim->vdpa.dma_dev = dev; in vdpasim_create() [all …]
|
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 …]
|
D | vdpa_sim_net.c | 420 struct vdpasim *vdpasim = container_of(dev, struct vdpasim, vdpa); in vdpasim_net_set_attr() 510 ret = _vdpa_register_device(&simdev->vdpa, VDPASIM_NET_VQ_NUM); in vdpasim_net_dev_add() 517 put_device(&simdev->vdpa.dev); in vdpasim_net_dev_add() 524 struct vdpasim *simdev = container_of(dev, struct vdpasim, vdpa); in vdpasim_net_dev_del() 526 _vdpa_unregister_device(&simdev->vdpa); in vdpasim_net_dev_del()
|
D | vdpa_sim.h | 58 struct vdpa_device vdpa; member
|
/linux-6.12.1/drivers/vdpa/vdpa_user/ |
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 …]
|
/linux-6.12.1/Documentation/ABI/testing/ |
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-6.12.1/Documentation/networking/device_drivers/ethernet/amd/ |
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-6.12.1/drivers/vdpa/pds/ |
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-6.12.1/drivers/vdpa/ifcvf/ |
D | ifcvf_main.c | 354 return container_of(vdpa_dev, struct ifcvf_adapter, vdpa); in vdpa_to_adapter() 562 static u32 ifcvf_vdpa_get_vq_group(struct vdpa_device *vdpa, u16 idx) in ifcvf_vdpa_get_vq_group() argument 707 adapter = vdpa_alloc_device(struct ifcvf_adapter, vdpa, in ifcvf_vdpa_dev_add() 716 adapter->vdpa.dma_dev = &pdev->dev; in ifcvf_vdpa_dev_add() 717 adapter->vdpa.mdev = mdev; in ifcvf_vdpa_dev_add() 719 vdpa_dev = &adapter->vdpa; in ifcvf_vdpa_dev_add() 737 ret = _vdpa_register_device(&adapter->vdpa, vf->nr_vring); in ifcvf_vdpa_dev_add() 739 put_device(&adapter->vdpa.dev); in ifcvf_vdpa_dev_add()
|
D | ifcvf_base.h | 94 struct vdpa_device vdpa; member
|
/linux-6.12.1/drivers/vdpa/octeon_ep/ |
D | octep_vdpa_main.c | 23 struct vdpa_device vdpa; member 42 oct_vdpa = container_of(vdpa_dev, struct octep_vdpa, vdpa); in vdpa_to_octep_hw() 475 oct_vdpa = vdpa_alloc_device(struct octep_vdpa, vdpa, &pdev->dev, &octep_vdpa_ops, 1, 1, in octep_vdpa_dev_add() 483 oct_vdpa->vdpa.dma_dev = &pdev->dev; in octep_vdpa_dev_add() 484 oct_vdpa->vdpa.mdev = mdev; in octep_vdpa_dev_add() 486 vdpa_dev = &oct_vdpa->vdpa; in octep_vdpa_dev_add() 515 ret = _vdpa_register_device(&oct_vdpa->vdpa, oct_hw->nr_vring); in octep_vdpa_dev_add() 523 put_device(&oct_vdpa->vdpa.dev); in octep_vdpa_dev_add()
|
/linux-6.12.1/drivers/vdpa/solidrun/ |
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()
|
D | snet_vdpa.h | 56 struct vdpa_device vdpa; member
|
/linux-6.12.1/drivers/vdpa/mlx5/ |
D | Makefile | 1 subdir-ccflags-y += -I$(srctree)/drivers/vdpa/mlx5/core
|
/linux-6.12.1/drivers/vdpa/ |
D | Makefile | 2 obj-$(CONFIG_VDPA) += vdpa.o
|
D | Kconfig | 87 cat /sys/kernel/debug/mlx5/mlx5_core.sf.1/vdpa-0/rx/untagged/ucast/packets 88 cat /sys/kernel/debug/mlx5/mlx5_core.sf.1/vdpa-0/rx/untagged/mcast/bytes
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/ |
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-6.12.1/drivers/ |
D | Makefile | 50 obj-$(CONFIG_VDPA) += vdpa/
|
D | Kconfig | 142 source "drivers/vdpa/Kconfig"
|
/linux-6.12.1/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/ |
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
|