| /linux/arch/powerpc/platforms/pseries/ |
| H A D | pci.c | 124 const int *max_vfs; in pseries_pci_sriov_enable() local 128 max_vfs = of_get_property(dn, "ibm,number-of-configurable-vfs", NULL); in pseries_pci_sriov_enable() 130 if (!max_vfs) in pseries_pci_sriov_enable() 134 max_config_vfs = of_read_number(&max_vfs[0], 1); in pseries_pci_sriov_enable()
|
| /linux/drivers/net/ethernet/cavium/liquidio/ |
| H A D | cn23xx_pf_device.c | 164 temp = oct->sriov_info.max_vfs & 0xff; in cn23xx_setup_global_mac_regs() 547 if (!oct->sriov_info.max_vfs) in cn23xx_setup_pf_mbox() 550 for (i = 0; i < oct->sriov_info.max_vfs; i++) { in cn23xx_setup_pf_mbox() 606 if (!oct->sriov_info.max_vfs) in cn23xx_free_pf_mbox() 609 for (i = 0; i < oct->sriov_info.max_vfs; i++) { in cn23xx_free_pf_mbox() 946 (oct->sriov_info.max_vfs > 0)) { in cn23xx_enable_pf_interrupt() 968 (oct->sriov_info.max_vfs > 0)) { in cn23xx_disable_pf_interrupt() 1083 u32 max_rings, total_rings, max_vfs, rings_per_vf; in cn23xx_sriov_config() local 1110 max_vfs = min_t(u32, in cn23xx_sriov_config() 1114 max_vfs = 0; in cn23xx_sriov_config() [all …]
|
| H A D | lio_main.c | 725 int max_vfs, vf, i; in disable_all_vf_links() local 730 max_vfs = oct->sriov_info.max_vfs; in disable_all_vf_links() 737 for (vf = 0; vf < max_vfs; vf++) in disable_all_vf_links() 1364 oct->sriov_info.max_vfs); in octeon_chip_specific_setup() 2805 if (vfidx < 0 || vfidx >= oct->sriov_info.max_vfs) in __liquidio_set_vf_mac() 3608 for (j = 0; j < octeon_dev->sriov_info.max_vfs; j++) { in setup_nic_devices() 3831 } else if (num_vfs > oct->sriov_info.max_vfs) { in liquidio_enable_sriov() 3834 oct->sriov_info.max_vfs, num_vfs); in liquidio_enable_sriov()
|
| H A D | octeon_device.h | 375 u32 max_vfs; member
|
| /linux/drivers/crypto/marvell/octeontx/ |
| H A D | otx_cptpf_mbox.c | 142 if (q >= cpt->max_vfs) { in otx_cpt_bind_vq_to_grp() 144 q, cpt->max_vfs); in otx_cpt_bind_vq_to_grp() 247 for (vf = 0; vf < cpt->max_vfs; vf++) { in otx_cpt_mbox_intr_handler()
|
| H A D | otx_cptpf.h | 27 u8 max_vfs; /* Maximum number of VFs supported by the CPT */ member
|
| /linux/drivers/net/ethernet/marvell/octeon_ep/ |
| H A D | octep_config.h | 81 #define CFG_GET_MAX_VFS(cfg) ((cfg)->sriov_cfg.max_vfs) 161 u16 max_vfs; member
|
| /linux/Documentation/networking/device_drivers/ethernet/intel/ |
| H A D | igb.rst | 38 modprobe igb max_vfs=2,4 45 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
|
| H A D | ixgbe.rst | 179 max_vfs section in Command Line Parameters 184 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/drivers/crypto/marvell/octeontx2/ |
| H A D | otx2_cptpf.h | 57 u8 max_vfs; /* Maximum number of VFs supported by CPT */ member
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_sriov.h | 40 void ixgbe_enable_sriov(struct ixgbe_adapter *adapter, unsigned int max_vfs);
|
| H A D | ixgbe_sriov.c | 154 void ixgbe_enable_sriov(struct ixgbe_adapter *adapter, unsigned int max_vfs) in ixgbe_enable_sriov() argument 160 if (!pre_existing_vfs && !max_vfs) in ixgbe_enable_sriov() 182 num_vfs = min_t(unsigned int, max_vfs, IXGBE_MAX_VFS_DRV_LIMIT); in ixgbe_enable_sriov()
|
| H A D | ixgbe_main.c | 159 static unsigned int max_vfs; variable 160 module_param(max_vfs, uint, 0); 161 MODULE_PARM_DESC(max_vfs, 7037 if (max_vfs > 0) in ixgbe_sw_init() 7042 if (max_vfs > IXGBE_MAX_VFS_DRV_LIMIT) { in ixgbe_sw_init() 7043 max_vfs = 0; in ixgbe_sw_init() 11761 ixgbe_enable_sriov(adapter, max_vfs); in ixgbe_probe()
|
| /linux/drivers/net/ethernet/huawei/hinic/ |
| H A D | hinic_hw_io.h | 88 u16 max_vfs; member
|
| H A D | hinic_sriov.c | 83 for (i = 1; i <= nic_io->max_vfs; i++) { in hinic_notify_all_vfs_link_changed() 267 if (vf_id > nic_io->max_vfs) { in hinic_register_vf_msg_handler() 269 HW_VF_ID_TO_OS(vf_id), HW_VF_ID_TO_OS(nic_io->max_vfs)); in hinic_register_vf_msg_handler() 295 if (vf_id > nic_io->max_vfs) in hinic_unregister_vf_msg_handler() 1205 nic_io->max_vfs = hwdev->nic_cap.max_vf; in hinic_vf_func_init() 1206 size = sizeof(*nic_io->vf_infos) * nic_io->max_vfs; in hinic_vf_func_init() 1214 for (i = 0; i < nic_io->max_vfs; i++) { in hinic_vf_func_init()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu_sdp.c | 101 req->info.node_id, req->info.max_vfs, req->info.num_pf_rings, in rvu_mbox_handler_set_sdp_chan_info()
|
| H A D | mbox.h | 2207 u8 max_vfs; member
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | siena_sriov.c | 180 static int max_vfs = -1; variable 181 module_param(max_vfs, int, 0444); 182 MODULE_PARM_DESC(max_vfs, 1057 if (!max_vfs) in efx_siena_sriov_probe() 1064 if (count > 0 && count > max_vfs) in efx_siena_sriov_probe() 1065 count = max_vfs; in efx_siena_sriov_probe()
|
| /linux/include/linux/ |
| H A D | pci-epc.h | 227 u8 *max_vfs; member
|
| /linux/drivers/pci/endpoint/ |
| H A D | pci-epc-core.c | 122 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_function_is_valid()
|
| /linux/drivers/net/ethernet/emulex/benet/ |
| H A D | be_main.c | 4427 u16 max_vfs = be_max_vfs(adapter); in be_calculate_pf_pool_rss_tables() local 4438 max_vfs * rss_tables_on_port / port_res.max_vfs; in be_calculate_pf_pool_rss_tables() 4444 int max_vfs, old_vfs; in be_get_sriov_config() local 4450 if (BE3_chip(adapter) && !res.max_vfs) { in be_get_sriov_config() 4451 max_vfs = pci_sriov_get_totalvfs(adapter->pdev); in be_get_sriov_config() 4452 res.max_vfs = max_vfs > 0 ? min(MAX_VFS, max_vfs) : 0; in be_get_sriov_config() 4466 adapter->pool_res.max_vfs = in be_get_sriov_config()
|
| /linux/include/linux/mlx5/ |
| H A D | driver.h | 481 u16 max_vfs; member 1252 return dev->priv.sriov.max_vfs; in mlx5_core_max_vfs()
|
| /linux/drivers/scsi/bfa/ |
| H A D | bfa_defs.h | 770 u8 max_vfs; member
|
| /linux/drivers/net/ethernet/intel/igb/ |
| H A D | igb_main.c | 186 static unsigned int max_vfs; variable 187 module_param(max_vfs, uint, 0444); 188 MODULE_PARM_DESC(max_vfs, "Maximum number of virtual functions to allocate per physical function"); 3772 old_vfs, max_vfs); in igb_enable_sriov() 3955 igb_enable_sriov(pdev, max_vfs, false); in igb_probe_vfs() 4077 if (max_vfs > 7) { in igb_sw_init() 4080 max_vfs = adapter->vfs_allocated_count = 7; in igb_sw_init() 4082 adapter->vfs_allocated_count = max_vfs; in igb_sw_init()
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt.h | 1427 u16 max_vfs; member
|