Lines Matching defs:num_vfs
1875 * @num_vfs: number of VFs to allocate
1879 static int i40e_pci_sriov_enable(struct pci_dev *pdev, int num_vfs)
1893 if (pre_existing_vfs && pre_existing_vfs != num_vfs)
1895 else if (pre_existing_vfs && pre_existing_vfs == num_vfs)
1898 if (num_vfs > pf->num_req_vfs) {
1900 num_vfs, pf->num_req_vfs);
1905 dev_info(&pdev->dev, "Allocating %d VFs.\n", num_vfs);
1906 err = i40e_alloc_vfs(pf, num_vfs);
1913 return num_vfs;
1924 * @num_vfs: number of VFs to allocate
1929 int i40e_pci_sriov_configure(struct pci_dev *pdev, int num_vfs)
1939 if (num_vfs) {
1944 ret = i40e_pci_sriov_enable(pdev, num_vfs);