Home
last modified time | relevance | path

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

12

/drivers/gpu/drm/xe/
A Dxe_module.c40 .max_vfs = DEFAULT_MAX_VFS,
84 module_param_named(max_vfs, xe_modparam.max_vfs, uint, 0400);
85 MODULE_PARM_DESC(max_vfs,
A Dxe_module.h22 unsigned int max_vfs; member
A Dxe_sriov_pf.c22 return xe_modparam.max_vfs; in wanted_max_vfs()
/drivers/net/ethernet/cavium/liquidio/
A Dcn23xx_pf_device.c164 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()
1110 max_vfs = min_t(u32, in cn23xx_sriov_config()
1114 max_vfs = 0; in cn23xx_sriov_config()
1118 total_rings = num_pf_rings + max_vfs; in cn23xx_sriov_config()
[all …]
A 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()
A Dlio_main.c725 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()
2816 if (vfidx < 0 || vfidx >= oct->sriov_info.max_vfs) in __liquidio_set_vf_mac()
3618 for (j = 0; j < octeon_dev->sriov_info.max_vfs; j++) { in setup_nic_devices()
3867 } else if (num_vfs > oct->sriov_info.max_vfs) { in liquidio_enable_sriov()
3870 oct->sriov_info.max_vfs, num_vfs); in liquidio_enable_sriov()
/drivers/crypto/marvell/octeontx/
A 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()
A 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()
A Dotx_cptpf.h27 u8 max_vfs; /* Maximum number of VFs supported by the CPT */ member
/drivers/net/ethernet/marvell/octeon_ep/
A Doctep_config.h81 #define CFG_GET_MAX_VFS(cfg) ((cfg)->sriov_cfg.max_vfs)
161 u16 max_vfs; member
/drivers/pci/endpoint/
A Dpci-epf-core.c88 if (!epc->max_vfs) { in pci_epf_bind()
94 if (vfunc_no > epc->max_vfs[func_no]) { in pci_epf_bind()
105 if (!epc->max_vfs) { in pci_epf_bind()
111 if (vfunc_no > epc->max_vfs[func_no]) { in pci_epf_bind()
A Dpci-epc-core.c121 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no])) in pci_epc_function_is_valid()
/drivers/pci/controller/cadence/
A Dpcie-cadence-ep.c716 epc->max_vfs = devm_kcalloc(dev, epc->max_functions, in cdns_pcie_ep_setup()
717 sizeof(*epc->max_vfs), GFP_KERNEL); in cdns_pcie_ep_setup()
718 if (!epc->max_vfs) in cdns_pcie_ep_setup()
722 epc->max_vfs, epc->max_functions); in cdns_pcie_ep_setup()
726 if (epc->max_vfs[i] == 0) in cdns_pcie_ep_setup()
728 epf->epf = devm_kcalloc(dev, epc->max_vfs[i], in cdns_pcie_ep_setup()
/drivers/net/ethernet/huawei/hinic/
A Dhinic_sriov.c83 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()
A Dhinic_hw_io.h88 u16 max_vfs; member
/drivers/crypto/marvell/octeontx2/
A Dotx2_cptpf.h57 u8 max_vfs; /* Maximum number of VFs supported by CPT */ member
A Dotx2_cptpf_main.c182 if (cptpf->max_vfs > 64) in cptpf_vf_flr_intr()
214 if (cptpf->max_vfs > 64) in cptpf_vf_me_intr()
382 MBOX_SIZE * cptpf->max_vfs); in cptpf_vfpf_mbox_init()
792 cptpf->max_vfs = pci_sriov_get_totalvfs(pdev); in otx2_cptpf_probe()
/drivers/net/ethernet/intel/ixgbe/
A Dixgbe_sriov.h40 void ixgbe_enable_sriov(struct ixgbe_adapter *adapter, unsigned int max_vfs);
/drivers/net/ethernet/marvell/octeontx2/af/
A Drvu_sdp.c101 req->info.node_id, req->info.max_vfs, req->info.num_pf_rings, in rvu_mbox_handler_set_sdp_chan_info()
/drivers/net/ethernet/sfc/siena/
A 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()
/drivers/net/ethernet/emulex/benet/
A 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)
A 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()
/drivers/net/netdevsim/
A Ddev.c235 READ_ONCE(nsim_dev->nsim_bus_dev->max_vfs)); in nsim_bus_dev_max_vfs_read()
281 WRITE_ONCE(nsim_dev->nsim_bus_dev->max_vfs, val); in nsim_bus_dev_max_vfs_write()
1597 nsim_dev->vfconfigs = kcalloc(nsim_bus_dev->max_vfs, in nsim_drv_probe()
1796 if (nsim_bus_dev->max_vfs < num_vfs) { in nsim_drv_configure_vfs()
A Dnetdevsim.h432 unsigned int max_vfs; member
/drivers/net/ethernet/mellanox/mlx5/core/
A Dsriov.c305 sriov->max_vfs = mlx5_get_max_vfs(dev); in mlx5_sriov_init()

Completed in 69 milliseconds

12