Lines Matching refs:num_vfs
120 for (i = ionic->num_vfs - 1; i >= 0; i--) { in ionic_vf_dealloc_locked()
134 ionic->num_vfs = 0; in ionic_vf_dealloc_locked()
144 static int ionic_vf_alloc(struct ionic *ionic, int num_vfs) in ionic_vf_alloc() argument
153 ionic->vfs = kcalloc(num_vfs, sizeof(struct ionic_vf), GFP_KERNEL); in ionic_vf_alloc()
159 for (i = 0; i < num_vfs; i++) { in ionic_vf_alloc()
169 ionic->num_vfs++; in ionic_vf_alloc()
183 static int ionic_sriov_configure(struct pci_dev *pdev, int num_vfs) in ionic_sriov_configure() argument
193 if (num_vfs > 0) { in ionic_sriov_configure()
194 ret = pci_enable_sriov(pdev, num_vfs); in ionic_sriov_configure()
200 ret = ionic_vf_alloc(ionic, num_vfs); in ionic_sriov_configure()
207 ret = num_vfs; in ionic_sriov_configure()
309 int num_vfs; in ionic_probe() local
358 num_vfs = pci_num_vf(pdev); in ionic_probe()
359 if (num_vfs) { in ionic_probe()
360 dev_info(dev, "%d VFs found already enabled\n", num_vfs); in ionic_probe()
361 err = ionic_vf_alloc(ionic, num_vfs); in ionic_probe()