Home
last modified time | relevance | path

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

/linux-5.10/drivers/virtio/
Dvirtio_vdpa.c3 * VIRTIO based driver for vDPA device
17 #include <linux/vdpa.h>
23 #define MOD_DESC "vDPA bus driver for virtio devices"
28 struct vdpa_device *vdpa; member
53 return to_virtio_vdpa_device(vdev)->vdpa; in vd_get_vdpa()
59 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_get() local
61 vdpa_get_config(vdpa, offset, buf, len); in virtio_vdpa_get()
67 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_set() local
68 const struct vdpa_config_ops *ops = vdpa->config; in virtio_vdpa_set()
70 ops->set_config(vdpa, offset, buf, len); in virtio_vdpa_set()
[all …]
DKconfig53 tristate "vDPA driver for virtio devices"
54 depends on VDPA
58 device driver over vDPA bus. For this to be useful, you need
59 an appropriate vDPA device implementation that operates on a
/linux-5.10/drivers/vhost/
Dvdpa.c21 #include <linux/vdpa.h>
41 struct vdpa_device *vdpa; member
62 const struct vdpa_config_ops *ops = v->vdpa->config; in handle_vq_kick()
64 ops->kick_vq(v->vdpa, vq - v->vqs); in handle_vq_kick()
92 const struct vdpa_config_ops *ops = v->vdpa->config; in vhost_vdpa_setup_vq_irq()
93 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_setup_vq_irq() local
99 irq = ops->get_vq_irq(vdpa, qid); in vhost_vdpa_setup_vq_irq()
121 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_reset() local
123 vdpa_reset(vdpa); in vhost_vdpa_reset()
129 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_get_device_id() local
[all …]
DKconfig65 tristate "Vhost driver for vDPA-based backend"
69 depends on VDPA
72 guest virtio devices with the vDPA-based backends.
DMakefile14 vhost_vdpa-y := vdpa.o
Dvhost.c558 /* vDPA device does not use worker thead, so there's in vhost_attach_mm()
/linux-5.10/drivers/vdpa/vdpa_sim/
Dvdpa_sim.c3 * VDPA networking device simulator.
26 #include <linux/vdpa.h>
34 #define DRV_DESC "vDPA Device Simulator"
72 struct vdpa_device vdpa; member
106 static struct vdpasim *vdpa_to_sim(struct vdpa_device *vdpa) in vdpa_to_sim() argument
108 return container_of(vdpa, struct vdpasim, vdpa); in vdpa_to_sim()
113 struct vdpa_device *vdpa = dev_to_vdpa(dev); in dev_to_sim() local
115 return vdpa_to_sim(vdpa); in dev_to_sim()
360 vdpasim = vdpa_alloc_device(struct vdpasim, vdpa, NULL, ops, VDPASIM_VQ_NUM); in vdpasim_create()
368 dev = &vdpasim->vdpa.dev; in vdpasim_create()
[all …]
/linux-5.10/include/linux/
Dvdpa.h11 * vDPA callback definition.
21 * vDPA notification area
31 * vDPA vq_state definition
39 * vDPA device - representation of a vDPA device
56 * vDPA IOVA range - the IOVA range support by the device
66 * vDPA_config_ops - operations for configuring a vDPA device.
67 * Note: vDPA device drivers are required to implement all of the
72 * @vdev: vdpa device
79 * @vdev: vdpa device
83 * @vdev: vdpa device
[all …]
/linux-5.10/drivers/vdpa/
DKconfig2 menuconfig VDPA config
3 tristate "vDPA drivers"
5 Enable this module to support vDPA device that uses a
9 if VDPA
12 tristate "vDPA device simulator"
19 vDPA networking device simulator which loop TX traffic back
21 development of vDPA.
24 tristate "Intel IFC VF vDPA driver"
37 Support library for Mellanox VDPA drivers. Provides code that is
38 common for all types of VDPA drivers. The following drivers are planned:
[all …]
Dvdpa.c3 * vDPA bus.
13 #include <linux/vdpa.h>
41 .name = "vdpa",
59 * __vdpa_alloc_device - allocate and initilaize a vDPA device
104 err = dev_set_name(&vdev->dev, "vdpa%u", vdev->index); in __vdpa_alloc_device()
122 * vdpa_register_device - register a vDPA device
124 * @vdev: the vdpa device to be registered to vDPA bus
126 * Returns an error when fail to add to vDPA bus
135 * vdpa_unregister_device - unregister a vDPA device
136 * @vdev: the vdpa device to be unregisted from vDPA bus
[all …]
DMakefile2 obj-$(CONFIG_VDPA) += vdpa.o
/linux-5.10/drivers/vdpa/ifcvf/
Difcvf_main.c160 return container_of(vdpa_dev, struct ifcvf_adapter, vdpa); in vdpa_to_adapter()
233 "Failed to set ifcvf vdpa status %u\n", in ifcvf_vdpa_set_status()
440 adapter = vdpa_alloc_device(struct ifcvf_adapter, vdpa, in ifcvf_probe()
444 IFCVF_ERR(pdev, "Failed to allocate vDPA structure"); in ifcvf_probe()
455 adapter->vdpa.dma_dev = &pdev->dev; in ifcvf_probe()
466 ret = vdpa_register_device(&adapter->vdpa); in ifcvf_probe()
468 IFCVF_ERR(pdev, "Failed to register ifcvf to vdpa bus"); in ifcvf_probe()
475 put_device(&adapter->vdpa.dev); in ifcvf_probe()
483 vdpa_unregister_device(&adapter->vdpa); in ifcvf_remove()
Difcvf_base.h16 #include <linux/vdpa.h>
91 struct vdpa_device vdpa; member
/linux-5.10/include/uapi/linux/
Dvhost_types.h141 /* vhost vdpa IOVA range
142 * @first: First address that can be mapped by vhost-vDPA
143 * @last: Last address that can be mapped by vhost-vDPA
/linux-5.10/drivers/vdpa/mlx5/
DMakefile1 subdir-ccflags-y += -I$(srctree)/drivers/vdpa/mlx5/core
/linux-5.10/drivers/vdpa/mlx5/net/
Dmlx5_vnet.h7 #include <linux/vdpa.h>
Dmain.c11 MODULE_DESCRIPTION("Mellanox VDPA driver");
Dmlx5_vnet.c4 #include <linux/vdpa.h>
484 * updating the doorbell record. We also let vdpa core in mlx5_vdpa_cq_comp()
/linux-5.10/drivers/vdpa/mlx5/core/
Dmlx5_vdpa.h7 #include <linux/vdpa.h>
Dmr.c4 #include <linux/vdpa.h>
/linux-5.10/drivers/
DKconfig141 source "drivers/vdpa/Kconfig"
DMakefile45 obj-$(CONFIG_VDPA) += vdpa/
/linux-5.10/drivers/net/ethernet/sfc/
Dmcdi_pcol.h20995 * with both EF100 and vDPA doorbells.
21164 * queue because with vDPA multiple queues on the same function can be passed
/linux-5.10/
DMAINTAINERS18570 F: drivers/vdpa/
18572 F: include/linux/vdpa.h