/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_sriov_pf.c | 17 return xe_modparam.max_vfs;
|
H A D | xe_module.h | 22 unsigned int max_vfs; member in struct:xe_modparam
|
H A D | xe_module.c | 52 module_param_named(max_vfs, xe_modparam.max_vfs, uint, 0400); 53 MODULE_PARM_DESC(max_vfs,
|
/linux-master/arch/powerpc/platforms/pseries/ |
H A D | pci.c | 124 const int *max_vfs; local 128 max_vfs = of_get_property(dn, "ibm,number-of-configurable-vfs", NULL); 130 if (!max_vfs) 134 max_config_vfs = of_read_number(&max_vfs[0], 1);
|
/linux-master/include/linux/mlx5/ |
H A D | driver.h | 471 u16 max_vfs; member in struct:mlx5_core_sriov 1242 return dev->priv.sriov.max_vfs;
|
/linux-master/drivers/net/netdevsim/ |
H A D | netdevsim.h | 426 unsigned int max_vfs; member in struct:nsim_bus_dev
|
H A D | bus.c | 438 nsim_bus_dev->max_vfs = NSIM_BUS_DEV_MAX_VFS;
|
H A D | dev.c | 235 READ_ONCE(nsim_dev->nsim_bus_dev->max_vfs)); 265 /* max_vfs limited by the maximum number of provided port indexes */ 281 WRITE_ONCE(nsim_dev->nsim_bus_dev->max_vfs, val); 342 debugfs_create_file("max_vfs", 0600, nsim_dev->ddir, 1548 nsim_dev->vfconfigs = kcalloc(nsim_bus_dev->max_vfs, 1747 if (nsim_bus_dev->max_vfs < num_vfs) {
|
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | mbox.h | 1859 u8 max_vfs; member in struct:sdp_node_info
|
H A D | rvu_sdp.c | 100 dev_info(rvu->dev, "AF: SDP%d max_vfs %d num_pf_rings %d pf_srn %d\n", 101 req->info.node_id, req->info.max_vfs, req->info.num_pf_rings,
|
/linux-master/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_main.c | 149 static unsigned int max_vfs; variable 150 module_param(max_vfs, uint, 0); 151 MODULE_PARM_DESC(max_vfs, 6485 if (max_vfs > 0) 6486 e_dev_warn("Enabling SR-IOV VFs using the max_vfs module parameter is deprecated - please use the pci sysfs interface instead.\n"); 6490 if (max_vfs > IXGBE_MAX_VFS_DRV_LIMIT) { 6491 max_vfs = 0; 6492 e_dev_warn("max_vfs parameter out of range. Not assigning any SR-IOV VFs\n"); 11007 ixgbe_enable_sriov(adapter, max_vfs);
|
H A D | ixgbe_sriov.c | 155 void ixgbe_enable_sriov(struct ixgbe_adapter *adapter, unsigned int max_vfs) argument 161 if (!pre_existing_vfs && !max_vfs) 183 num_vfs = min_t(unsigned int, max_vfs, IXGBE_MAX_VFS_DRV_LIMIT);
|
/linux-master/drivers/net/ethernet/intel/igb/ |
H A D | igb_main.c | 188 static unsigned int max_vfs; variable 189 module_param(max_vfs, uint, 0444); 190 MODULE_PARM_DESC(max_vfs, "Maximum number of virtual functions to allocate per physical function"); 3743 dev_info(&pdev->dev, "%d pre-allocated VFs found - override max_vfs setting of %d\n", 3744 old_vfs, max_vfs); 3928 igb_enable_sriov(pdev, max_vfs, false); 4047 if (max_vfs > 7) { 4050 max_vfs = adapter->vfs_allocated_count = 7; 4052 adapter->vfs_allocated_count = max_vfs;
|
/linux-master/drivers/net/ethernet/emulex/benet/ |
H A D | be_main.c | 4426 u16 max_vfs = be_max_vfs(adapter); local 4437 max_vfs * rss_tables_on_port / port_res.max_vfs; 4443 int max_vfs, old_vfs; local 4448 /* Some old versions of BE3 FW don't report max_vfs value */ 4449 if (BE3_chip(adapter) && !res.max_vfs) { 4450 max_vfs = pci_sriov_get_totalvfs(adapter->pdev); 4451 res.max_vfs = max_vfs > 0 ? min(MAX_VFS, max_vfs) [all...] |
/linux-master/drivers/net/ethernet/cavium/liquidio/ |
H A D | lio_vf_rep.c | 245 int vf_id, max_vfs = CN23XX_MAX_VFS_PER_PF + 1; local 246 int vfid_mask = max_vfs - 1; 248 if (ifidx <= oct->pf_num * max_vfs || 249 ifidx >= oct->pf_num * max_vfs + max_vfs)
|
/linux-master/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_hsi.h | 1736 __le16 max_vfs; member in struct:hwrm_func_qcaps_output 2631 __le16 max_vfs; member in struct:hwrm_func_resource_qcaps_output
|
H A D | bnxt.h | 1353 u16 max_vfs; member in struct:bnxt_pf_info
|
H A D | bnxt.c | 8980 pf->max_vfs = le16_to_cpu(resp->max_vfs);
|
/linux-master/drivers/crypto/marvell/octeontx2/ |
H A D | cn10k_cpt.c | 66 size -= ((1 + cptpf->max_vfs) * MBOX_SIZE);
|
/linux-master/drivers/crypto/hisilicon/ |
H A D | qm.c | 3756 * @max_vfs: the number of virtual functions to enable 3759 * max_vfs is more than the total number of device can be enabled, returns 3762 int hisi_qm_sriov_enable(struct pci_dev *pdev, int max_vfs) argument 3779 if (max_vfs > total_vfs) { 3780 pci_err(pdev, "%d VFs is more than total VFs %d!\n", max_vfs, total_vfs); 3785 num_vfs = max_vfs;
|
/linux-master/include/linux/ |
H A D | hisi_acc_qm.h | 538 int hisi_qm_sriov_enable(struct pci_dev *pdev, int max_vfs);
|
H A D | pci-epc.h | 126 * @max_vfs: Array indicating the maximum number of virtual functions that can 141 u8 *max_vfs; member in struct:pci_epc
|
/linux-master/drivers/pci/endpoint/ |
H A D | pci-epc-core.c | 149 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) 222 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) 266 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) 297 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) 334 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_n [all...] |
H A D | pci-epf-core.c | 88 if (!epc->max_vfs) { 94 if (vfunc_no > epc->max_vfs[func_no]) { 105 if (!epc->max_vfs) { 111 if (vfunc_no > epc->max_vfs[func_no]) {
|
/linux-master/drivers/pci/controller/cadence/ |
H A D | pcie-cadence-ep.c | 707 epc->max_vfs = devm_kcalloc(dev, epc->max_functions, 708 sizeof(*epc->max_vfs), GFP_KERNEL); 709 if (!epc->max_vfs) 713 epc->max_vfs, epc->max_functions); 717 if (epc->max_vfs[i] == 0) 719 epf->epf = devm_kcalloc(dev, epc->max_vfs[i],
|