Home
last modified time | relevance | path

Searched refs:vdpa_device (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.15/include/linux/
Dvdpa.h73 struct vdpa_device { struct
244 int (*set_vq_address)(struct vdpa_device *vdev,
247 void (*set_vq_num)(struct vdpa_device *vdev, u16 idx, u32 num);
248 void (*kick_vq)(struct vdpa_device *vdev, u16 idx);
249 void (*set_vq_cb)(struct vdpa_device *vdev, u16 idx,
251 void (*set_vq_ready)(struct vdpa_device *vdev, u16 idx, bool ready);
252 bool (*get_vq_ready)(struct vdpa_device *vdev, u16 idx);
253 int (*set_vq_state)(struct vdpa_device *vdev, u16 idx,
255 int (*get_vq_state)(struct vdpa_device *vdev, u16 idx,
258 (*get_vq_notification)(struct vdpa_device *vdev, u16 idx);
[all …]
/Linux-v5.15/drivers/vdpa/virtio_pci/
Dvp_vdpa.c34 struct vdpa_device vdpa;
44 static struct vp_vdpa *vdpa_to_vp(struct vdpa_device *vdpa) in vdpa_to_vp()
49 static struct virtio_pci_modern_device *vdpa_to_mdev(struct vdpa_device *vdpa) in vdpa_to_mdev()
56 static u64 vp_vdpa_get_features(struct vdpa_device *vdpa) in vp_vdpa_get_features()
63 static int vp_vdpa_set_features(struct vdpa_device *vdpa, u64 features) in vp_vdpa_set_features()
72 static u8 vp_vdpa_get_status(struct vdpa_device *vdpa) in vp_vdpa_get_status()
180 static void vp_vdpa_set_status(struct vdpa_device *vdpa, u8 status) in vp_vdpa_set_status()
194 static int vp_vdpa_reset(struct vdpa_device *vdpa) in vp_vdpa_reset()
208 static u16 vp_vdpa_get_vq_num_max(struct vdpa_device *vdpa) in vp_vdpa_get_vq_num_max()
213 static int vp_vdpa_get_vq_state(struct vdpa_device *vdpa, u16 qid, in vp_vdpa_get_vq_state()
[all …]
/Linux-v5.15/drivers/vdpa/ifcvf/
Difcvf_main.c160 static struct ifcvf_adapter *vdpa_to_adapter(struct vdpa_device *vdpa_dev) in vdpa_to_adapter()
165 static struct ifcvf_hw *vdpa_to_vf(struct vdpa_device *vdpa_dev) in vdpa_to_vf()
172 static u64 ifcvf_vdpa_get_features(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_features()
190 static int ifcvf_vdpa_set_features(struct vdpa_device *vdpa_dev, u64 features) in ifcvf_vdpa_set_features()
204 static u8 ifcvf_vdpa_get_status(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_status()
211 static void ifcvf_vdpa_set_status(struct vdpa_device *vdpa_dev, u8 status) in ifcvf_vdpa_set_status()
244 static int ifcvf_vdpa_reset(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_reset()
267 static u16 ifcvf_vdpa_get_vq_num_max(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_vq_num_max()
272 static int ifcvf_vdpa_get_vq_state(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_get_vq_state()
281 static int ifcvf_vdpa_set_vq_state(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_set_vq_state()
[all …]
Difcvf_base.h83 struct vdpa_device vdpa;
/Linux-v5.15/drivers/vdpa/vdpa_sim/
Dvdpa_sim.c42 static struct vdpasim *vdpa_to_sim(struct vdpa_device *vdpa) in vdpa_to_sim()
49 struct vdpa_device *vdpa = dev_to_vdpa(dev); in dev_to_sim()
311 static int vdpasim_set_vq_address(struct vdpa_device *vdpa, u16 idx, in vdpasim_set_vq_address()
325 static void vdpasim_set_vq_num(struct vdpa_device *vdpa, u16 idx, u32 num) in vdpasim_set_vq_num()
333 static void vdpasim_kick_vq(struct vdpa_device *vdpa, u16 idx) in vdpasim_kick_vq()
342 static void vdpasim_set_vq_cb(struct vdpa_device *vdpa, u16 idx, in vdpasim_set_vq_cb()
352 static void vdpasim_set_vq_ready(struct vdpa_device *vdpa, u16 idx, bool ready) in vdpasim_set_vq_ready()
364 static bool vdpasim_get_vq_ready(struct vdpa_device *vdpa, u16 idx) in vdpasim_get_vq_ready()
372 static int vdpasim_set_vq_state(struct vdpa_device *vdpa, u16 idx, in vdpasim_set_vq_state()
386 static int vdpasim_get_vq_state(struct vdpa_device *vdpa, u16 idx, in vdpasim_get_vq_state()
[all …]
Dvdpa_sim.h52 struct vdpa_device vdpa;
Dvdpa_sim_net.c161 struct vdpa_device *dev) in vdpasim_net_dev_del()
Dvdpa_sim_blk.c283 struct vdpa_device *dev) in vdpasim_blk_dev_del()
/Linux-v5.15/drivers/virtio/
Dvirtio_vdpa.c28 struct vdpa_device *vdpa;
51 static struct vdpa_device *vd_get_vdpa(struct virtio_device *vdev) in vd_get_vdpa()
59 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_get()
67 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_set()
75 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_generation()
86 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_get_status()
94 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_set_status()
102 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_reset()
109 struct vdpa_device *vdpa = vd_get_vdpa(vq->vdev); in virtio_vdpa_notify()
139 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_setup_vq()
[all …]
/Linux-v5.15/drivers/vdpa/
Dvdpa.c27 struct vdpa_device *vdev = dev_to_vdpa(d); in vdpa_dev_probe()
39 struct vdpa_device *vdev = dev_to_vdpa(d); in vdpa_dev_remove()
54 struct vdpa_device *vdev = dev_to_vdpa(d); in vdpa_release_dev()
80 struct vdpa_device *__vdpa_alloc_device(struct device *parent, in __vdpa_alloc_device()
85 struct vdpa_device *vdev; in __vdpa_alloc_device()
137 struct vdpa_device *vdev = container_of(dev, struct vdpa_device, dev); in vdpa_name_match()
142 static int __vdpa_register_device(struct vdpa_device *vdev, int nvqs) in __vdpa_register_device()
167 int _vdpa_register_device(struct vdpa_device *vdev, int nvqs) in _vdpa_register_device()
184 int vdpa_register_device(struct vdpa_device *vdev, int nvqs) in vdpa_register_device()
201 void _vdpa_unregister_device(struct vdpa_device *vdev) in _vdpa_unregister_device()
[all …]
/Linux-v5.15/drivers/vhost/
Dvdpa.c41 struct vdpa_device *vdpa;
93 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_setup_vq_irq()
121 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_reset()
130 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_get_device_id()
144 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_get_status()
158 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_set_status()
197 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_config_validate()
212 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_get_config()
239 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_set_config()
262 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_get_features()
[all …]
/Linux-v5.15/drivers/vdpa/vdpa_user/
Dvduse_dev.c63 struct vdpa_device vdpa;
125 static inline struct vduse_dev *vdpa_to_vduse(struct vdpa_device *vdpa) in vdpa_to_vduse()
134 struct vdpa_device *vdpa = dev_to_vdpa(dev); in dev_to_vduse()
453 static int vduse_vdpa_set_vq_address(struct vdpa_device *vdpa, u16 idx, in vduse_vdpa_set_vq_address()
489 static void vduse_vdpa_kick_vq(struct vdpa_device *vdpa, u16 idx) 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()
513 static void vduse_vdpa_set_vq_num(struct vdpa_device *vdpa, u16 idx, u32 num) in vduse_vdpa_set_vq_num()
521 static void vduse_vdpa_set_vq_ready(struct vdpa_device *vdpa, in vduse_vdpa_set_vq_ready()
530 static bool vduse_vdpa_get_vq_ready(struct vdpa_device *vdpa, u16 idx) in vduse_vdpa_get_vq_ready()
538 static int vduse_vdpa_set_vq_state(struct vdpa_device *vdpa, u16 idx, in vduse_vdpa_set_vq_state()
[all …]
/Linux-v5.15/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c1614 static void mlx5_vdpa_kick_vq(struct vdpa_device *vdev, u16 idx) in mlx5_vdpa_kick_vq()
1645 static int mlx5_vdpa_set_vq_address(struct vdpa_device *vdev, u16 idx, u64 desc_area, in mlx5_vdpa_set_vq_address()
1669 static void mlx5_vdpa_set_vq_num(struct vdpa_device *vdev, u16 idx, u32 num) in mlx5_vdpa_set_vq_num()
1682 static void mlx5_vdpa_set_vq_cb(struct vdpa_device *vdev, u16 idx, struct vdpa_callback *cb) in mlx5_vdpa_set_vq_cb()
1711 static void mlx5_vdpa_set_vq_ready(struct vdpa_device *vdev, u16 idx, bool ready) in mlx5_vdpa_set_vq_ready()
1735 static bool mlx5_vdpa_get_vq_ready(struct vdpa_device *vdev, u16 idx) in mlx5_vdpa_get_vq_ready()
1749 static int mlx5_vdpa_set_vq_state(struct vdpa_device *vdev, u16 idx, in mlx5_vdpa_set_vq_state()
1775 static int mlx5_vdpa_get_vq_state(struct vdpa_device *vdev, u16 idx, struct vdpa_vq_state *state) in mlx5_vdpa_get_vq_state()
1814 static u32 mlx5_vdpa_get_vq_align(struct vdpa_device *vdev) in mlx5_vdpa_get_vq_align()
1841 static u64 mlx5_vdpa_get_features(struct vdpa_device *vdev) in mlx5_vdpa_get_features()
[all …]
/Linux-v5.15/drivers/vdpa/mlx5/core/
Dmlx5_vdpa.h72 struct vdpa_device vdev;