| /linux-6.15/include/linux/ |
| H A D | vdpa.h | 88 struct vdpa_device { struct 373 int (*set_vq_address)(struct vdpa_device *vdev, 397 u32 (*get_vq_align)(struct vdpa_device *vdev); 410 u8 (*get_status)(struct vdpa_device *vdev); 412 int (*reset)(struct vdpa_device *vdev); 415 int (*suspend)(struct vdpa_device *vdev); 416 int (*resume)(struct vdpa_device *vdev); 441 void (*unbind_mm)(struct vdpa_device *vdev); 444 void (*free)(struct vdpa_device *vdev); 490 int (*probe)(struct vdpa_device *vdev); [all …]
|
| /linux-6.15/drivers/vdpa/virtio_pci/ |
| H A 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() 92 static u8 vp_vdpa_get_status(struct vdpa_device *vdpa) in vp_vdpa_get_status() 238 static int vp_vdpa_reset(struct vdpa_device *vdpa) in vp_vdpa_reset() 321 static void vp_vdpa_set_vq_ready(struct vdpa_device *vdpa, in vp_vdpa_set_vq_ready() 385 static u32 vp_vdpa_get_device_id(struct vdpa_device *vdpa) in vp_vdpa_get_device_id() 392 static u32 vp_vdpa_get_vendor_id(struct vdpa_device *vdpa) in vp_vdpa_get_vendor_id() 399 static u32 vp_vdpa_get_vq_align(struct vdpa_device *vdpa) in vp_vdpa_get_vq_align() 411 static void vp_vdpa_get_config(struct vdpa_device *vdpa, in vp_vdpa_get_config() 431 static void vp_vdpa_set_config(struct vdpa_device *vdpa, in vp_vdpa_set_config() [all …]
|
| /linux-6.15/drivers/vdpa/vdpa_sim/ |
| H A 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() 410 static u32 vdpasim_get_vq_align(struct vdpa_device *vdpa) in vdpasim_get_vq_align() 467 static u32 vdpasim_get_device_id(struct vdpa_device *vdpa) in vdpasim_get_device_id() 474 static u32 vdpasim_get_vendor_id(struct vdpa_device *vdpa) in vdpasim_get_vendor_id() 479 static u8 vdpasim_get_status(struct vdpa_device *vdpa) in vdpasim_get_status() 513 static int vdpasim_reset(struct vdpa_device *vdpa) in vdpasim_reset() 518 static int vdpasim_suspend(struct vdpa_device *vdpa) in vdpasim_suspend() 529 static int vdpasim_resume(struct vdpa_device *vdpa) in vdpasim_resume() 695 static void vdpasim_unbind_mm(struct vdpa_device *vdpa) in vdpasim_unbind_mm() [all …]
|
| H A D | vdpa_sim.h | 58 struct vdpa_device vdpa;
|
| H A 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()
|
| H A D | vdpa_sim_blk.c | 460 struct vdpa_device *dev) in vdpasim_blk_dev_del()
|
| /linux-6.15/drivers/vdpa/alibaba/ |
| H A 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() 94 static u8 eni_vdpa_get_status(struct vdpa_device *vdpa) in eni_vdpa_get_status() 229 static int eni_vdpa_reset(struct vdpa_device *vdpa) in eni_vdpa_reset() 243 static u16 eni_vdpa_get_vq_num_max(struct vdpa_device *vdpa) in eni_vdpa_get_vq_num_max() 250 static u16 eni_vdpa_get_vq_num_min(struct vdpa_device *vdpa) in eni_vdpa_get_vq_num_min() 352 static u32 eni_vdpa_get_device_id(struct vdpa_device *vdpa) in eni_vdpa_get_device_id() 359 static u32 eni_vdpa_get_vendor_id(struct vdpa_device *vdpa) in eni_vdpa_get_vendor_id() 366 static u32 eni_vdpa_get_vq_align(struct vdpa_device *vdpa) in eni_vdpa_get_vq_align() 377 static void eni_vdpa_get_config(struct vdpa_device *vdpa, in eni_vdpa_get_config() [all …]
|
| /linux-6.15/drivers/vdpa/ifcvf/ |
| H A D | ifcvf_main.c | 357 static struct ifcvf_hw *vdpa_to_vf(struct vdpa_device *vdpa_dev) in vdpa_to_vf() 406 static u8 ifcvf_vdpa_get_status(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_status() 437 static int ifcvf_vdpa_reset(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_reset() 489 static void ifcvf_vdpa_set_vq_ready(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_set_vq_ready() 535 static u32 ifcvf_vdpa_get_device_id(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_device_id() 550 static u32 ifcvf_vdpa_get_vq_align(struct vdpa_device *vdpa_dev) in ifcvf_vdpa_get_vq_align() 567 static void ifcvf_vdpa_get_config(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_get_config() 576 static void ifcvf_vdpa_set_config(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_set_config() 594 static int ifcvf_vdpa_get_vq_irq(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_get_vq_irq() 605 static u16 ifcvf_vdpa_get_vq_size(struct vdpa_device *vdpa_dev, in ifcvf_vdpa_get_vq_size() [all …]
|
| H A D | ifcvf_base.h | 94 struct vdpa_device vdpa;
|
| /linux-6.15/drivers/vdpa/octeon_ep/ |
| H A 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() 172 static u8 octep_vdpa_get_status(struct vdpa_device *vdpa_dev) in octep_vdpa_get_status() 197 static int octep_vdpa_reset(struct vdpa_device *vdpa_dev) in octep_vdpa_reset() 220 static u16 octep_vdpa_get_vq_num_max(struct vdpa_device *vdpa_dev) in octep_vdpa_get_vq_num_max() 283 static void octep_vdpa_kick_vq(struct vdpa_device *vdpa_dev, u16 qid) in octep_vdpa_kick_vq() 296 static u32 octep_vdpa_get_generation(struct vdpa_device *vdpa_dev) in octep_vdpa_get_generation() 303 static u32 octep_vdpa_get_device_id(struct vdpa_device *vdpa_dev) in octep_vdpa_get_device_id() 310 static u32 octep_vdpa_get_vendor_id(struct vdpa_device *vdpa_dev) in octep_vdpa_get_vendor_id() 315 static u32 octep_vdpa_get_vq_align(struct vdpa_device *vdpa_dev) in octep_vdpa_get_vq_align() [all …]
|
| /linux-6.15/drivers/virtio/ |
| H A D | virtio_vdpa.c | 29 struct vdpa_device *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() 149 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_setup_vq() 273 struct vdpa_device *vdpa = vd_dev->vdpa; in virtio_vdpa_del_vq() 433 struct vdpa_device *vdpa = vd_dev->vdpa; in virtio_vdpa_bus_name() [all …]
|
| /linux-6.15/drivers/vdpa/pds/ |
| H A D | vdpa_dev.c | 19 static u64 pds_vdpa_get_driver_features(struct vdpa_device *vdpa_dev); 91 static void pds_vdpa_kick_vq(struct vdpa_device *vdpa_dev, u16 qid) in pds_vdpa_kick_vq() 281 static u32 pds_vdpa_get_vq_align(struct vdpa_device *vdpa_dev) in pds_vdpa_get_vq_align() 346 static void pds_vdpa_set_config_cb(struct vdpa_device *vdpa_dev, in pds_vdpa_set_config_cb() 363 static u32 pds_vdpa_get_device_id(struct vdpa_device *vdpa_dev) in pds_vdpa_get_device_id() 368 static u32 pds_vdpa_get_vendor_id(struct vdpa_device *vdpa_dev) in pds_vdpa_get_vendor_id() 373 static u8 pds_vdpa_get_status(struct vdpa_device *vdpa_dev) in pds_vdpa_get_status() 506 static int pds_vdpa_reset(struct vdpa_device *vdpa_dev) in pds_vdpa_reset() 546 static void pds_vdpa_get_config(struct vdpa_device *vdpa_dev, in pds_vdpa_get_config() 562 static void pds_vdpa_set_config(struct vdpa_device *vdpa_dev, in pds_vdpa_set_config() [all …]
|
| H A D | vdpa_dev.h | 34 struct vdpa_device vdpa_dev;
|
| /linux-6.15/drivers/vdpa/ |
| H A D | vdpa.c | 36 struct vdpa_device *vdev = dev_to_vdpa(d); in vdpa_dev_probe() 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() 352 struct vdpa_device *vdev = container_of(dev, struct vdpa_device, dev); in vdpa_match_remove() 707 struct vdpa_device *vdev; in vdpa_nl_cmd_dev_del_set_doit() 787 struct vdpa_device *vdev; in vdpa_nl_cmd_dev_get_doit() 838 struct vdpa_device *vdev = container_of(dev, struct vdpa_device, dev); in vdpa_dev_dump() 1324 struct vdpa_device *vdev; in vdpa_nl_cmd_dev_config_get_doit() 1399 struct vdpa_device *vdev; in vdpa_nl_cmd_dev_attr_set_doit() 1440 struct vdpa_device *vdev = container_of(dev, struct vdpa_device, dev); in vdpa_dev_config_dump() [all …]
|
| /linux-6.15/drivers/vdpa/solidrun/ |
| H A D | snet_main.c | 33 static struct snet *vdpa_to_snet(struct vdpa_device *vdpa) in vdpa_to_snet() 105 static void snet_kick_vq(struct vdpa_device *vdev, u16 idx) in snet_kick_vq() 200 static u32 snet_get_vq_align(struct vdpa_device *vdev) in snet_get_vq_align() 248 static int snet_reset(struct vdpa_device *vdev) in snet_reset() 262 static u64 snet_get_features(struct vdpa_device *vdev) in snet_get_features() 284 static u16 snet_get_vq_num_max(struct vdpa_device *vdev) in snet_get_vq_num_max() 299 static u32 snet_get_device_id(struct vdpa_device *vdev) in snet_get_device_id() 306 static u32 snet_get_vendor_id(struct vdpa_device *vdev) in snet_get_vendor_id() 311 static u8 snet_get_status(struct vdpa_device *vdev) in snet_get_status() 498 static int snet_suspend(struct vdpa_device *vdev) in snet_suspend() [all …]
|
| H A D | snet_vdpa.h | 56 struct vdpa_device vdpa;
|
| /linux-6.15/drivers/vhost/ |
| H A 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.15/drivers/vdpa/vdpa_user/ |
| H A D | vduse_dev.c | 75 struct vdpa_device vdpa; 159 struct vdpa_device *vdpa = dev_to_vdpa(dev); in dev_to_vduse() 559 static void vduse_vdpa_set_vq_ready(struct vdpa_device *vdpa, in vduse_vdpa_set_vq_ready() 607 static u32 vduse_vdpa_get_vq_align(struct vdpa_device *vdpa) in vduse_vdpa_get_vq_align() 660 static u32 vduse_vdpa_get_device_id(struct vdpa_device *vdpa) in vduse_vdpa_get_device_id() 667 static u32 vduse_vdpa_get_vendor_id(struct vdpa_device *vdpa) in vduse_vdpa_get_vendor_id() 674 static u8 vduse_vdpa_get_status(struct vdpa_device *vdpa) in vduse_vdpa_get_status() 721 static int vduse_vdpa_reset(struct vdpa_device *vdpa) in vduse_vdpa_reset() 752 vduse_vdpa_get_vq_affinity(struct vdpa_device *vdpa, u16 idx) in vduse_vdpa_get_vq_affinity() 759 static int vduse_vdpa_set_map(struct vdpa_device *vdpa, in vduse_vdpa_set_map() [all …]
|
| /linux-6.15/drivers/vdpa/mlx5/net/ |
| H A D | mlx5_vnet.c | 2638 static u32 mlx5_vdpa_get_vq_align(struct vdpa_device *vdev) in mlx5_vdpa_get_vq_align() 2952 static u16 mlx5_vdpa_get_vq_num_max(struct vdpa_device *vdev) in mlx5_vdpa_get_vq_num_max() 2957 static u32 mlx5_vdpa_get_device_id(struct vdpa_device *vdev) in mlx5_vdpa_get_device_id() 2962 static u32 mlx5_vdpa_get_vendor_id(struct vdpa_device *vdev) in mlx5_vdpa_get_vendor_id() 2967 static u8 mlx5_vdpa_get_status(struct vdpa_device *vdev) in mlx5_vdpa_get_status() 3302 static int mlx5_vdpa_reset(struct vdpa_device *vdev) in mlx5_vdpa_reset() 3328 static u32 mlx5_vdpa_get_generation(struct vdpa_device *vdev) in mlx5_vdpa_get_generation() 3427 static void mlx5_vdpa_free(struct vdpa_device *vdev) in mlx5_vdpa_free() 3474 static int mlx5_get_vq_irq(struct vdpa_device *vdev, u16 idx) in mlx5_get_vq_irq() 3598 static int mlx5_vdpa_suspend(struct vdpa_device *vdev) in mlx5_vdpa_suspend() [all …]
|
| /linux-6.15/drivers/vdpa/mlx5/core/ |
| H A D | mlx5_vdpa.h | 104 struct vdpa_device vdev;
|