Home
last modified time | relevance | path

Searched refs:max_vfs (Results 1 – 25 of 29) sorted by relevance

12

/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
Dpci.c153 const int *max_vfs; in pseries_pci_sriov_enable() local
157 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()
/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/
Dotx_cptpf_mbox.c142 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()
Dotx_cptpf_main.c104 cpt->max_vfs = pci_sriov_get_totalvfs(cpt->pdev); in otx_cpt_device_init()
159 if (numvfs > cpt->max_vfs) in otx_cpt_sriov_configure()
160 numvfs = cpt->max_vfs; in otx_cpt_sriov_configure()
Dotx_cptpf.h27 u8 max_vfs; /* Maximum number of VFs supported by the CPT */ member
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/
Dcn23xx_pf_device.c333 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 …]
Dlio_vf_rep.c245 int vf_id, max_vfs = CN23XX_MAX_VFS_PER_PF + 1; in lio_vf_rep_get_ndev() local
246 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()
Dlio_main.c737 int max_vfs, vf, i; in disable_all_vf_links() local
742 max_vfs = oct->sriov_info.max_vfs; in disable_all_vf_links()
749 for (vf = 0; vf < max_vfs; vf++) in disable_all_vf_links()
1378 oct->sriov_info.max_vfs); in octeon_chip_specific_setup()
2832 if (vfidx < 0 || vfidx >= oct->sriov_info.max_vfs) in __liquidio_set_vf_mac()
3636 for (j = 0; j < octeon_dev->sriov_info.max_vfs; j++) { in setup_nic_devices()
3887 } else if (num_vfs > oct->sriov_info.max_vfs) { in liquidio_enable_sriov()
3890 oct->sriov_info.max_vfs, num_vfs); in liquidio_enable_sriov()
Docteon_device.h375 u32 max_vfs; member
/kernel/linux/linux-5.10/Documentation/networking/device_drivers/ethernet/intel/
Digb.rst38 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
Dixgbe.rst179 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
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.h39 void ixgbe_enable_sriov(struct ixgbe_adapter *adapter, unsigned int max_vfs);
Dixgbe_sriov.c154 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()
Dixgbe_main.c148 static unsigned int max_vfs; variable
149 module_param(max_vfs, uint, 0);
150 MODULE_PARM_DESC(max_vfs,
6423 if (max_vfs > 0) in ixgbe_sw_init()
6428 if (max_vfs > IXGBE_MAX_VFS_DRV_LIMIT) { in ixgbe_sw_init()
6429 max_vfs = 0; in ixgbe_sw_init()
10839 ixgbe_enable_sriov(adapter, max_vfs); in ixgbe_probe()
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_io.h88 u16 max_vfs; member
Dhinic_sriov.c81 for (i = 1; i <= nic_io->max_vfs; i++) { in hinic_notify_all_vfs_link_changed()
265 if (vf_id > nic_io->max_vfs) { in hinic_register_vf_msg_handler()
267 HW_VF_ID_TO_OS(vf_id), HW_VF_ID_TO_OS(nic_io->max_vfs)); in hinic_register_vf_msg_handler()
293 if (vf_id > nic_io->max_vfs) in hinic_unregister_vf_msg_handler()
1191 nic_io->max_vfs = hwdev->nic_cap.max_vf; in hinic_vf_func_init()
1192 size = sizeof(*nic_io->vf_infos) * nic_io->max_vfs; in hinic_vf_func_init()
1200 for (i = 0; i < nic_io->max_vfs; i++) { in hinic_vf_func_init()
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Dsiena_sriov.c180 static int max_vfs = -1; variable
181 module_param(max_vfs, int, 0444);
182 MODULE_PARM_DESC(max_vfs,
1056 if (!max_vfs) in efx_siena_sriov_probe()
1063 if (count > 0 && count > max_vfs) in efx_siena_sriov_probe()
1064 count = max_vfs; in efx_siena_sriov_probe()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Dsriov.c232 sriov->max_vfs = mlx5_get_max_vfs(dev); in mlx5_sriov_init()
/kernel/linux/linux-5.10/drivers/net/ethernet/emulex/benet/
Dbe.h404 u16 max_vfs; /* Total VFs "really" supported by FW/HW */ member
427 u16 max_vfs; member
697 #define be_max_vfs(adapter) (adapter->pool_res.max_vfs)
Dbe_main.c4425 u16 max_vfs = be_max_vfs(adapter); in be_calculate_pf_pool_rss_tables() local
4436 max_vfs * rss_tables_on_port / port_res.max_vfs; in be_calculate_pf_pool_rss_tables()
4442 int max_vfs, old_vfs; in be_get_sriov_config() local
4448 if (BE3_chip(adapter) && !res.max_vfs) { in be_get_sriov_config()
4449 max_vfs = pci_sriov_get_totalvfs(adapter->pdev); in be_get_sriov_config()
4450 res.max_vfs = max_vfs > 0 ? min(MAX_VFS, max_vfs) : 0; in be_get_sriov_config()
4464 adapter->pool_res.max_vfs = in be_get_sriov_config()
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/
Dqm.h358 int hisi_qm_sriov_enable(struct pci_dev *pdev, int max_vfs);
Dqm.c3127 int hisi_qm_sriov_enable(struct pci_dev *pdev, int max_vfs) in hisi_qm_sriov_enable() argument
3140 num_vfs = min_t(int, max_vfs, total_vfs); in hisi_qm_sriov_enable()
/kernel/linux/linux-5.10/include/linux/mlx5/
Ddriver.h470 u16 max_vfs; member
1157 return dev->priv.sriov.max_vfs; in mlx5_core_max_vfs()
/kernel/linux/linux-5.10/drivers/scsi/bfa/
Dbfa_defs.h770 u8 max_vfs; member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/
Digb_main.c204 static unsigned int max_vfs; variable
205 module_param(max_vfs, uint, 0);
206 MODULE_PARM_DESC(max_vfs, "Maximum number of virtual functions to allocate per physical function");
3695 old_vfs, max_vfs); in igb_enable_sriov()
3874 igb_enable_sriov(pdev, max_vfs); in igb_probe_vfs()
3993 if (max_vfs > 7) { in igb_sw_init()
3996 max_vfs = adapter->vfs_allocated_count = 7; in igb_sw_init()
3998 adapter->vfs_allocated_count = max_vfs; in igb_sw_init()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.h1120 u16 max_vfs; member

12