Lines Matching refs:vp_vdpa_mgtdev
471 struct vp_vdpa_mgmtdev *vp_vdpa_mgtdev = in vp_vdpa_dev_add() local
474 struct virtio_pci_modern_device *mdev = vp_vdpa_mgtdev->mdev; in vp_vdpa_dev_add()
488 vp_vdpa_mgtdev->vp_vdpa = vp_vdpa; in vp_vdpa_dev_add()
523 vp_vdpa->vdpa.mdev = &vp_vdpa_mgtdev->mgtdev; in vp_vdpa_dev_add()
540 struct vp_vdpa_mgmtdev *vp_vdpa_mgtdev = in vp_vdpa_dev_del() local
543 struct vp_vdpa *vp_vdpa = vp_vdpa_mgtdev->vp_vdpa; in vp_vdpa_dev_del()
546 vp_vdpa_mgtdev->vp_vdpa = NULL; in vp_vdpa_dev_del()
556 struct vp_vdpa_mgmtdev *vp_vdpa_mgtdev = NULL; in vp_vdpa_probe() local
563 vp_vdpa_mgtdev = kzalloc(sizeof(*vp_vdpa_mgtdev), GFP_KERNEL); in vp_vdpa_probe()
564 if (!vp_vdpa_mgtdev) in vp_vdpa_probe()
567 mgtdev = &vp_vdpa_mgtdev->mgtdev; in vp_vdpa_probe()
583 vp_vdpa_mgtdev->mdev = mdev; in vp_vdpa_probe()
603 pci_set_drvdata(pdev, vp_vdpa_mgtdev); in vp_vdpa_probe()
614 vp_modern_remove(vp_vdpa_mgtdev->mdev); in vp_vdpa_probe()
620 kfree(vp_vdpa_mgtdev); in vp_vdpa_probe()
626 struct vp_vdpa_mgmtdev *vp_vdpa_mgtdev = pci_get_drvdata(pdev); in vp_vdpa_remove() local
629 mdev = vp_vdpa_mgtdev->mdev; in vp_vdpa_remove()
631 vdpa_mgmtdev_unregister(&vp_vdpa_mgtdev->mgtdev); in vp_vdpa_remove()
632 kfree(&vp_vdpa_mgtdev->mgtdev.id_table); in vp_vdpa_remove()
634 kfree(vp_vdpa_mgtdev); in vp_vdpa_remove()