Lines Matching refs:num_vfs
658 static int enetc_sriov_configure(struct pci_dev *pdev, int num_vfs) in enetc_sriov_configure() argument
664 if (!num_vfs) { in enetc_sriov_configure()
667 pf->num_vfs = 0; in enetc_sriov_configure()
670 pf->num_vfs = num_vfs; in enetc_sriov_configure()
672 pf->vf_state = kcalloc(num_vfs, sizeof(struct enetc_vf_state), in enetc_sriov_configure()
675 pf->num_vfs = 0; in enetc_sriov_configure()
685 err = pci_enable_sriov(pdev, num_vfs); in enetc_sriov_configure()
692 return num_vfs; in enetc_sriov_configure()
698 pf->num_vfs = 0; in enetc_sriov_configure()
703 #define enetc_sriov_configure(pdev, num_vfs) (void)0 argument
1346 if (pf->num_vfs) in enetc_pf_remove()