• Home
  • Raw
  • Download

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");
1576 if (!is_valid_ether_addr(mac) || vf >= adapter->num_vfs) in be_set_vf_mac()
1616 if (vf >= adapter->num_vfs) in be_get_vf_config()
1696 if (vf >= adapter->num_vfs || vlan > 4095 || qos > 7) in be_set_vf_vlan()
1729 if (vf >= adapter->num_vfs) in be_set_vf_tx_rate()
1788 if (vf >= adapter->num_vfs) in be_set_vf_link_state()
1813 if (vf >= adapter->num_vfs) in be_set_vf_spoofchk()
3740 adapter->num_vfs = 0; in be_vf_clear()
3789 static u16 be_calculate_vf_qs(struct be_adapter *adapter, u16 num_vfs) in be_calculate_vf_qs() argument
3797 if (num_vfs && !be_is_mc(adapter)) { in be_calculate_vf_qs()
3802 if (num_vfs < (be_max_vfs(adapter) - 8)) in be_calculate_vf_qs()
3803 num_vf_qs = (res.max_rss_qs - 8) / num_vfs; in be_calculate_vf_qs()
3805 num_vf_qs = res.max_rss_qs / num_vfs; in be_calculate_vf_qs()
3811 if (num_vfs >= MAX_RSS_IFACES) in be_calculate_vf_qs()
3897 adapter->vf_cfg = kcalloc(adapter->num_vfs, sizeof(*vf_cfg), in be_vf_setup_init()
3977 status = pci_enable_sriov(adapter->pdev, adapter->num_vfs); in be_vf_setup()
3980 adapter->num_vfs = 0; in be_vf_setup()
4013 bool use_sriov = adapter->num_vfs ? 1 : 0; in BEx_get_resources()
4119 adapter->num_vfs = old_vfs; in be_get_sriov_config()
4468 if (adapter->num_vfs) in be_setup()
6031 static int be_pci_sriov_configure(struct pci_dev *pdev, int num_vfs) in be_pci_sriov_configure() argument
6037 if (!num_vfs) in be_pci_sriov_configure()
6040 adapter->num_vfs = num_vfs; in be_pci_sriov_configure()
6042 if (adapter->num_vfs == 0 && pci_vfs_assigned(pdev)) { in be_pci_sriov_configure()
6057 num_vf_qs = be_calculate_vf_qs(adapter, adapter->num_vfs); in be_pci_sriov_configure()
6059 adapter->num_vfs, num_vf_qs); in be_pci_sriov_configure()
6076 if (adapter->num_vfs) in be_pci_sriov_configure()
6080 return adapter->num_vfs; in be_pci_sriov_configure()
6113 if (num_vfs > 0) { in be_init_module()