/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | sriov.c | 280 /* 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 D | sriov.c | 206 /* 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 D | enetc_pf.c | 341 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 D | enetc_pf.h | 34 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 D | enetc_pf.c | 348 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 D | enetc_pf.h | 34 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 D | main.c | 3224 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 D | main.c | 3282 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 D | qed_sriov.h | 93 u16 total_vfs; /* total VFs associated with the PF */ member
|
H A D | qed_sriov.c | 142 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 D | qed_sp_commands.c | 404 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 D | qed_sriov.h | 93 u16 total_vfs; /* total VFs associated with the PF */ member
|
H A D | qed_sriov.c | 144 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 D | otx2_pf.c | 80 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 D | otx2_pf.c | 69 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 D | otx2_common.h | 254 u8 total_vfs; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu.h | 250 u16 total_vfs; /* Max RVU VFs HW supports */ member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_cn10k.c | 55 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 D | fm10k_pf.c | 177 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 D | fm10k_iov.c | 356 dglort.vsi_l = fls(hw->iov.total_vfs - 1); in fm10k_iov_resume()
|
H A D | fm10k_type.h | 627 u16 total_vfs; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_pf.c | 177 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 D | fm10k_type.h | 627 u16 total_vfs; member
|
H A D | fm10k_iov.c | 356 dglort.vsi_l = fls(hw->iov.total_vfs - 1); in fm10k_iov_resume()
|
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/ |
H A D | qm.c | 3564 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()
|