Lines Matching refs:num_vfs
586 if (vf >= sriov_info->num_vfs) in hinic_ndo_get_vf_config()
631 if (!is_valid_ether_addr(mac) || vf >= sriov_info->num_vfs) in hinic_ndo_set_vf_mac()
778 if (vf >= sriov_info->num_vfs || vlan >= VLAN_N_VID || qos > HINIC_MAX_QOS) in hinic_ndo_set_vf_vlan()
819 if (vf >= sriov_info->num_vfs) in hinic_ndo_set_vf_trust()
850 if (vf >= nic_dev->sriov_info.num_vfs) { in hinic_ndo_set_vf_bw()
852 nic_dev->sriov_info.num_vfs); in hinic_ndo_set_vf_bw()
938 if (vf >= sriov_info->num_vfs) in hinic_ndo_set_vf_spoofchk()
1002 if (vf_id >= sriov_info->num_vfs) { in hinic_ndo_set_vf_link_state()
1284 tmp_vfs = (u16)sriov_info->num_vfs; in hinic_pci_sriov_disable()
1285 sriov_info->num_vfs = 0; in hinic_pci_sriov_disable()
1294 static int hinic_pci_sriov_enable(struct pci_dev *pdev, int num_vfs) in hinic_pci_sriov_enable() argument
1304 num_vfs); in hinic_pci_sriov_enable()
1309 OS_VF_ID_TO_HW((u16)num_vfs - 1)); in hinic_pci_sriov_enable()
1318 err = pci_enable_sriov(sriov_info->pdev, num_vfs); in hinic_pci_sriov_enable()
1327 sriov_info->num_vfs = num_vfs; in hinic_pci_sriov_enable()
1330 return num_vfs; in hinic_pci_sriov_enable()
1333 int hinic_pci_sriov_configure(struct pci_dev *dev, int num_vfs) in hinic_pci_sriov_configure() argument
1342 if (!num_vfs) in hinic_pci_sriov_configure()
1345 return hinic_pci_sriov_enable(dev, num_vfs); in hinic_pci_sriov_configure()