/linux-6.12.1/include/linux/ |
D | vdpa.h | 88 struct vdpa_device { struct 373 int (*set_vq_address)(struct vdpa_device *vdev, 376 void (*set_vq_num)(struct vdpa_device *vdev, u16 idx, u32 num); 377 void (*kick_vq)(struct vdpa_device *vdev, u16 idx); 378 void (*kick_vq_with_data)(struct vdpa_device *vdev, u32 data); 379 void (*set_vq_cb)(struct vdpa_device *vdev, u16 idx, 381 void (*set_vq_ready)(struct vdpa_device *vdev, u16 idx, bool ready); 382 bool (*get_vq_ready)(struct vdpa_device *vdev, u16 idx); 383 int (*set_vq_state)(struct vdpa_device *vdev, u16 idx, 385 int (*get_vq_state)(struct vdpa_device *vdev, u16 idx, [all …]
|
/linux-6.12.1/drivers/vdpa/virtio_pci/ |
D | vp_vdpa.c | 35 struct vdpa_device vdpa; 52 static struct vp_vdpa *vdpa_to_vp(struct vdpa_device *vdpa) in vdpa_to_vp() 57 static struct virtio_pci_modern_device *vdpa_to_mdev(struct vdpa_device *vdpa) in vdpa_to_mdev() 69 static u64 vp_vdpa_get_device_features(struct vdpa_device *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() 85 static u64 vp_vdpa_get_driver_features(struct vdpa_device *vdpa) in vp_vdpa_get_driver_features() 92 static u8 vp_vdpa_get_status(struct vdpa_device *vdpa) in vp_vdpa_get_status() 99 static int vp_vdpa_get_vq_irq(struct vdpa_device *vdpa, u16 idx) in vp_vdpa_get_vq_irq() 221 static void vp_vdpa_set_status(struct vdpa_device *vdpa, u8 status) in vp_vdpa_set_status() 238 static int vp_vdpa_reset(struct vdpa_device *vdpa) in vp_vdpa_reset() [all …]
|
/linux-6.12.1/drivers/vdpa/vdpa_sim/ |
D | vdpa_sim.c | 77 static struct vdpasim *vdpa_to_sim(struct vdpa_device *vdpa) in vdpa_to_sim() 197 struct vdpa_device *vdpa; in vdpasim_create() 292 static int vdpasim_set_vq_address(struct vdpa_device *vdpa, u16 idx, in vdpasim_set_vq_address() 306 static void vdpasim_set_vq_num(struct vdpa_device *vdpa, u16 idx, u32 num) in vdpasim_set_vq_num() 314 static u16 vdpasim_get_vq_size(struct vdpa_device *vdpa, u16 idx) in vdpasim_get_vq_size() 325 static void vdpasim_kick_vq(struct vdpa_device *vdpa, u16 idx) in vdpasim_kick_vq() 340 static void vdpasim_set_vq_cb(struct vdpa_device *vdpa, u16 idx, in vdpasim_set_vq_cb() 350 static void vdpasim_set_vq_ready(struct vdpa_device *vdpa, u16 idx, bool ready) in vdpasim_set_vq_ready() 365 static bool vdpasim_get_vq_ready(struct vdpa_device *vdpa, u16 idx) in vdpasim_get_vq_ready() 373 static int vdpasim_set_vq_state(struct vdpa_device *vdpa, u16 idx, in vdpasim_set_vq_state() [all …]
|
D | vdpa_sim.h | 58 struct vdpa_device vdpa;
|
D | vdpa_sim_net.c | 417 static int vdpasim_net_set_attr(struct vdpa_mgmt_dev *mdev, struct vdpa_device *dev, in vdpasim_net_set_attr() 522 struct vdpa_device *dev) in vdpasim_net_dev_del()
|
D | vdpa_sim_blk.c | 460 struct vdpa_device *dev) in vdpasim_blk_dev_del()
|
/linux-6.12.1/drivers/vdpa/alibaba/ |
D | eni_vdpa.c | 39 struct vdpa_device vdpa; 49 static struct eni_vdpa *vdpa_to_eni(struct vdpa_device *vdpa) in vdpa_to_eni() 54 static struct virtio_pci_legacy_device *vdpa_to_ldev(struct vdpa_device *vdpa) in vdpa_to_ldev() 61 static u64 eni_vdpa_get_device_features(struct vdpa_device *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() 87 static u64 eni_vdpa_get_driver_features(struct vdpa_device *vdpa) in eni_vdpa_get_driver_features() 94 static u8 eni_vdpa_get_status(struct vdpa_device *vdpa) in eni_vdpa_get_status() 101 static int eni_vdpa_get_vq_irq(struct vdpa_device *vdpa, u16 idx) in eni_vdpa_get_vq_irq() 211 static void eni_vdpa_set_status(struct vdpa_device *vdpa, u8 status) in eni_vdpa_set_status() 229 static int eni_vdpa_reset(struct vdpa_device *vdpa) in eni_vdpa_reset() [all …]
|
/linux-6.12.1/drivers/vdpa/ifcvf/ |
D | ifcvf_main.c | 352 static struct ifcvf_adapter *vdpa_to_adapter(struct vdpa_device *vdpa_dev) in vdpa_to_adapter() 357 static struct ifcvf_hw *vdpa_to_vf(struct vdpa_device *vdpa_dev) in vdpa_to_vf() 364 static u64 ifcvf_vdpa_get_device_features(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_device_features() 382 static int ifcvf_vdpa_set_driver_features(struct vdpa_device *vdpa_dev, u64 features) in ifcvf_vdpa_set_driver_features() 396 static u64 ifcvf_vdpa_get_driver_features(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_driver_features() 406 static u8 ifcvf_vdpa_get_status(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_status() 413 static void ifcvf_vdpa_set_status(struct vdpa_device *vdpa_dev, u8 status) in ifcvf_vdpa_set_status() 437 static int ifcvf_vdpa_reset(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_reset() 452 static u16 ifcvf_vdpa_get_vq_num_max(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_vq_num_max() 459 static u16 ifcvf_vdpa_get_vq_num_min(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_vq_num_min() [all …]
|
D | ifcvf_base.h | 94 struct vdpa_device vdpa;
|
/linux-6.12.1/drivers/vdpa/octeon_ep/ |
D | octep_vdpa_main.c | 23 struct vdpa_device vdpa; 38 static struct octep_hw *vdpa_to_octep_hw(struct vdpa_device *vdpa_dev) in vdpa_to_octep_hw() 107 static u64 octep_vdpa_get_device_features(struct vdpa_device *vdpa_dev) in octep_vdpa_get_device_features() 114 static int octep_vdpa_set_driver_features(struct vdpa_device *vdpa_dev, u64 features) in octep_vdpa_set_driver_features() 134 static u64 octep_vdpa_get_driver_features(struct vdpa_device *vdpa_dev) in octep_vdpa_get_driver_features() 141 static u8 octep_vdpa_get_status(struct vdpa_device *vdpa_dev) in octep_vdpa_get_status() 148 static void octep_vdpa_set_status(struct vdpa_device *vdpa_dev, u8 status) in octep_vdpa_set_status() 166 static int octep_vdpa_reset(struct vdpa_device *vdpa_dev) in octep_vdpa_reset() 189 static u16 octep_vdpa_get_vq_num_max(struct vdpa_device *vdpa_dev) in octep_vdpa_get_vq_num_max() 196 static int octep_vdpa_get_vq_state(struct vdpa_device *vdpa_dev, u16 qid, in octep_vdpa_get_vq_state() [all …]
|
/linux-6.12.1/drivers/virtio/ |
D | virtio_vdpa.c | 29 struct vdpa_device *vdpa; 52 static struct vdpa_device *vd_get_vdpa(struct virtio_device *vdev) in vd_get_vdpa() 60 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_get() 68 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() 101 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_reset() 108 struct vdpa_device *vdpa = vd_get_vdpa(vq->vdev); in virtio_vdpa_notify() 118 struct vdpa_device *vdpa = vd_get_vdpa(vq->vdev); in virtio_vdpa_notify_with_data() [all …]
|
/linux-6.12.1/drivers/vdpa/pds/ |
D | vdpa_dev.c | 19 static u64 pds_vdpa_get_driver_features(struct vdpa_device *vdpa_dev); 21 static struct pds_vdpa_device *vdpa_to_pdsv(struct vdpa_device *vdpa_dev) in vdpa_to_pdsv() 72 static int pds_vdpa_set_vq_address(struct vdpa_device *vdpa_dev, u16 qid, in pds_vdpa_set_vq_address() 84 static void pds_vdpa_set_vq_num(struct vdpa_device *vdpa_dev, u16 qid, u32 num) in pds_vdpa_set_vq_num() 91 static void pds_vdpa_kick_vq(struct vdpa_device *vdpa_dev, u16 qid) in pds_vdpa_kick_vq() 98 static void pds_vdpa_set_vq_cb(struct vdpa_device *vdpa_dev, u16 qid, in pds_vdpa_set_vq_cb() 126 static void pds_vdpa_set_vq_ready(struct vdpa_device *vdpa_dev, u16 qid, bool ready) in pds_vdpa_set_vq_ready() 164 static bool pds_vdpa_get_vq_ready(struct vdpa_device *vdpa_dev, u16 qid) in pds_vdpa_get_vq_ready() 171 static int pds_vdpa_set_vq_state(struct vdpa_device *vdpa_dev, u16 qid, in pds_vdpa_set_vq_state() 221 static int pds_vdpa_get_vq_state(struct vdpa_device *vdpa_dev, u16 qid, in pds_vdpa_get_vq_state() [all …]
|
D | vdpa_dev.h | 34 struct vdpa_device vdpa_dev;
|
/linux-6.12.1/drivers/vdpa/ |
D | vdpa.c | 24 void vdpa_set_status(struct vdpa_device *vdev, u8 status) in vdpa_set_status() 36 struct vdpa_device *vdev = dev_to_vdpa(d); in vdpa_dev_probe() 61 struct vdpa_device *vdev = dev_to_vdpa(d); in vdpa_dev_remove() 70 struct vdpa_device *vdev = dev_to_vdpa(dev); in vdpa_dev_match() 84 struct vdpa_device *vdev = dev_to_vdpa(dev); in driver_override_store() 97 struct vdpa_device *vdev = dev_to_vdpa(dev); in driver_override_show() 128 struct vdpa_device *vdev = dev_to_vdpa(d); in vdpa_release_dev() 157 struct vdpa_device *__vdpa_alloc_device(struct device *parent, in __vdpa_alloc_device() 163 struct vdpa_device *vdev; in __vdpa_alloc_device() 218 struct vdpa_device *vdev = container_of(dev, struct vdpa_device, dev); in vdpa_name_match() [all …]
|
/linux-6.12.1/drivers/vdpa/solidrun/ |
D | snet_main.c | 33 static struct snet *vdpa_to_snet(struct vdpa_device *vdpa) in vdpa_to_snet() 86 static int snet_set_vq_address(struct vdpa_device *vdev, u16 idx, u64 desc_area, in snet_set_vq_address() 98 static void snet_set_vq_num(struct vdpa_device *vdev, u16 idx, u32 num) in snet_set_vq_num() 105 static void snet_kick_vq(struct vdpa_device *vdev, u16 idx) in snet_kick_vq() 115 static void snet_kick_vq_with_data(struct vdpa_device *vdev, u32 data) in snet_kick_vq_with_data() 127 static void snet_set_vq_cb(struct vdpa_device *vdev, u16 idx, struct vdpa_callback *cb) in snet_set_vq_cb() 135 static void snet_set_vq_ready(struct vdpa_device *vdev, u16 idx, bool ready) in snet_set_vq_ready() 142 static bool snet_get_vq_ready(struct vdpa_device *vdev, u16 idx) in snet_get_vq_ready() 167 static int snet_set_vq_state(struct vdpa_device *vdev, u16 idx, const struct vdpa_vq_state *state) in snet_set_vq_state() 186 static int snet_get_vq_state(struct vdpa_device *vdev, u16 idx, struct vdpa_vq_state *state) in snet_get_vq_state() [all …]
|
D | snet_vdpa.h | 56 struct vdpa_device vdpa;
|
/linux-6.12.1/drivers/vhost/ |
D | vdpa.c | 50 struct vdpa_device *vdpa; 137 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_reset_map() 202 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_setup_vq_irq() 231 struct vdpa_device *vdpa = v->vdpa; in _compat_vdpa_reset() 253 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_bind_mm() 264 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_unbind_mm() 275 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_get_device_id() 289 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_get_status() 303 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_set_status() 343 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_config_validate() [all …]
|
/linux-6.12.1/drivers/vdpa/vdpa_user/ |
D | vduse_dev.c | 75 struct vdpa_device vdpa; 149 static inline struct vduse_dev *vdpa_to_vduse(struct vdpa_device *vdpa) in vdpa_to_vduse() 158 struct vdpa_device *vdpa = dev_to_vdpa(dev); in dev_to_vduse() 478 static int vduse_vdpa_set_vq_address(struct vdpa_device *vdpa, u16 idx, in vduse_vdpa_set_vq_address() 514 static void vduse_vdpa_kick_vq(struct vdpa_device *vdpa, u16 idx) in vduse_vdpa_kick_vq() 526 static void vduse_vdpa_set_vq_cb(struct vdpa_device *vdpa, u16 idx, in vduse_vdpa_set_vq_cb() 539 static void vduse_vdpa_set_vq_num(struct vdpa_device *vdpa, u16 idx, u32 num) in vduse_vdpa_set_vq_num() 547 static u16 vduse_vdpa_get_vq_size(struct vdpa_device *vdpa, u16 idx) in vduse_vdpa_get_vq_size() 558 static void vduse_vdpa_set_vq_ready(struct vdpa_device *vdpa, in vduse_vdpa_set_vq_ready() 567 static bool vduse_vdpa_get_vq_ready(struct vdpa_device *vdpa, u16 idx) in vduse_vdpa_get_vq_ready() [all …]
|
/linux-6.12.1/drivers/vdpa/mlx5/net/ |
D | mlx5_vnet.c | 2428 static void mlx5_vdpa_kick_vq(struct vdpa_device *vdev, u16 idx) in mlx5_vdpa_kick_vq() 2452 static int mlx5_vdpa_set_vq_address(struct vdpa_device *vdev, u16 idx, u64 desc_area, in mlx5_vdpa_set_vq_address() 2477 static void mlx5_vdpa_set_vq_num(struct vdpa_device *vdev, u16 idx, u32 num) in mlx5_vdpa_set_vq_num() 2498 static void mlx5_vdpa_set_vq_cb(struct vdpa_device *vdev, u16 idx, struct vdpa_callback *cb) in mlx5_vdpa_set_vq_cb() 2529 static void mlx5_vdpa_set_vq_ready(struct vdpa_device *vdev, u16 idx, bool ready) in mlx5_vdpa_set_vq_ready() 2557 static bool mlx5_vdpa_get_vq_ready(struct vdpa_device *vdev, u16 idx) in mlx5_vdpa_get_vq_ready() 2571 static int mlx5_vdpa_set_vq_state(struct vdpa_device *vdev, u16 idx, in mlx5_vdpa_set_vq_state() 2599 static int mlx5_vdpa_get_vq_state(struct vdpa_device *vdev, u16 idx, struct vdpa_vq_state *state) in mlx5_vdpa_get_vq_state() 2638 static u32 mlx5_vdpa_get_vq_align(struct vdpa_device *vdev) in mlx5_vdpa_get_vq_align() 2643 static u32 mlx5_vdpa_get_vq_group(struct vdpa_device *vdev, u16 idx) in mlx5_vdpa_get_vq_group() [all …]
|
/linux-6.12.1/drivers/vdpa/mlx5/core/ |
D | mlx5_vdpa.h | 104 struct vdpa_device vdev;
|