Home
last modified time | relevance | path

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

/Linux-v5.10/include/linux/
Dvdpa.h46 struct vdpa_device { struct
199 int (*set_vq_address)(struct vdpa_device *vdev,
202 void (*set_vq_num)(struct vdpa_device *vdev, u16 idx, u32 num);
203 void (*kick_vq)(struct vdpa_device *vdev, u16 idx);
204 void (*set_vq_cb)(struct vdpa_device *vdev, u16 idx,
206 void (*set_vq_ready)(struct vdpa_device *vdev, u16 idx, bool ready);
207 bool (*get_vq_ready)(struct vdpa_device *vdev, u16 idx);
208 int (*set_vq_state)(struct vdpa_device *vdev, u16 idx,
210 int (*get_vq_state)(struct vdpa_device *vdev, u16 idx,
213 (*get_vq_notification)(struct vdpa_device *vdev, u16 idx);
[all …]
/Linux-v5.10/drivers/vdpa/ifcvf/
Difcvf_main.c158 static struct ifcvf_adapter *vdpa_to_adapter(struct vdpa_device *vdpa_dev) in vdpa_to_adapter()
163 static struct ifcvf_hw *vdpa_to_vf(struct vdpa_device *vdpa_dev) in vdpa_to_vf()
170 static u64 ifcvf_vdpa_get_features(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_features()
180 static int ifcvf_vdpa_set_features(struct vdpa_device *vdpa_dev, u64 features) in ifcvf_vdpa_set_features()
189 static u8 ifcvf_vdpa_get_status(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_status()
196 static void ifcvf_vdpa_set_status(struct vdpa_device *vdpa_dev, u8 status) in ifcvf_vdpa_set_status()
240 static u16 ifcvf_vdpa_get_vq_num_max(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_vq_num_max()
245 static int ifcvf_vdpa_get_vq_state(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_get_vq_state()
254 static int ifcvf_vdpa_set_vq_state(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_set_vq_state()
262 static void ifcvf_vdpa_set_vq_cb(struct vdpa_device *vdpa_dev, u16 qid, in ifcvf_vdpa_set_vq_cb()
[all …]
Difcvf_base.h91 struct vdpa_device vdpa;
/Linux-v5.10/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.10/drivers/vdpa/vdpa_sim/
Dvdpa_sim.c72 struct vdpa_device vdpa;
106 static struct vdpasim *vdpa_to_sim(struct vdpa_device *vdpa) in vdpa_to_sim()
113 struct vdpa_device *vdpa = dev_to_vdpa(dev); in dev_to_sim()
408 static int vdpasim_set_vq_address(struct vdpa_device *vdpa, u16 idx, in vdpasim_set_vq_address()
422 static void vdpasim_set_vq_num(struct vdpa_device *vdpa, u16 idx, u32 num) in vdpasim_set_vq_num()
430 static void vdpasim_kick_vq(struct vdpa_device *vdpa, u16 idx) in vdpasim_kick_vq()
439 static void vdpasim_set_vq_cb(struct vdpa_device *vdpa, u16 idx, in vdpasim_set_vq_cb()
449 static void vdpasim_set_vq_ready(struct vdpa_device *vdpa, u16 idx, bool ready) in vdpasim_set_vq_ready()
461 static bool vdpasim_get_vq_ready(struct vdpa_device *vdpa, u16 idx) in vdpasim_get_vq_ready()
469 static int vdpasim_set_vq_state(struct vdpa_device *vdpa, u16 idx, in vdpasim_set_vq_state()
[all …]
/Linux-v5.10/drivers/vdpa/
Dvdpa.c19 struct vdpa_device *vdev = dev_to_vdpa(d); in vdpa_dev_probe()
31 struct vdpa_device *vdev = dev_to_vdpa(d); in vdpa_dev_remove()
48 struct vdpa_device *vdev = dev_to_vdpa(d); in vdpa_release_dev()
73 struct vdpa_device *__vdpa_alloc_device(struct device *parent, in __vdpa_alloc_device()
78 struct vdpa_device *vdev; in __vdpa_alloc_device()
128 int vdpa_register_device(struct vdpa_device *vdev) in vdpa_register_device()
138 void vdpa_unregister_device(struct vdpa_device *vdev) in vdpa_unregister_device()
/Linux-v5.10/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()
129 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_get_device_id()
143 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_get_status()
157 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_set_status()
211 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_get_config()
238 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_set_config()
265 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_get_features()
279 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_set_features()
[all …]
/Linux-v5.10/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c1327 static void mlx5_vdpa_kick_vq(struct vdpa_device *vdev, u16 idx) in mlx5_vdpa_kick_vq()
1339 static int mlx5_vdpa_set_vq_address(struct vdpa_device *vdev, u16 idx, u64 desc_area, in mlx5_vdpa_set_vq_address()
1352 static void mlx5_vdpa_set_vq_num(struct vdpa_device *vdev, u16 idx, u32 num) in mlx5_vdpa_set_vq_num()
1362 static void mlx5_vdpa_set_vq_cb(struct vdpa_device *vdev, u16 idx, struct vdpa_callback *cb) in mlx5_vdpa_set_vq_cb()
1371 static void mlx5_vdpa_set_vq_ready(struct vdpa_device *vdev, u16 idx, bool ready) in mlx5_vdpa_set_vq_ready()
1383 static bool mlx5_vdpa_get_vq_ready(struct vdpa_device *vdev, u16 idx) in mlx5_vdpa_get_vq_ready()
1392 static int mlx5_vdpa_set_vq_state(struct vdpa_device *vdev, u16 idx, in mlx5_vdpa_set_vq_state()
1408 static int mlx5_vdpa_get_vq_state(struct vdpa_device *vdev, u16 idx, struct vdpa_vq_state *state) in mlx5_vdpa_get_vq_state()
1434 static u32 mlx5_vdpa_get_vq_align(struct vdpa_device *vdev) in mlx5_vdpa_get_vq_align()
1461 static u64 mlx5_vdpa_get_features(struct vdpa_device *vdev) in mlx5_vdpa_get_features()
[all …]
/Linux-v5.10/drivers/vdpa/mlx5/core/
Dmlx5_vdpa.h45 struct vdpa_device vdev;