Home
last modified time | relevance | path

Searched refs:total_vfs (Results 1 - 25 of 47) sorted by relevance

12

/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/
H A Dsriov.c280 /* Old FW doesn't support getting total_vfs from esw func in mlx5_get_max_vfs()
299 int total_vfs, i; in mlx5_sriov_init() local
304 total_vfs = pci_sriov_get_totalvfs(pdev); in mlx5_sriov_init()
308 sriov->vfs_ctx = kcalloc(total_vfs, sizeof(*sriov->vfs_ctx), GFP_KERNEL); in mlx5_sriov_init()
312 for (i = 0; i < total_vfs; i++) in mlx5_sriov_init()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
H A Dsriov.c206 /* Old FW doesn't support getting total_vfs from esw func in mlx5_get_max_vfs()
225 int total_vfs; in mlx5_sriov_init() local
230 total_vfs = pci_sriov_get_totalvfs(pdev); in mlx5_sriov_init()
233 sriov->vfs_ctx = kcalloc(total_vfs, sizeof(*sriov->vfs_ctx), GFP_KERNEL); in mlx5_sriov_init()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/
H A Denetc_pf.c341 if (vf >= pf->total_vfs) in enetc_pf_set_vf_mac()
362 if (vf >= pf->total_vfs) in enetc_pf_set_vf_vlan()
379 if (vf >= pf->total_vfs) in enetc_pf_set_vf_spoofchk()
397 for (i = 0; i < pf->total_vfs + 1; i++) { in enetc_port_setup_primary_mac_address()
418 vf_entries = num_entries / (pf->total_vfs + 1); in enetc_port_assign_rfs_entries()
420 for (i = 0; i < pf->total_vfs; i++) in enetc_port_assign_rfs_entries()
423 num_entries - vf_entries * pf->total_vfs); in enetc_port_assign_rfs_entries()
465 num_rings /= pf->total_vfs; in enetc_port_si_configure()
470 for (i = 0; i < pf->total_vfs; i++) in enetc_port_si_configure()
1148 pf->total_vfs in enetc_pf_probe()
[all...]
H A Denetc_pf.h34 int total_vfs; /* max number of VFs, set for PF at probe */ member
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/enetc/
H A Denetc_pf.c348 if (vf >= pf->total_vfs) in enetc_pf_set_vf_mac()
369 if (vf >= pf->total_vfs) in enetc_pf_set_vf_vlan()
386 if (vf >= pf->total_vfs) in enetc_pf_set_vf_spoofchk()
437 for (i = 0; i < pf->total_vfs; i++) { in enetc_setup_mac_addresses()
456 vf_entries = num_entries / (pf->total_vfs + 1); in enetc_port_assign_rfs_entries()
458 for (i = 0; i < pf->total_vfs; i++) in enetc_port_assign_rfs_entries()
461 num_entries - vf_entries * pf->total_vfs); in enetc_port_assign_rfs_entries()
503 num_rings /= pf->total_vfs; in enetc_port_si_configure()
508 for (i = 0; i < pf->total_vfs; i++) in enetc_port_si_configure()
1285 pf->total_vfs in enetc_pf_probe()
[all...]
H A Denetc_pf.h34 int total_vfs; /* max number of VFs, set for PF at probe */ member
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
H A Dmain.c3224 u8 total_vfs, int existing_vfs, int reset_flow) in mlx4_enable_sriov()
3232 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), in mlx4_enable_sriov()
3241 if (existing_vfs != total_vfs) { in mlx4_enable_sriov()
3243 existing_vfs, total_vfs); in mlx4_enable_sriov()
3244 total_vfs = existing_vfs; in mlx4_enable_sriov()
3248 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), GFP_KERNEL); in mlx4_enable_sriov()
3255 if (total_vfs > fw_enabled_sriov_vfs) { in mlx4_enable_sriov()
3257 total_vfs, fw_enabled_sriov_vfs); in mlx4_enable_sriov()
3261 mlx4_warn(dev, "Enabling SR-IOV with %d VFs\n", total_vfs); in mlx4_enable_sriov()
3262 err = pci_enable_sriov(pdev, total_vfs); in mlx4_enable_sriov()
3223 mlx4_enable_sriov(struct mlx4_dev *dev, struct pci_dev *pdev, u8 total_vfs, int existing_vfs, int reset_flow) mlx4_enable_sriov() argument
3332 mlx4_load_one(struct pci_dev *pdev, int pci_dev_data, int total_vfs, int *nvfs, struct mlx4_priv *priv, int reset_flow) mlx4_load_one() argument
3735 unsigned total_vfs = 0; __mlx4_init_one() local
4224 int pci_dev_data, err, total_vfs; mlx4_restart_one_up() local
4351 int total_vfs; mlx4_pci_resume() local
4420 int total_vfs; mlx4_resume() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/
H A Dmain.c3282 u8 total_vfs, int existing_vfs, int reset_flow) in mlx4_enable_sriov()
3290 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), in mlx4_enable_sriov()
3299 if (existing_vfs != total_vfs) { in mlx4_enable_sriov()
3301 existing_vfs, total_vfs); in mlx4_enable_sriov()
3302 total_vfs = existing_vfs; in mlx4_enable_sriov()
3306 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), GFP_KERNEL); in mlx4_enable_sriov()
3313 if (total_vfs > fw_enabled_sriov_vfs) { in mlx4_enable_sriov()
3315 total_vfs, fw_enabled_sriov_vfs); in mlx4_enable_sriov()
3319 mlx4_warn(dev, "Enabling SR-IOV with %d VFs\n", total_vfs); in mlx4_enable_sriov()
3320 err = pci_enable_sriov(pdev, total_vfs); in mlx4_enable_sriov()
3281 mlx4_enable_sriov(struct mlx4_dev *dev, struct pci_dev *pdev, u8 total_vfs, int existing_vfs, int reset_flow) mlx4_enable_sriov() argument
3390 mlx4_load_one(struct pci_dev *pdev, int pci_dev_data, int total_vfs, int *nvfs, struct mlx4_priv *priv, int reset_flow) mlx4_load_one() argument
3800 unsigned total_vfs = 0; __mlx4_init_one() local
4257 int pci_dev_data, err, total_vfs; mlx4_restart_one_up() local
4390 int total_vfs; mlx4_pci_resume() local
4470 int total_vfs; mlx4_resume() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
H A Dqed_sriov.h93 u16 total_vfs; /* total VFs associated with the PF */ member
H A Dqed_sriov.c142 if ((rel_vf_id >= p_hwfn->cdev->p_iov_info->total_vfs) || in qed_iov_is_valid_vfid()
347 pos + PCI_SRIOV_TOTAL_VF, &iov->total_vfs); in qed_iov_pci_cfg_info()
381 iov->total_vfs, in qed_iov_pci_cfg_info()
387 iov->total_vfs > NUM_OF_VFS(cdev)) { in qed_iov_pci_cfg_info()
397 iov->total_vfs = 0; in qed_iov_pci_cfg_info()
427 for (idx = 0; idx < p_iov->total_vfs; idx++) { in qed_iov_setup_vfdb()
464 num_vfs = p_hwfn->cdev->p_iov_info->total_vfs; in qed_iov_allocate_vfdb()
615 if (!cdev->p_iov_info->total_vfs) { in qed_iov_hw_info()
699 for (i = 0; i < cdev->p_iov_info->total_vfs; i++) in qed_iov_set_vfs_to_disable()
3736 for (i = 0; i < p_hwfn->cdev->p_iov_info->total_vfs; in qed_iov_vf_flr_cleanup()
[all...]
H A Dqed_sp_commands.c404 p_ramrod->num_vfs = (u8) p_iov->total_vfs; in qed_sp_pf_start()
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qed/
H A Dqed_sriov.h93 u16 total_vfs; /* total VFs associated with the PF */ member
H A Dqed_sriov.c144 if ((rel_vf_id >= p_hwfn->cdev->p_iov_info->total_vfs) || in qed_iov_is_valid_vfid()
349 pos + PCI_SRIOV_TOTAL_VF, &iov->total_vfs); in qed_iov_pci_cfg_info()
383 iov->total_vfs, in qed_iov_pci_cfg_info()
389 iov->total_vfs > NUM_OF_VFS(cdev)) { in qed_iov_pci_cfg_info()
399 iov->total_vfs = 0; in qed_iov_pci_cfg_info()
429 for (idx = 0; idx < p_iov->total_vfs; idx++) { in qed_iov_setup_vfdb()
466 num_vfs = p_hwfn->cdev->p_iov_info->total_vfs; in qed_iov_allocate_vfdb()
617 if (!cdev->p_iov_info->total_vfs) { in qed_iov_hw_info()
701 for (i = 0; i < cdev->p_iov_info->total_vfs; i++) in qed_iov_set_vfs_to_disable()
3764 for (i = 0; i < p_hwfn->cdev->p_iov_info->total_vfs; in qed_iov_vf_flr_cleanup()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_pf.c80 int irq, vfs = pf->total_vfs; in otx2_disable_flr_me_intr()
151 if (pf->total_vfs > 64) in otx2_pf_flr_intr_handler()
180 if (pf->total_vfs > 64) in otx2_pf_me_intr_handler()
546 int vfs = pf->total_vfs; in otx2_pfvf_mbox_intr_handler()
603 hwbase = ioremap_wc(base, MBOX_SIZE * pf->total_vfs); in otx2_pfvf_mbox_init()
2382 if (vf >= pf->total_vfs) in otx2_set_vf_mac()
2824 pf->vf_configs = devm_kcalloc(pf->dev, pf->total_vfs, in otx2_sriov_vfcfg_init()
2830 for (i = 0; i < pf->total_vfs; i++) { in otx2_sriov_vfcfg_init()
2848 for (i = 0; i < pf->total_vfs; i++) { in otx2_sriov_vfcfg_cleanup()
2899 pf->total_vfs in otx2_probe()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_pf.c69 int irq, vfs = pf->total_vfs; in otx2_disable_flr_me_intr()
140 if (pf->total_vfs > 64) in otx2_pf_flr_intr_handler()
169 if (pf->total_vfs > 64) in otx2_pf_me_intr_handler()
548 int vfs = pf->total_vfs; in otx2_pfvf_mbox_intr_handler()
597 hwbase = ioremap_wc(base, MBOX_SIZE * pf->total_vfs); in otx2_pfvf_mbox_init()
2043 pf->total_vfs = pci_sriov_get_totalvfs(pdev); in otx2_probe()
H A Dotx2_common.h254 u8 total_vfs; member
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu.h250 u16 total_vfs; /* Max RVU VFs HW supports */ member
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_cn10k.c55 return ((rvu_get_pf(pcifunc) * rvu->hw->total_vfs) + in rvu_get_lmtst_tbl_index()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_pf.c177 hw->iov.total_vfs = fm10k_is_ari_hierarchy_pf(hw) ? 64 : 7; in fm10k_init_hw_pf()
631 if ((num_vfs > num_pools) || (num_vfs > hw->iov.total_vfs)) in fm10k_iov_assign_resources_pf()
H A Dfm10k_iov.c356 dglort.vsi_l = fls(hw->iov.total_vfs - 1); in fm10k_iov_resume()
H A Dfm10k_type.h627 u16 total_vfs; member
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_pf.c177 hw->iov.total_vfs = fm10k_is_ari_hierarchy_pf(hw) ? 64 : 7; in fm10k_init_hw_pf()
631 if ((num_vfs > num_pools) || (num_vfs > hw->iov.total_vfs)) in fm10k_iov_assign_resources_pf()
H A Dfm10k_type.h627 u16 total_vfs; member
H A Dfm10k_iov.c356 dglort.vsi_l = fls(hw->iov.total_vfs - 1); in fm10k_iov_resume()
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/
H A Dqm.c3564 int ret, total_vfs, i; in qm_func_shaper_enable() local
3566 total_vfs = pci_sriov_get_totalvfs(qm->pdev); in qm_func_shaper_enable()
3567 if (fun_index > total_vfs) in qm_func_shaper_enable()
3859 int pre_existing_vfs, num_vfs, total_vfs, ret; in hisi_qm_sriov_enable() local
3865 total_vfs = pci_sriov_get_totalvfs(pdev); in hisi_qm_sriov_enable()
3873 if (max_vfs > total_vfs) { in hisi_qm_sriov_enable()
3874 pci_err(pdev, "%d VFs is more than total VFs %d!\n", max_vfs, total_vfs); in hisi_qm_sriov_enable()

Completed in 55 milliseconds

12