Home
last modified time | relevance | path

Searched refs:vdpa (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v6.6/drivers/virtio/
Dvirtio_vdpa.c29 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-v6.6/drivers/vdpa/alibaba/
Deni_vdpa.c39 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-v6.6/drivers/vhost/
Dvdpa.c50 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()
215 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_reset() local
219 return vdpa_reset(vdpa); in vhost_vdpa_reset()
224 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_bind_mm() local
[all …]
DMakefile14 vhost_vdpa-y := vdpa.o
/Linux-v6.6/drivers/vdpa/virtio_pci/
Dvp_vdpa.c35 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-v6.6/drivers/vdpa/vdpa_sim/
Dvdpa_sim.c77 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 …]
Dvdpa_sim_blk.c83 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 …]
Dvdpa_sim_net.c492 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()
Dvdpa_sim.h58 struct vdpa_device vdpa; member
/Linux-v6.6/drivers/vdpa/vdpa_user/
Dvduse_dev.c73 struct vdpa_device vdpa; member
147 static inline struct vduse_dev *vdpa_to_vduse(struct vdpa_device *vdpa) in vdpa_to_vduse() argument
149 struct vduse_vdpa *vdev = container_of(vdpa, struct vduse_vdpa, vdpa); in vdpa_to_vduse()
156 struct vdpa_device *vdpa = dev_to_vdpa(dev); in dev_to_vduse() local
158 return vdpa_to_vduse(vdpa); in dev_to_vduse()
476 static int vduse_vdpa_set_vq_address(struct vdpa_device *vdpa, u16 idx, in vduse_vdpa_set_vq_address() argument
480 struct vduse_dev *dev = vdpa_to_vduse(vdpa); in vduse_vdpa_set_vq_address()
512 static void vduse_vdpa_kick_vq(struct vdpa_device *vdpa, u16 idx) in vduse_vdpa_kick_vq() argument
514 struct vduse_dev *dev = vdpa_to_vduse(vdpa); in vduse_vdpa_kick_vq()
524 static void vduse_vdpa_set_vq_cb(struct vdpa_device *vdpa, u16 idx, in vduse_vdpa_set_vq_cb() argument
[all …]
/Linux-v6.6/Documentation/ABI/testing/
Dsysfs-bus-vdpa1 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
/Linux-v6.6/Documentation/networking/device_drivers/ethernet/amd/
Dpds_vdpa.rst36 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-v6.6/drivers/vdpa/pds/
Dcmds.c43 .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-v6.6/drivers/vdpa/ifcvf/
Difcvf_main.c354 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()
Difcvf_base.h93 struct vdpa_device vdpa; member
/Linux-v6.6/drivers/vdpa/solidrun/
Dsnet_main.c33 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()
1006 snet = vdpa_alloc_device(struct snet, vdpa, &pdev->dev, &snet_config_ops, 1, 1, NULL, in snet_vdpa_probe_vf()
1051 snet->vdpa.dma_dev = &pdev->dev; in snet_vdpa_probe_vf()
1054 ret = vdpa_register_device(&snet->vdpa, snet->cfg->vq_num); in snet_vdpa_probe_vf()
1065 put_device(&snet->vdpa.dev); in snet_vdpa_probe_vf()
1098 vdpa_unregister_device(&snet->vdpa); in snet_vdpa_remove_vf()
Dsnet_vdpa.h56 struct vdpa_device vdpa; member
/Linux-v6.6/drivers/vdpa/mlx5/
DMakefile1 subdir-ccflags-y += -I$(srctree)/drivers/vdpa/mlx5/core
/Linux-v6.6/drivers/vdpa/
DMakefile2 obj-$(CONFIG_VDPA) += vdpa.o
DKconfig83 cat /sys/kernel/debug/mlx5/mlx5_core.sf.1/vdpa-0/rx/untagged/ucast/packets
84 cat /sys/kernel/debug/mlx5/mlx5_core.sf.1/vdpa-0/rx/untagged/mcast/bytes
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/
DKconfig180 device can support RDMA, netdevice and vdpa device.
190 and vdpa device. It is similar to a SRIOV VF but it doesn't require
/Linux-v6.6/drivers/
DMakefile52 obj-$(CONFIG_VDPA) += vdpa/
DKconfig144 source "drivers/vdpa/Kconfig"
/Linux-v6.6/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/
Dswitchdev.rst68 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
Dkconfig.rst125 | and vdpa device. It is similar to a SRIOV VF but it doesn't require

12