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.c22 #include <linux/vdpa.h>
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 in vhost_vdpa_setup_vq_irq()
202 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_setup_vq_irq() local
231 struct vdpa_device *vdpa = v->vdpa; _compat_vdpa_reset() local
253 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_bind_mm() local
264 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_unbind_mm() local
275 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_device_id() local
289 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_status() local
303 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_set_status() local
343 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_config_validate() local
358 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_config() local
385 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_set_config() local
407 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_can_suspend() local
415 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_can_resume() local
423 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_has_desc_group() local
431 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_features() local
445 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_backend_features() local
456 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_has_persistent_map() local
465 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_set_features() local
500 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_vring_num() local
563 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_config_size() local
577 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_vqs_count() local
592 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_suspend() local
615 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_resume() local
635 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_vring_ioctl() local
911 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_general_unmap() local
962 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_iotlb_unmap() local
996 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_map() local
1031 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_unmap() local
1224 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_process_iotlb_update() local
1247 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_process_iotlb_msg() local
1321 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_alloc_domain() local
1358 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_free_domain() local
1373 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_set_iova_range() local
1488 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_fault() local
1506 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_mmap() local
1561 vhost_vdpa_probe(struct vdpa_device * vdpa) vhost_vdpa_probe() argument
1626 vhost_vdpa_remove(struct vdpa_device * vdpa) vhost_vdpa_remove() argument
[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.c16 #include <linux/vdpa.h>
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 in vdpasim_blk_handle_req()
[all...]
H A Dvdpa_sim_net.c16 #include <linux/vdpa.h>
19 #include <uapi/linux/vdpa.h>
420 struct vdpasim *vdpasim = container_of(dev, struct vdpasim, vdpa); in vdpasim_net_set_attr()
503 ret = _vdpa_register_device(&simdev->vdpa, VDPASIM_NET_VQ_NUM); in vdpasim_net_dev_add()
510 put_device(&simdev->vdpa.dev); in vdpasim_net_dev_add()
517 struct vdpasim *simdev = container_of(dev, struct vdpasim, vdpa); in vdpasim_net_dev_add()
519 _vdpa_unregister_device(&simdev->vdpa); in vdpasim_net_dev_add()
H A Dvdpa_sim.h58 struct vdpa_device vdpa; member
/linux/drivers/vdpa/vdpa_user/
H A Dvduse_dev.c24 #include <linux/vdpa.h>
30 #include <uapi/linux/vdpa.h>
89 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()
538 static int vduse_vdpa_set_vq_address(struct vdpa_device *vdpa, u16 idx, in vduse_vq_kick()
542 struct vduse_dev *dev = vdpa_to_vduse(vdpa);
515 vduse_vdpa_set_vq_address(struct vdpa_device * vdpa,u16 idx,u64 desc_area,u64 driver_area,u64 device_area) vduse_vdpa_set_vq_address() argument
551 vduse_vdpa_kick_vq(struct vdpa_device * vdpa,u16 idx) vduse_vdpa_kick_vq() argument
563 vduse_vdpa_set_vq_cb(struct vdpa_device * vdpa,u16 idx,struct vdpa_callback * cb) vduse_vdpa_set_vq_cb() argument
576 vduse_vdpa_set_vq_num(struct vdpa_device * vdpa,u16 idx,u32 num) vduse_vdpa_set_vq_num() argument
584 vduse_vdpa_get_vq_size(struct vdpa_device * vdpa,u16 idx) vduse_vdpa_get_vq_size() argument
595 vduse_vdpa_set_vq_ready(struct vdpa_device * vdpa,u16 idx,bool ready) vduse_vdpa_set_vq_ready() argument
604 vduse_vdpa_get_vq_ready(struct vdpa_device * vdpa,u16 idx) vduse_vdpa_get_vq_ready() argument
612 vduse_vdpa_set_vq_state(struct vdpa_device * vdpa,u16 idx,const struct vdpa_vq_state * state) vduse_vdpa_set_vq_state() argument
631 vduse_get_vq_group(struct vdpa_device * vdpa,u16 idx) vduse_get_vq_group() argument
641 vduse_get_vq_map(struct vdpa_device * vdpa,u16 idx) vduse_get_vq_map() argument
664 vduse_set_group_asid(struct vdpa_device * vdpa,unsigned int group,unsigned int asid) vduse_set_group_asid() argument
688 vduse_vdpa_get_vq_state(struct vdpa_device * vdpa,u16 idx,struct vdpa_vq_state * state) vduse_vdpa_get_vq_state() argument
700 vduse_vdpa_get_vq_align(struct vdpa_device * vdpa) vduse_vdpa_get_vq_align() argument
707 vduse_vdpa_get_device_features(struct vdpa_device * vdpa) vduse_vdpa_get_device_features() argument
714 vduse_vdpa_set_driver_features(struct vdpa_device * vdpa,u64 features) vduse_vdpa_set_driver_features() argument
722 vduse_vdpa_get_driver_features(struct vdpa_device * vdpa) vduse_vdpa_get_driver_features() argument
729 vduse_vdpa_set_config_cb(struct vdpa_device * vdpa,struct vdpa_callback * cb) vduse_vdpa_set_config_cb() argument
740 vduse_vdpa_get_vq_num_max(struct vdpa_device * vdpa) vduse_vdpa_get_vq_num_max() argument
753 vduse_vdpa_get_device_id(struct vdpa_device * vdpa) vduse_vdpa_get_device_id() argument
760 vduse_vdpa_get_vendor_id(struct vdpa_device * vdpa) vduse_vdpa_get_vendor_id() argument
767 vduse_vdpa_get_status(struct vdpa_device * vdpa) vduse_vdpa_get_status() argument
774 vduse_vdpa_set_status(struct vdpa_device * vdpa,u8 status) vduse_vdpa_set_status() argument
784 vduse_vdpa_get_config_size(struct vdpa_device * vdpa) vduse_vdpa_get_config_size() argument
791 vduse_vdpa_get_config(struct vdpa_device * vdpa,unsigned int offset,void * buf,unsigned int len) vduse_vdpa_get_config() argument
808 vduse_vdpa_set_config(struct vdpa_device * vdpa,unsigned int offset,const void * buf,unsigned int len) vduse_vdpa_set_config() argument
814 vduse_vdpa_reset(struct vdpa_device * vdpa) vduse_vdpa_reset() argument
824 vduse_vdpa_get_generation(struct vdpa_device * vdpa) vduse_vdpa_get_generation() argument
831 vduse_vdpa_set_vq_affinity(struct vdpa_device * vdpa,u16 idx,const struct cpumask * cpu_mask) vduse_vdpa_set_vq_affinity() argument
845 vduse_vdpa_get_vq_affinity(struct vdpa_device * vdpa,u16 idx) vduse_vdpa_get_vq_affinity() argument
852 vduse_vdpa_set_map(struct vdpa_device * vdpa,unsigned int asid,struct vhost_iotlb * iotlb) vduse_vdpa_set_map() argument
872 vduse_vdpa_free(struct vdpa_device * vdpa) vduse_vdpa_free() 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()
736 ret = dev_set_name(&vdpa_dev->dev, "vdpa%u", vdpa_dev->index); in ifcvf_vdpa_dev_add()
742 ret = _vdpa_register_device(&adapter->vdpa, vf->nr_vring); in ifcvf_vdpa_dev_add()
751 put_device(&adapter->vdpa.dev); in ifcvf_vdpa_dev_del()
H A Difcvf_base.h94 struct vdpa_device vdpa; member
/linux/drivers/vdpa/octeon_ep/
H A Doctep_vdpa_main.c30 struct vdpa_device vdpa;
51 oct_vdpa = container_of(vdpa_dev, struct octep_vdpa, vdpa); in octep_vdpa_intr_handler()
565 oct_vdpa = vdpa_alloc_device(struct octep_vdpa, vdpa, &pdev->dev, &octep_vdpa_ops, in octep_vdpa_dev_del()
568 dev_err(&pdev->dev, "Failed to allocate vDPA structure for octep vdpa device");
573 oct_vdpa->vdpa.vmap.dma_dev = &pdev->dev; in get_device_ready_status()
574 oct_vdpa->vdpa.mdev = mdev; in get_device_ready_status()
576 vdpa_dev = &oct_vdpa->vdpa; in get_device_ready_status()
604 ret = dev_set_name(&vdpa_dev->dev, "vdpa%u", vdpa_dev->index); in octep_vdpa_setup_task()
606 ret = _vdpa_register_device(&oct_vdpa->vdpa, oct_hw->nr_vring); in octep_vdpa_setup_task()
615 put_device(&oct_vdpa->vdpa in octep_vdpa_setup_task()
23 struct vdpa_device vdpa; global() member
[all...]
/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 DMAINTAINERS12535 F: drivers/vdpa/ifcvf/
15799 F: drivers/vdpa/octeon_ep/
16842 F: drivers/vdpa/mlx5/
21096 F: drivers/vdpa/pds/
25015 F: drivers/vdpa/solidrun/
28549 F: Documentation/ABI/testing/sysfs-bus-vdpa
28555 F: drivers/vdpa/
28557 F: include/linux/vdpa.h