Lines Matching refs:ifcvf_mgmt_dev
696 struct ifcvf_vdpa_mgmt_dev *ifcvf_mgmt_dev; in ifcvf_vdpa_dev_add() local
704 ifcvf_mgmt_dev = container_of(mdev, struct ifcvf_vdpa_mgmt_dev, mdev); in ifcvf_vdpa_dev_add()
705 vf = &ifcvf_mgmt_dev->vf; in ifcvf_vdpa_dev_add()
714 ifcvf_mgmt_dev->adapter = adapter; in ifcvf_vdpa_dev_add()
749 struct ifcvf_vdpa_mgmt_dev *ifcvf_mgmt_dev; in ifcvf_vdpa_dev_del() local
751 ifcvf_mgmt_dev = container_of(mdev, struct ifcvf_vdpa_mgmt_dev, mdev); in ifcvf_vdpa_dev_del()
753 ifcvf_mgmt_dev->adapter = NULL; in ifcvf_vdpa_dev_del()
763 struct ifcvf_vdpa_mgmt_dev *ifcvf_mgmt_dev; in ifcvf_probe() local
795 ifcvf_mgmt_dev = kzalloc(sizeof(struct ifcvf_vdpa_mgmt_dev), GFP_KERNEL); in ifcvf_probe()
796 if (!ifcvf_mgmt_dev) { in ifcvf_probe()
801 vf = &ifcvf_mgmt_dev->vf; in ifcvf_probe()
821 ifcvf_mgmt_dev->mdev.id_table = id_table_net; in ifcvf_probe()
824 ifcvf_mgmt_dev->mdev.id_table = id_table_blk; in ifcvf_probe()
832 ifcvf_mgmt_dev->mdev.ops = &ifcvf_vdpa_mgmt_dev_ops; in ifcvf_probe()
833 ifcvf_mgmt_dev->mdev.device = dev; in ifcvf_probe()
834 ifcvf_mgmt_dev->mdev.max_supported_vqs = vf->nr_vring; in ifcvf_probe()
835 ifcvf_mgmt_dev->mdev.supported_features = vf->hw_features; in ifcvf_probe()
836 ifcvf_mgmt_dev->mdev.config_attr_mask = (1 << VDPA_ATTR_DEV_FEATURES); in ifcvf_probe()
838 ret = vdpa_mgmtdev_register(&ifcvf_mgmt_dev->mdev); in ifcvf_probe()
845 pci_set_drvdata(pdev, ifcvf_mgmt_dev); in ifcvf_probe()
850 kfree(ifcvf_mgmt_dev->vf.vring); in ifcvf_probe()
851 kfree(ifcvf_mgmt_dev); in ifcvf_probe()
857 struct ifcvf_vdpa_mgmt_dev *ifcvf_mgmt_dev; in ifcvf_remove() local
859 ifcvf_mgmt_dev = pci_get_drvdata(pdev); in ifcvf_remove()
860 vdpa_mgmtdev_unregister(&ifcvf_mgmt_dev->mdev); in ifcvf_remove()
861 kfree(ifcvf_mgmt_dev->vf.vring); in ifcvf_remove()
862 kfree(ifcvf_mgmt_dev); in ifcvf_remove()