Lines Matching refs:vdpa_aux
39 struct pds_vdpa_aux *vdpa_aux; in pds_vdpa_probe() local
42 vdpa_aux = kzalloc(sizeof(*vdpa_aux), GFP_KERNEL); in pds_vdpa_probe()
43 if (!vdpa_aux) in pds_vdpa_probe()
46 vdpa_aux->padev = padev; in pds_vdpa_probe()
47 vdpa_aux->vf_id = pci_iov_vf_id(padev->vf_pdev); in pds_vdpa_probe()
48 auxiliary_set_drvdata(aux_dev, vdpa_aux); in pds_vdpa_probe()
51 err = pds_vdpa_get_mgmt_info(vdpa_aux); in pds_vdpa_probe()
56 vdpa_aux->vd_mdev.pci_dev = padev->vf_pdev; in pds_vdpa_probe()
57 vdpa_aux->vd_mdev.device_id_check = pds_vdpa_device_id_check; in pds_vdpa_probe()
58 vdpa_aux->vd_mdev.dma_mask = DMA_BIT_MASK(PDS_CORE_ADDR_LEN); in pds_vdpa_probe()
59 err = vp_modern_probe(&vdpa_aux->vd_mdev); in pds_vdpa_probe()
67 err = vdpa_mgmtdev_register(&vdpa_aux->vdpa_mdev); in pds_vdpa_probe()
74 pds_vdpa_debugfs_add_pcidev(vdpa_aux); in pds_vdpa_probe()
75 pds_vdpa_debugfs_add_ident(vdpa_aux); in pds_vdpa_probe()
80 vp_modern_remove(&vdpa_aux->vd_mdev); in pds_vdpa_probe()
84 kfree(vdpa_aux); in pds_vdpa_probe()
92 struct pds_vdpa_aux *vdpa_aux = auxiliary_get_drvdata(aux_dev); in pds_vdpa_remove() local
95 vdpa_mgmtdev_unregister(&vdpa_aux->vdpa_mdev); in pds_vdpa_remove()
96 vp_modern_remove(&vdpa_aux->vd_mdev); in pds_vdpa_remove()
97 pci_free_irq_vectors(vdpa_aux->padev->vf_pdev); in pds_vdpa_remove()
99 pds_vdpa_debugfs_del_vdpadev(vdpa_aux); in pds_vdpa_remove()
100 kfree(vdpa_aux); in pds_vdpa_remove()