/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 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() 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() [all …]
|
/drivers/vdpa/virtio_pci/ |
D | vp_vdpa.c | 34 struct vdpa_device vdpa; member 44 static struct vp_vdpa *vdpa_to_vp(struct vdpa_device *vdpa) in vdpa_to_vp() argument 46 return container_of(vdpa, struct vp_vdpa, vdpa); in vdpa_to_vp() 49 static struct virtio_pci_modern_device *vdpa_to_mdev(struct vdpa_device *vdpa) in vdpa_to_mdev() argument 51 struct vp_vdpa *vp_vdpa = vdpa_to_vp(vdpa); in vdpa_to_mdev() 56 static u64 vp_vdpa_get_features(struct vdpa_device *vdpa) in vp_vdpa_get_features() argument 58 struct virtio_pci_modern_device *mdev = vdpa_to_mdev(vdpa); in vp_vdpa_get_features() 63 static int vp_vdpa_set_features(struct vdpa_device *vdpa, u64 features) in vp_vdpa_set_features() argument 65 struct virtio_pci_modern_device *mdev = vdpa_to_mdev(vdpa); in vp_vdpa_set_features() 72 static u8 vp_vdpa_get_status(struct vdpa_device *vdpa) in vp_vdpa_get_status() argument [all …]
|
/drivers/vhost/ |
D | vdpa.c | 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() 124 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_reset() local 128 return vdpa_reset(vdpa); in vhost_vdpa_reset() 133 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_get_device_id() local 134 const struct vdpa_config_ops *ops = vdpa->config; in vhost_vdpa_get_device_id() [all …]
|
D | Makefile | 14 vhost_vdpa-y := vdpa.o
|
/drivers/vdpa/vdpa_sim/ |
D | vdpa_sim.c | 42 static struct vdpasim *vdpa_to_sim(struct vdpa_device *vdpa) in vdpa_to_sim() argument 44 return container_of(vdpa, struct vdpasim, vdpa); in vdpa_to_sim() 49 struct vdpa_device *vdpa = dev_to_vdpa(dev); in dev_to_sim() local 51 return vdpa_to_sim(vdpa); in dev_to_sim() 265 vdpasim = vdpa_alloc_device(struct vdpasim, vdpa, NULL, ops, in vdpasim_create() 277 dev = &vdpasim->vdpa.dev; in vdpasim_create() 282 vdpasim->vdpa.mdev = dev_attr->mgmt_dev; in vdpasim_create() 312 vdpasim->vdpa.dma_dev = dev; in vdpasim_create() 323 static int vdpasim_set_vq_address(struct vdpa_device *vdpa, u16 idx, in vdpasim_set_vq_address() argument 327 struct vdpasim *vdpasim = vdpa_to_sim(vdpa); in vdpasim_set_vq_address() [all …]
|
D | vdpa_sim_blk.c | 79 dev_err(&vdpasim->vdpa.dev, "missing headers - out_iov: %u in_iov %u\n", in vdpasim_blk_handle_req() 85 dev_err(&vdpasim->vdpa.dev, "request in header too short\n"); in vdpasim_blk_handle_req() 99 dev_err(&vdpasim->vdpa.dev, "request out header too short\n"); in vdpasim_blk_handle_req() 113 dev_err(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req() 124 dev_err(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req() 136 dev_err(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req() 147 dev_err(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req() 160 dev_err(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req() 170 dev_warn(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req() 271 ret = _vdpa_register_device(&simdev->vdpa, VDPASIM_BLK_VQ_NUM); in vdpasim_blk_dev_add() [all …]
|
D | vdpa_sim_net.c | 149 ret = _vdpa_register_device(&simdev->vdpa, VDPASIM_NET_VQ_NUM); in vdpasim_net_dev_add() 156 put_device(&simdev->vdpa.dev); in vdpasim_net_dev_add() 163 struct vdpasim *simdev = container_of(dev, struct vdpasim, vdpa); in vdpasim_net_dev_del() 165 _vdpa_unregister_device(&simdev->vdpa); in vdpasim_net_dev_del()
|
D | vdpa_sim.h | 52 struct vdpa_device vdpa; member
|
/drivers/vdpa/vdpa_user/ |
D | vduse_dev.c | 63 struct vdpa_device vdpa; member 125 static inline struct vduse_dev *vdpa_to_vduse(struct vdpa_device *vdpa) in vdpa_to_vduse() argument 127 struct vduse_vdpa *vdev = container_of(vdpa, struct vduse_vdpa, vdpa); in vdpa_to_vduse() 134 struct vdpa_device *vdpa = dev_to_vdpa(dev); in dev_to_vduse() local 136 return vdpa_to_vduse(vdpa); in dev_to_vduse() 453 static int vduse_vdpa_set_vq_address(struct vdpa_device *vdpa, u16 idx, in vduse_vdpa_set_vq_address() argument 457 struct vduse_dev *dev = vdpa_to_vduse(vdpa); in vduse_vdpa_set_vq_address() 489 static void vduse_vdpa_kick_vq(struct vdpa_device *vdpa, u16 idx) in vduse_vdpa_kick_vq() argument 491 struct vduse_dev *dev = vdpa_to_vduse(vdpa); in vduse_vdpa_kick_vq() 501 static void vduse_vdpa_set_vq_cb(struct vdpa_device *vdpa, u16 idx, in vduse_vdpa_set_vq_cb() argument [all …]
|
/drivers/vdpa/ifcvf/ |
D | ifcvf_main.c | 162 return container_of(vdpa_dev, struct ifcvf_adapter, vdpa); in vdpa_to_adapter() 500 adapter = vdpa_alloc_device(struct ifcvf_adapter, vdpa, in ifcvf_vdpa_dev_add() 514 adapter->vdpa.dma_dev = &pdev->dev; in ifcvf_vdpa_dev_add() 528 adapter->vdpa.mdev = &ifcvf_mgmt_dev->mdev; in ifcvf_vdpa_dev_add() 529 ret = _vdpa_register_device(&adapter->vdpa, vf->nr_vring); in ifcvf_vdpa_dev_add() 538 put_device(&adapter->vdpa.dev); in ifcvf_vdpa_dev_add()
|
D | ifcvf_base.h | 85 struct vdpa_device vdpa; member
|
/drivers/vdpa/ |
D | Makefile | 2 obj-$(CONFIG_VDPA) += vdpa.o
|
/drivers/vdpa/mlx5/ |
D | Makefile | 1 subdir-ccflags-y += -I$(srctree)/drivers/vdpa/mlx5/core
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | Kconfig | 224 device can support RDMA, netdevice and vdpa device. 234 and vdpa device. It is similar to a SRIOV VF but it doesn't require
|
/drivers/ |
D | Makefile | 45 obj-$(CONFIG_VDPA) += vdpa/
|
D | Kconfig | 142 source "drivers/vdpa/Kconfig"
|