| /Linux-v5.4/arch/powerpc/platforms/pseries/ | 
| D | pci.c | 153 	const int *max_vfs;  in pseries_pci_sriov_enable()  local157 	max_vfs = of_get_property(dn, "ibm,number-of-configurable-vfs", NULL);  in pseries_pci_sriov_enable()
 159 	if (!max_vfs)  in pseries_pci_sriov_enable()
 163 	max_config_vfs = of_read_number(&max_vfs[0], 1);  in pseries_pci_sriov_enable()
 
 | 
| /Linux-v5.4/drivers/net/ethernet/cavium/liquidio/ | 
| D | cn23xx_pf_device.c | 333 	temp = oct->sriov_info.max_vfs & 0xff;  in cn23xx_setup_global_mac_regs()716 	if (!oct->sriov_info.max_vfs)  in cn23xx_setup_pf_mbox()
 719 	for (i = 0; i < oct->sriov_info.max_vfs; i++) {  in cn23xx_setup_pf_mbox()
 777 	if (!oct->sriov_info.max_vfs)  in cn23xx_free_pf_mbox()
 780 	for (i = 0; i < oct->sriov_info.max_vfs; i++) {  in cn23xx_free_pf_mbox()
 1117 		   (oct->sriov_info.max_vfs > 0)) {  in cn23xx_enable_pf_interrupt()
 1139 		   (oct->sriov_info.max_vfs > 0)) {  in cn23xx_disable_pf_interrupt()
 1254 	u32 max_rings, total_rings, max_vfs, rings_per_vf;  in cn23xx_sriov_config()  local
 1281 	max_vfs = min_t(u32,  in cn23xx_sriov_config()
 1285 	max_vfs = 0;  in cn23xx_sriov_config()
 [all …]
 
 | 
| D | lio_vf_rep.c | 245 	int vf_id, max_vfs = CN23XX_MAX_VFS_PER_PF + 1;  in lio_vf_rep_get_ndev()  local246 	int vfid_mask = max_vfs - 1;  in lio_vf_rep_get_ndev()
 248 	if (ifidx <= oct->pf_num * max_vfs ||  in lio_vf_rep_get_ndev()
 249 	    ifidx >= oct->pf_num * max_vfs + max_vfs)  in lio_vf_rep_get_ndev()
 
 | 
| D | lio_main.c | 760 	int max_vfs, vf, i;  in disable_all_vf_links()  local765 	max_vfs = oct->sriov_info.max_vfs;  in disable_all_vf_links()
 772 		for (vf = 0; vf < max_vfs; vf++)  in disable_all_vf_links()
 1406 					       oct->sriov_info.max_vfs);  in octeon_chip_specific_setup()
 2830 	if (vfidx < 0 || vfidx >= oct->sriov_info.max_vfs)  in __liquidio_set_vf_mac()
 3631 		for (j = 0; j < octeon_dev->sriov_info.max_vfs; j++) {  in setup_nic_devices()
 3882 	} else if (num_vfs > oct->sriov_info.max_vfs) {  in liquidio_enable_sriov()
 3885 			oct->sriov_info.max_vfs, num_vfs);  in liquidio_enable_sriov()
 
 | 
| D | octeon_device.h | 375 	u32	max_vfs;  member
 | 
| /Linux-v5.4/Documentation/networking/device_drivers/intel/ | 
| D | igb.rst | 38     modprobe igb max_vfs=2,445 max_vfs  section in Command Line Parameters
 50 max_vfs worth of virtual functions.  If the value is greater than 0 it will
 58     modprobe igb max_vfs=4
 64     modprobe igb max_vfs=2,4
 
 | 
| D | ixgbe.rst | 179 max_vfs  section in Command Line Parameters184 max_vfs worth of virtual functions.
 201   modprobe ixgbe max_vfs=4
 207   modprobe ixgbe max_vfs=2,4
 229 With kernel 3.6, the driver supports the simultaneous usage of max_vfs and DCB
 231 driver did not support the simultaneous operation of max_vfs greater than 0 and
 
 | 
| /Linux-v5.4/drivers/net/ethernet/intel/ixgbe/ | 
| D | ixgbe_sriov.h | 37 void ixgbe_enable_sriov(struct ixgbe_adapter *adapter, unsigned int max_vfs);
 | 
| D | ixgbe_sriov.c | 153 void ixgbe_enable_sriov(struct ixgbe_adapter *adapter, unsigned int max_vfs)  in ixgbe_enable_sriov()  argument159 	if (!pre_existing_vfs && !max_vfs)  in ixgbe_enable_sriov()
 181 		num_vfs = min_t(unsigned int, max_vfs, IXGBE_MAX_VFS_DRV_LIMIT);  in ixgbe_enable_sriov()
 
 | 
| D | ixgbe_main.c | 149 static unsigned int max_vfs;  variable150 module_param(max_vfs, uint, 0);
 151 MODULE_PARM_DESC(max_vfs,
 6384 	if (max_vfs > 0)  in ixgbe_sw_init()
 6389 		if (max_vfs > IXGBE_MAX_VFS_DRV_LIMIT) {  in ixgbe_sw_init()
 6390 			max_vfs = 0;  in ixgbe_sw_init()
 10886 	ixgbe_enable_sriov(adapter, max_vfs);  in ixgbe_probe()
 
 | 
| /Linux-v5.4/drivers/net/ethernet/sfc/ | 
| D | siena_sriov.c | 179 static int max_vfs = -1;  variable180 module_param(max_vfs, int, 0444);
 181 MODULE_PARM_DESC(max_vfs,
 1055 	if (!max_vfs)  in efx_siena_sriov_probe()
 1062 	if (count > 0 && count > max_vfs)  in efx_siena_sriov_probe()
 1063 		count = max_vfs;  in efx_siena_sriov_probe()
 
 | 
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ | 
| D | sriov.c | 232 	sriov->max_vfs = mlx5_get_max_vfs(dev);  in mlx5_sriov_init()
 | 
| D | eswitch_offloads.c | 2594 	       vport_num <= esw->dev->priv.sriov.max_vfs;  in mlx5_eswitch_is_vf_vport()
 | 
| /Linux-v5.4/drivers/net/ethernet/emulex/benet/ | 
| D | be.h | 405 	u16 max_vfs;		/* Total VFs "really" supported by FW/HW */  member428 	u16 max_vfs;  member
 703 #define be_max_vfs(adapter)		(adapter->pool_res.max_vfs)
 
 | 
| D | be_main.c | 4409 	u16 max_vfs = be_max_vfs(adapter);  in be_calculate_pf_pool_rss_tables()  local4420 		max_vfs * rss_tables_on_port / port_res.max_vfs;  in be_calculate_pf_pool_rss_tables()
 4426 	int max_vfs, old_vfs;  in be_get_sriov_config()  local
 4432 	if (BE3_chip(adapter) && !res.max_vfs) {  in be_get_sriov_config()
 4433 		max_vfs = pci_sriov_get_totalvfs(adapter->pdev);  in be_get_sriov_config()
 4434 		res.max_vfs = max_vfs > 0 ? min(MAX_VFS, max_vfs) : 0;  in be_get_sriov_config()
 4448 		adapter->pool_res.max_vfs =  in be_get_sriov_config()
 
 | 
| D | be_cmds.c | 4494 				port_res->max_vfs += le16_to_cpu(pcie->num_vfs);  in be_cmd_get_profile_config()4503 		res->max_vfs = le16_to_cpu(pcie->num_vfs);  in be_cmd_get_profile_config()
 
 | 
| /Linux-v5.4/drivers/crypto/hisilicon/zip/ | 
| D | zip_main.c | 786 static int hisi_zip_sriov_enable(struct pci_dev *pdev, int max_vfs)  in hisi_zip_sriov_enable()  argument799 	num_vfs = min_t(int, max_vfs, HZIP_VF_NUM);  in hisi_zip_sriov_enable()
 
 | 
| /Linux-v5.4/include/linux/mlx5/ | 
| D | driver.h | 470 	u16			max_vfs;  member1142 	return dev->priv.sriov.max_vfs;  in mlx5_core_max_vfs()
 
 | 
| /Linux-v5.4/drivers/scsi/bfa/ | 
| D | bfa_defs.h | 770 	u8	max_vfs;  member
 | 
| /Linux-v5.4/drivers/net/ethernet/intel/igb/ | 
| D | igb_main.c | 209 static unsigned int max_vfs;  variable210 module_param(max_vfs, uint, 0);
 211 MODULE_PARM_DESC(max_vfs, "Maximum number of virtual functions to allocate per physical function");
 3532 			 old_vfs, max_vfs);  in igb_enable_sriov()
 3709 	igb_enable_sriov(pdev, max_vfs);  in igb_probe_vfs()
 3826 		if (max_vfs > 7) {  in igb_sw_init()
 3829 			max_vfs = adapter->vfs_allocated_count = 7;  in igb_sw_init()
 3831 			adapter->vfs_allocated_count = max_vfs;  in igb_sw_init()
 
 | 
| /Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/ | 
| D | bnxt.h | 1077 	u16	max_vfs;  member
 | 
| D | bnxt_hsi.h | 1126 	__le16	max_vfs;  member1678 	__le16	max_vfs;  member
 
 | 
| D | bnxt.c | 6976 		pf->max_vfs = le16_to_cpu(resp->max_vfs);  in __bnxt_hwrm_func_qcaps()
 |