Home
last modified time | relevance | path

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

12

/linux-5.19.10/drivers/pci/endpoint/
Dpci-epc-core.c155 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_get_features()
228 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_raise_irq()
272 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_map_msi_irq()
303 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_get_msi()
340 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_set_msi()
371 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_get_msix()
408 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_set_msix()
438 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_unmap_addr()
469 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_map_addr()
501 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_clear_bar()
[all …]
Dpci-epf-core.c120 if (!epc->max_vfs) { in pci_epf_bind()
126 if (vfunc_no > epc->max_vfs[func_no]) { in pci_epf_bind()
137 if (!epc->max_vfs) { in pci_epf_bind()
143 if (vfunc_no > epc->max_vfs[func_no]) { in pci_epf_bind()
/linux-5.19.10/arch/powerpc/platforms/pseries/
Dpci.c151 const int *max_vfs; in pseries_pci_sriov_enable() local
155 max_vfs = of_get_property(dn, "ibm,number-of-configurable-vfs", NULL); in pseries_pci_sriov_enable()
157 if (!max_vfs) in pseries_pci_sriov_enable()
161 max_config_vfs = of_read_number(&max_vfs[0], 1); in pseries_pci_sriov_enable()
/linux-5.19.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
/linux-5.19.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()
/linux-5.19.10/drivers/net/ethernet/marvell/octeon_ep/
Doctep_config.h75 #define CFG_GET_MAX_VFS(cfg) ((cfg)->sriov_cfg.max_vfs)
152 u16 max_vfs; member
/linux-5.19.10/drivers/pci/controller/cadence/
Dpcie-cadence-ep.c695 epc->max_vfs = devm_kcalloc(dev, epc->max_functions, in cdns_pcie_ep_setup()
696 sizeof(*epc->max_vfs), GFP_KERNEL); in cdns_pcie_ep_setup()
697 if (!epc->max_vfs) in cdns_pcie_ep_setup()
701 epc->max_vfs, epc->max_functions); in cdns_pcie_ep_setup()
705 if (epc->max_vfs[i] == 0) in cdns_pcie_ep_setup()
707 epf->epf = devm_kcalloc(dev, epc->max_vfs[i], in cdns_pcie_ep_setup()
/linux-5.19.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
/linux-5.19.10/drivers/crypto/marvell/octeontx2/
Dotx2_cptpf.h53 u8 max_vfs; /* Maximum number of VFs supported by CPT */ member
Dcn10k_cpt.c61 size -= ((1 + cptpf->max_vfs) * MBOX_SIZE); in cn10k_cptpf_lmtst_init()
Dotx2_cptpf_main.c178 if (cptpf->max_vfs > 64) in cptpf_vf_flr_intr()
210 if (cptpf->max_vfs > 64) in cptpf_vf_me_intr()
378 MBOX_SIZE * cptpf->max_vfs); in cptpf_vfpf_mbox_init()
758 cptpf->max_vfs = pci_sriov_get_totalvfs(pdev); in otx2_cptpf_probe()
/linux-5.19.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.h39 void ixgbe_enable_sriov(struct ixgbe_adapter *adapter, unsigned int max_vfs);
/linux-5.19.10/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_io.h88 u16 max_vfs; member
Dhinic_sriov.c82 for (i = 1; i <= nic_io->max_vfs; i++) { in hinic_notify_all_vfs_link_changed()
266 if (vf_id > nic_io->max_vfs) { in hinic_register_vf_msg_handler()
268 HW_VF_ID_TO_OS(vf_id), HW_VF_ID_TO_OS(nic_io->max_vfs)); in hinic_register_vf_msg_handler()
294 if (vf_id > nic_io->max_vfs) in hinic_unregister_vf_msg_handler()
1195 nic_io->max_vfs = hwdev->nic_cap.max_vf; in hinic_vf_func_init()
1196 size = sizeof(*nic_io->vf_infos) * nic_io->max_vfs; in hinic_vf_func_init()
1204 for (i = 0; i < nic_io->max_vfs; i++) { in hinic_vf_func_init()
/linux-5.19.10/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_sdp.c86 req->info.node_id, req->info.max_vfs, req->info.num_pf_rings, in rvu_mbox_handler_set_sdp_chan_info()
/linux-5.19.10/drivers/net/ethernet/sfc/siena/
Dsiena_sriov.c180 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-5.19.10/drivers/net/ethernet/emulex/benet/
Dbe.h403 u16 max_vfs; /* Total VFs "really" supported by FW/HW */ member
426 u16 max_vfs; member
696 #define be_max_vfs(adapter) (adapter->pool_res.max_vfs)
/linux-5.19.10/include/linux/
Dpci-epc.h147 u8 *max_vfs; member
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/
Dsriov.c276 sriov->max_vfs = mlx5_get_max_vfs(dev); in mlx5_sriov_init()
/linux-5.19.10/drivers/net/netdevsim/
Dnetdevsim.h377 unsigned int max_vfs; member
Dbus.c300 nsim_bus_dev->max_vfs = NSIM_BUS_DEV_MAX_VFS; in nsim_bus_dev_new()

12