Lines Matching refs:num_vfs
995 static int i40e_pci_sriov_enable(struct pci_dev *pdev, int num_vfs) in i40e_pci_sriov_enable() argument
1009 if (pre_existing_vfs && pre_existing_vfs != num_vfs) in i40e_pci_sriov_enable()
1011 else if (pre_existing_vfs && pre_existing_vfs == num_vfs) in i40e_pci_sriov_enable()
1014 if (num_vfs > pf->num_req_vfs) { in i40e_pci_sriov_enable()
1016 num_vfs, pf->num_req_vfs); in i40e_pci_sriov_enable()
1021 dev_info(&pdev->dev, "Allocating %d VFs.\n", num_vfs); in i40e_pci_sriov_enable()
1022 err = i40e_alloc_vfs(pf, num_vfs); in i40e_pci_sriov_enable()
1029 return num_vfs; in i40e_pci_sriov_enable()
1045 int i40e_pci_sriov_configure(struct pci_dev *pdev, int num_vfs) in i40e_pci_sriov_configure() argument
1049 if (num_vfs) { in i40e_pci_sriov_configure()
1055 return i40e_pci_sriov_enable(pdev, num_vfs); in i40e_pci_sriov_configure()