Lines Matching refs:num_vfs
36 static unsigned int num_vfs; variable
37 module_param(num_vfs, uint, S_IRUGO);
38 MODULE_PARM_DESC(num_vfs, "Number of PCI VFs to initialize");
1419 if (!is_valid_ether_addr(mac) || vf >= adapter->num_vfs) in be_set_vf_mac()
1459 if (vf >= adapter->num_vfs) in be_get_vf_config()
1538 if (vf >= adapter->num_vfs || vlan > 4095 || qos > 7) in be_set_vf_vlan()
1571 if (vf >= adapter->num_vfs) in be_set_vf_tx_rate()
1630 if (vf >= adapter->num_vfs) in be_set_vf_link_state()
3419 adapter->num_vfs = 0; in be_vf_clear()
3478 static u16 be_calculate_vf_qs(struct be_adapter *adapter, u16 num_vfs) in be_calculate_vf_qs() argument
3486 if (num_vfs && !be_is_mc(adapter)) { in be_calculate_vf_qs()
3491 if (num_vfs < (be_max_vfs(adapter) - 8)) in be_calculate_vf_qs()
3492 num_vf_qs = (res.max_rss_qs - 8) / num_vfs; in be_calculate_vf_qs()
3494 num_vf_qs = res.max_rss_qs / num_vfs; in be_calculate_vf_qs()
3500 if (num_vfs >= MAX_RSS_IFACES) in be_calculate_vf_qs()
3596 adapter->vf_cfg = kcalloc(adapter->num_vfs, sizeof(*vf_cfg), in be_vf_setup_init()
3669 status = pci_enable_sriov(adapter->pdev, adapter->num_vfs); in be_vf_setup()
3672 adapter->num_vfs = 0; in be_vf_setup()
3705 bool use_sriov = adapter->num_vfs ? 1 : 0; in BEx_get_resources()
3810 adapter->num_vfs = old_vfs; in be_get_sriov_config()
4162 if (adapter->num_vfs) in be_setup()
5666 static int be_pci_sriov_configure(struct pci_dev *pdev, int num_vfs) in be_pci_sriov_configure() argument
5672 if (!num_vfs) in be_pci_sriov_configure()
5675 adapter->num_vfs = num_vfs; in be_pci_sriov_configure()
5677 if (adapter->num_vfs == 0 && pci_vfs_assigned(pdev)) { in be_pci_sriov_configure()
5692 num_vf_qs = be_calculate_vf_qs(adapter, adapter->num_vfs); in be_pci_sriov_configure()
5694 adapter->num_vfs, num_vf_qs); in be_pci_sriov_configure()
5711 if (adapter->num_vfs) in be_pci_sriov_configure()
5715 return adapter->num_vfs; in be_pci_sriov_configure()
5748 if (num_vfs > 0) { in be_init_module()