Lines Matching refs:vdpa
39 struct vdpa_device vdpa; member
49 static struct eni_vdpa *vdpa_to_eni(struct vdpa_device *vdpa) in vdpa_to_eni() argument
51 return container_of(vdpa, struct eni_vdpa, vdpa); in vdpa_to_eni()
54 static struct virtio_pci_legacy_device *vdpa_to_ldev(struct vdpa_device *vdpa) in vdpa_to_ldev() argument
56 struct eni_vdpa *eni_vdpa = vdpa_to_eni(vdpa); in vdpa_to_ldev()
61 static u64 eni_vdpa_get_device_features(struct vdpa_device *vdpa) in eni_vdpa_get_device_features() argument
63 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(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() argument
74 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa); in eni_vdpa_set_driver_features()
87 static u64 eni_vdpa_get_driver_features(struct vdpa_device *vdpa) in eni_vdpa_get_driver_features() argument
89 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa); in eni_vdpa_get_driver_features()
94 static u8 eni_vdpa_get_status(struct vdpa_device *vdpa) in eni_vdpa_get_status() argument
96 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(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() argument
103 struct eni_vdpa *eni_vdpa = vdpa_to_eni(vdpa); in eni_vdpa_get_vq_irq()
211 static void eni_vdpa_set_status(struct vdpa_device *vdpa, u8 status) in eni_vdpa_set_status() argument
213 struct eni_vdpa *eni_vdpa = vdpa_to_eni(vdpa); in eni_vdpa_set_status()
215 u8 s = eni_vdpa_get_status(vdpa); in eni_vdpa_set_status()
229 static int eni_vdpa_reset(struct vdpa_device *vdpa) in eni_vdpa_reset() argument
231 struct eni_vdpa *eni_vdpa = vdpa_to_eni(vdpa); in eni_vdpa_reset()
233 u8 s = eni_vdpa_get_status(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() argument
245 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(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() argument
252 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa); in eni_vdpa_get_vq_num_min()
257 static u16 eni_vdpa_get_vq_size(struct vdpa_device *vdpa, u16 qid) in eni_vdpa_get_vq_size() argument
259 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa); in eni_vdpa_get_vq_size()
264 static int eni_vdpa_get_vq_state(struct vdpa_device *vdpa, u16 qid, in eni_vdpa_get_vq_state() argument
270 static int eni_vdpa_set_vq_state(struct vdpa_device *vdpa, u16 qid, in eni_vdpa_set_vq_state() argument
273 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa); in eni_vdpa_set_vq_state()
288 static void eni_vdpa_set_vq_cb(struct vdpa_device *vdpa, u16 qid, in eni_vdpa_set_vq_cb() argument
291 struct eni_vdpa *eni_vdpa = vdpa_to_eni(vdpa); in eni_vdpa_set_vq_cb()
296 static void eni_vdpa_set_vq_ready(struct vdpa_device *vdpa, u16 qid, in eni_vdpa_set_vq_ready() argument
299 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa); in eni_vdpa_set_vq_ready()
309 static bool eni_vdpa_get_vq_ready(struct vdpa_device *vdpa, u16 qid) in eni_vdpa_get_vq_ready() argument
311 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa); in eni_vdpa_get_vq_ready()
316 static void eni_vdpa_set_vq_num(struct vdpa_device *vdpa, u16 qid, in eni_vdpa_set_vq_num() argument
319 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa); in eni_vdpa_set_vq_num()
333 static int eni_vdpa_set_vq_address(struct vdpa_device *vdpa, u16 qid, in eni_vdpa_set_vq_address() argument
337 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa); in eni_vdpa_set_vq_address()
345 static void eni_vdpa_kick_vq(struct vdpa_device *vdpa, u16 qid) in eni_vdpa_kick_vq() argument
347 struct eni_vdpa *eni_vdpa = vdpa_to_eni(vdpa); in eni_vdpa_kick_vq()
352 static u32 eni_vdpa_get_device_id(struct vdpa_device *vdpa) in eni_vdpa_get_device_id() argument
354 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(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() argument
361 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(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() argument
371 static size_t eni_vdpa_get_config_size(struct vdpa_device *vdpa) in eni_vdpa_get_config_size() argument
377 static void eni_vdpa_get_config(struct vdpa_device *vdpa, in eni_vdpa_get_config() argument
381 struct eni_vdpa *eni_vdpa = vdpa_to_eni(vdpa); in eni_vdpa_get_config()
393 static void eni_vdpa_set_config(struct vdpa_device *vdpa, in eni_vdpa_set_config() argument
397 struct eni_vdpa *eni_vdpa = vdpa_to_eni(vdpa); in eni_vdpa_set_config()
409 static void eni_vdpa_set_config_cb(struct vdpa_device *vdpa, in eni_vdpa_set_config_cb() argument
412 struct eni_vdpa *eni_vdpa = vdpa_to_eni(vdpa); in eni_vdpa_set_config_cb()
455 eni_vdpa_get_config(&eni_vdpa->vdpa, in eni_vdpa_get_num_queues()
480 eni_vdpa = vdpa_alloc_device(struct eni_vdpa, vdpa, in eni_vdpa_probe()
499 eni_vdpa->vdpa.dma_dev = &pdev->dev; in eni_vdpa_probe()
517 ret = vdpa_register_device(&eni_vdpa->vdpa, eni_vdpa->queues); in eni_vdpa_probe()
528 put_device(&eni_vdpa->vdpa.dev); in eni_vdpa_probe()
536 vdpa_unregister_device(&eni_vdpa->vdpa); in eni_vdpa_remove()