Lines Matching refs:num_vfs
119 for (i = ionic->num_vfs - 1; i >= 0; i--) { in ionic_vf_dealloc_locked()
133 ionic->num_vfs = 0; in ionic_vf_dealloc_locked()
143 static int ionic_vf_alloc(struct ionic *ionic, int num_vfs) in ionic_vf_alloc() argument
152 ionic->vfs = kcalloc(num_vfs, sizeof(struct ionic_vf), GFP_KERNEL); in ionic_vf_alloc()
158 for (i = 0; i < num_vfs; i++) { in ionic_vf_alloc()
168 ionic->num_vfs++; in ionic_vf_alloc()
182 static int ionic_sriov_configure(struct pci_dev *pdev, int num_vfs) in ionic_sriov_configure() argument
192 if (num_vfs > 0) { in ionic_sriov_configure()
193 ret = pci_enable_sriov(pdev, num_vfs); in ionic_sriov_configure()
199 ret = ionic_vf_alloc(ionic, num_vfs); in ionic_sriov_configure()
206 ret = num_vfs; in ionic_sriov_configure()
220 int num_vfs; in ionic_probe() local
315 num_vfs = pci_num_vf(pdev); in ionic_probe()
316 if (num_vfs) { in ionic_probe()
317 dev_info(dev, "%d VFs found already enabled\n", num_vfs); in ionic_probe()
318 err = ionic_vf_alloc(ionic, num_vfs); in ionic_probe()