/Linux-v6.1/drivers/virtio/ |
D | virtio_vdpa.c | 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 69 vdpa_set_config(vdpa, offset, buf, len); in virtio_vdpa_set() 74 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_generation() local 75 const struct vdpa_config_ops *ops = vdpa->config; in virtio_vdpa_generation() 78 return ops->get_generation(vdpa); in virtio_vdpa_generation() 85 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_get_status() local [all …]
|
/Linux-v6.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-v6.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-v6.1/drivers/vhost/ |
D | vdpa.c | 50 struct vdpa_device *vdpa; member 105 if (asid >= v->vdpa->nas) in vhost_vdpa_alloc_as() 149 const struct vdpa_config_ops *ops = v->vdpa->config; in handle_vq_kick() 151 ops->kick_vq(v->vdpa, vq - v->vqs); in handle_vq_kick() 179 const struct vdpa_config_ops *ops = v->vdpa->config; in vhost_vdpa_setup_vq_irq() 180 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_setup_vq_irq() local 186 irq = ops->get_vq_irq(vdpa, qid); in vhost_vdpa_setup_vq_irq() 211 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_reset() local 215 return vdpa_reset(vdpa); in vhost_vdpa_reset() 220 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_get_device_id() local [all …]
|
D | Makefile | 14 vhost_vdpa-y := vdpa.o
|
/Linux-v6.1/drivers/vdpa/vdpa_sim/ |
D | vdpa_sim.c | 43 static struct vdpasim *vdpa_to_sim(struct vdpa_device *vdpa) in vdpa_to_sim() argument 45 return container_of(vdpa, struct vdpasim, vdpa); in vdpa_to_sim() 50 struct vdpa_device *vdpa = dev_to_vdpa(dev); in dev_to_sim() local 52 return vdpa_to_sim(vdpa); in dev_to_sim() 270 vdpasim = vdpa_alloc_device(struct vdpasim, vdpa, NULL, ops, in vdpasim_create() 283 dev = &vdpasim->vdpa.dev; in vdpasim_create() 288 vdpasim->vdpa.mdev = dev_attr->mgmt_dev; in vdpasim_create() 322 vdpasim->vdpa.dma_dev = dev; in vdpasim_create() 333 static int vdpasim_set_vq_address(struct vdpa_device *vdpa, u16 idx, in vdpasim_set_vq_address() argument 337 struct vdpasim *vdpasim = vdpa_to_sim(vdpa); in vdpasim_set_vq_address() [all …]
|
D | vdpa_sim_blk.c | 53 dev_dbg(&vdpasim->vdpa.dev, in vdpasim_blk_check_range() 59 dev_dbg(&vdpasim->vdpa.dev, in vdpasim_blk_check_range() 66 dev_dbg(&vdpasim->vdpa.dev, in vdpasim_blk_check_range() 98 dev_dbg(&vdpasim->vdpa.dev, "missing headers - out_iov: %u in_iov %u\n", in vdpasim_blk_handle_req() 104 dev_dbg(&vdpasim->vdpa.dev, "request in header too short\n"); in vdpasim_blk_handle_req() 118 dev_dbg(&vdpasim->vdpa.dev, "request out header too short\n"); in vdpasim_blk_handle_req() 131 dev_dbg(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req() 151 dev_dbg(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req() 173 dev_dbg(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req() 186 dev_dbg(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req() [all …]
|
D | vdpa_sim_net.c | 263 ret = _vdpa_register_device(&simdev->vdpa, VDPASIM_NET_VQ_NUM); in vdpasim_net_dev_add() 270 put_device(&simdev->vdpa.dev); in vdpasim_net_dev_add() 277 struct vdpasim *simdev = container_of(dev, struct vdpasim, vdpa); in vdpasim_net_dev_del() 279 _vdpa_unregister_device(&simdev->vdpa); in vdpasim_net_dev_del()
|
D | vdpa_sim.h | 54 struct vdpa_device vdpa; member
|
/Linux-v6.1/drivers/vdpa/vdpa_user/ |
D | vduse_dev.c | 65 struct vdpa_device vdpa; member 136 static inline struct vduse_dev *vdpa_to_vduse(struct vdpa_device *vdpa) in vdpa_to_vduse() argument 138 struct vduse_vdpa *vdev = container_of(vdpa, struct vduse_vdpa, vdpa); in vdpa_to_vduse() 145 struct vdpa_device *vdpa = dev_to_vdpa(dev); in dev_to_vduse() local 147 return vdpa_to_vduse(vdpa); in dev_to_vduse() 464 static int vduse_vdpa_set_vq_address(struct vdpa_device *vdpa, u16 idx, in vduse_vdpa_set_vq_address() argument 468 struct vduse_dev *dev = vdpa_to_vduse(vdpa); in vduse_vdpa_set_vq_address() 500 static void vduse_vdpa_kick_vq(struct vdpa_device *vdpa, u16 idx) in vduse_vdpa_kick_vq() argument 502 struct vduse_dev *dev = vdpa_to_vduse(vdpa); in vduse_vdpa_kick_vq() 512 static void vduse_vdpa_set_vq_cb(struct vdpa_device *vdpa, u16 idx, in vduse_vdpa_set_vq_cb() argument [all …]
|
/Linux-v6.1/Documentation/ABI/testing/ |
D | sysfs-bus-vdpa | 1 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.1/drivers/vdpa/ifcvf/ |
D | ifcvf_main.c | 410 return container_of(vdpa_dev, struct ifcvf_adapter, vdpa); in vdpa_to_adapter() 629 static u32 ifcvf_vdpa_get_vq_group(struct vdpa_device *vdpa, u16 idx) in ifcvf_vdpa_get_vq_group() argument 767 vdpa_dev = &adapter->vdpa; in ifcvf_vdpa_dev_add() 774 ret = _vdpa_register_device(&adapter->vdpa, vf->nr_vring); in ifcvf_vdpa_dev_add() 776 put_device(&adapter->vdpa.dev); in ifcvf_vdpa_dev_add() 835 adapter = vdpa_alloc_device(struct ifcvf_adapter, vdpa, in ifcvf_probe() 847 adapter->vdpa.dma_dev = &pdev->dev; in ifcvf_probe() 888 adapter->vdpa.mdev = &ifcvf_mgmt_dev->mdev; in ifcvf_probe()
|
D | ifcvf_base.h | 95 struct vdpa_device vdpa; member
|
/Linux-v6.1/drivers/vdpa/ |
D | Makefile | 2 obj-$(CONFIG_VDPA) += vdpa.o
|
/Linux-v6.1/drivers/vdpa/mlx5/ |
D | Makefile | 1 subdir-ccflags-y += -I$(srctree)/drivers/vdpa/mlx5/core
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | Kconfig | 179 device can support RDMA, netdevice and vdpa device. 189 and vdpa device. It is similar to a SRIOV VF but it doesn't require
|
/Linux-v6.1/drivers/ |
D | Makefile | 45 obj-$(CONFIG_VDPA) += vdpa/
|
D | Kconfig | 142 source "drivers/vdpa/Kconfig"
|
/Linux-v6.1/Documentation/userspace-api/ |
D | vduse.rst | 46 The netlink messages can be sent via vdpa tool in iproute2 or use the
|
/Linux-v6.1/Documentation/networking/device_drivers/ethernet/mellanox/ |
D | mlx5.rst | 265 devices (netdev, rdma, vdpa etc.) of the subfunction accesses only assigned
|
/Linux-v6.1/ |
D | MAINTAINERS | 21742 F: Documentation/ABI/testing/sysfs-bus-vdpa 21748 F: drivers/vdpa/ 21750 F: include/linux/vdpa.h 21757 F: drivers/vdpa/ifcvf/
|