Home
last modified time | relevance | path

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

/linux/drivers/virtio/
H A Dvirtio_vdpa.c29 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 Dvdpa.c50 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 …]
H A DMakefile14 vhost_vdpa-y := vdpa.o
/linux/drivers/vdpa/virtio_pci/
H A 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/drivers/vdpa/vdpa_sim/
H A 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()
197 struct vdpa_device *vdpa; in vdpasim_create() local
218 vdpa = __vdpa_alloc_device(NULL, ops, NULL, 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()
273 vdpasim->vdpa.vmap.dma_dev = dev; in vdpasim_create()
[all …]
H A 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 …]
H A Dvdpa_sim_net.c420 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()
H A Dvdpa_sim.h58 struct vdpa_device vdpa; member
/linux/drivers/vdpa/vdpa_user/
H A Dvduse_dev.c89 struct vdpa_device vdpa; member
177 static inline struct vduse_dev *vdpa_to_vduse(struct vdpa_device *vdpa) in vdpa_to_vduse() argument
179 struct vduse_vdpa *vdev = container_of(vdpa, struct vduse_vdpa, vdpa); in vdpa_to_vduse()
186 struct vdpa_device *vdpa = dev_to_vdpa(dev); in dev_to_vduse() local
188 return vdpa_to_vduse(vdpa); in dev_to_vduse()
515 static int vduse_vdpa_set_vq_address(struct vdpa_device *vdpa, u16 idx, in vduse_vdpa_set_vq_address() argument
519 struct vduse_dev *dev = vdpa_to_vduse(vdpa); in vduse_vdpa_set_vq_address()
551 static void vduse_vdpa_kick_vq(struct vdpa_device *vdpa, u16 idx) in vduse_vdpa_kick_vq() argument
553 struct vduse_dev *dev = vdpa_to_vduse(vdpa); in vduse_vdpa_kick_vq()
563 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 Dsysfs-bus-vdpa1 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 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/drivers/vdpa/pds/
H A 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/drivers/vdpa/ifcvf/
H A Difcvf_main.c354 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()
717 adapter->vdpa.vmap.dma_dev = &pdev->dev; in ifcvf_vdpa_dev_add()
718 adapter->vdpa.mdev = mdev; in ifcvf_vdpa_dev_add()
720 vdpa_dev = &adapter->vdpa; in ifcvf_vdpa_dev_add()
738 ret = _vdpa_register_device(&adapter->vdpa, vf->nr_vring); in ifcvf_vdpa_dev_add()
740 put_device(&adapter->vdpa.dev); in ifcvf_vdpa_dev_add()
H A Difcvf_base.h94 struct vdpa_device vdpa; member
/linux/drivers/vdpa/octeon_ep/
H A Doctep_vdpa_main.c23 struct vdpa_device vdpa; member
42 oct_vdpa = container_of(vdpa_dev, struct octep_vdpa, vdpa); in vdpa_to_octep_hw()
511 oct_vdpa = vdpa_alloc_device(struct octep_vdpa, vdpa, &pdev->dev, &octep_vdpa_ops, in octep_vdpa_dev_add()
519 oct_vdpa->vdpa.vmap.dma_dev = &pdev->dev; in octep_vdpa_dev_add()
520 oct_vdpa->vdpa.mdev = mdev; in octep_vdpa_dev_add()
522 vdpa_dev = &oct_vdpa->vdpa; in octep_vdpa_dev_add()
551 ret = _vdpa_register_device(&oct_vdpa->vdpa, oct_hw->nr_vring); in octep_vdpa_dev_add()
559 put_device(&oct_vdpa->vdpa.dev); in octep_vdpa_dev_add()
/linux/drivers/vdpa/solidrun/
H A 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()
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 Dsnet_vdpa.h56 struct vdpa_device vdpa; member
/linux/drivers/vdpa/mlx5/
H A DMakefile1 subdir-ccflags-y += -I$(srctree)/drivers/vdpa/mlx5/core
/linux/drivers/vdpa/
H A DMakefile2 obj-$(CONFIG_VDPA) += vdpa.o
/linux/drivers/
H A DMakefile50 obj-$(CONFIG_VDPA) += vdpa/
H A DKconfig150 source "drivers/vdpa/Kconfig"
/linux/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/
H A 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
/linux/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.c2907 static u64 mlx5_vdpa_get_backend_features(const struct vdpa_device *vdpa) in mlx5_vdpa_get_backend_features() argument
/linux/
H A DMAINTAINERS12415 F: drivers/vdpa/ifcvf/
15629 F: drivers/vdpa/octeon_ep/
16649 F: drivers/vdpa/mlx5/
20834 F: drivers/vdpa/pds/
24706 F: drivers/vdpa/solidrun/
28208 F: Documentation/ABI/testing/sysfs-bus-vdpa
28214 F: drivers/vdpa/
28216 F: include/linux/vdpa.h