/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/ |
D | sriov.c | 275 int total_vfs, i; in mlx5_sriov_init() local 280 total_vfs = pci_sriov_get_totalvfs(pdev); in mlx5_sriov_init() 283 sriov->vfs_ctx = kcalloc(total_vfs, sizeof(*sriov->vfs_ctx), GFP_KERNEL); in mlx5_sriov_init() 287 for (i = 0; i < total_vfs; i++) in mlx5_sriov_init()
|
/linux-6.1.9/drivers/net/ethernet/freescale/enetc/ |
D | enetc_pf.c | 349 if (vf >= pf->total_vfs) in enetc_pf_set_vf_mac() 370 if (vf >= pf->total_vfs) in enetc_pf_set_vf_vlan() 387 if (vf >= pf->total_vfs) in enetc_pf_set_vf_spoofchk() 438 for (i = 0; i < pf->total_vfs; i++) { in enetc_setup_mac_addresses() 457 vf_entries = num_entries / (pf->total_vfs + 1); in enetc_port_assign_rfs_entries() 459 for (i = 0; i < pf->total_vfs; i++) in enetc_port_assign_rfs_entries() 462 num_entries - vf_entries * pf->total_vfs); in enetc_port_assign_rfs_entries() 504 num_rings /= pf->total_vfs; in enetc_port_si_configure() 509 for (i = 0; i < pf->total_vfs; i++) in enetc_port_si_configure() 1283 pf->total_vfs = pci_sriov_get_totalvfs(pdev); in enetc_pf_probe()
|
D | enetc_pf.h | 34 int total_vfs; /* max number of VFs, set for PF at probe */ member
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/ |
D | main.c | 3227 u8 total_vfs, int existing_vfs, int reset_flow) in mlx4_enable_sriov() argument 3235 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), in mlx4_enable_sriov() 3244 if (existing_vfs != total_vfs) { in mlx4_enable_sriov() 3246 existing_vfs, total_vfs); in mlx4_enable_sriov() 3247 total_vfs = existing_vfs; in mlx4_enable_sriov() 3251 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), GFP_KERNEL); in mlx4_enable_sriov() 3258 if (total_vfs > fw_enabled_sriov_vfs) { in mlx4_enable_sriov() 3260 total_vfs, fw_enabled_sriov_vfs); in mlx4_enable_sriov() 3264 mlx4_warn(dev, "Enabling SR-IOV with %d VFs\n", total_vfs); in mlx4_enable_sriov() 3265 err = pci_enable_sriov(pdev, total_vfs); in mlx4_enable_sriov() [all …]
|
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_pf.c | 78 int irq, vfs = pf->total_vfs; in otx2_disable_flr_me_intr() 149 if (pf->total_vfs > 64) in otx2_pf_flr_intr_handler() 178 if (pf->total_vfs > 64) in otx2_pf_me_intr_handler() 557 int vfs = pf->total_vfs; in otx2_pfvf_mbox_intr_handler() 612 hwbase = ioremap_wc(base, MBOX_SIZE * pf->total_vfs); in otx2_pfvf_mbox_init() 2232 if (vf >= pf->total_vfs) in otx2_set_vf_mac() 2670 pf->vf_configs = devm_kcalloc(pf->dev, pf->total_vfs, in otx2_sriov_vfcfg_init() 2676 for (i = 0; i < pf->total_vfs; i++) { in otx2_sriov_vfcfg_init() 2694 for (i = 0; i < pf->total_vfs; i++) { in otx2_sriov_vfcfg_cleanup() 2744 pf->total_vfs = pci_sriov_get_totalvfs(pdev); in otx2_probe()
|
D | otx2_common.h | 457 u8 total_vfs; member
|
D | otx2_flows.c | 172 vf_vlan_max_flows = pfvf->total_vfs * OTX2_PER_VF_VLAN_FLOWS; in otx2_mcam_entry_init()
|
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/ |
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; i++) in qed_iov_vf_flr_cleanup() [all …]
|
D | qed_sriov.h | 93 u16 total_vfs; /* total VFs associated with the PF */ member
|
D | qed_sp_commands.c | 411 p_ramrod->num_vfs = (u8)p_iov->total_vfs; in qed_sp_pf_start()
|
D | qed_int.c | 2059 u16 vfs = p_hwfn->cdev->p_iov_info->total_vfs; in qed_int_igu_reset_cam() 2205 max_vf = p_iov->first_vf_in_pf + p_iov->total_vfs; in qed_int_igu_read_cam()
|
D | qed_cxt.c | 1156 p_mngr->vf_count = p_hwfn->cdev->p_iov_info->total_vfs; in qed_cxt_mngr_alloc() 1524 p_iov->first_vf_in_pf + p_iov->total_vfs); in qed_ilt_vf_bounds_init()
|
D | qed_l2.c | 2230 max_vf_vlan_filters = cdev->p_iov_info->total_vfs * in qed_fill_eth_dev_info() 2232 max_vf_mac_filters = cdev->p_iov_info->total_vfs * in qed_fill_eth_dev_info()
|
D | qed_dev.c | 1468 p_hwfn->cdev->p_iov_info->total_vfs : 0; in qed_init_qm_get_num_vfs()
|
/linux-6.1.9/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_type.h | 627 u16 total_vfs; member
|
D | fm10k_iov.c | 356 dglort.vsi_l = fls(hw->iov.total_vfs - 1); in fm10k_iov_resume()
|
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()
|
D | fm10k_netdev.c | 357 if (mask <= hw->iov.total_vfs) { in fm10k_request_glort_range()
|
D | fm10k_pci.c | 2034 pci_sriov_set_totalvfs(pdev, hw->iov.total_vfs); in fm10k_sw_init()
|
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_cn10k.c | 55 return ((rvu_get_pf(pcifunc) * rvu->hw->total_vfs) + in rvu_get_lmtst_tbl_index()
|
D | rvu_debugfs.c | 623 index = pf * rvu->hw->total_vfs * LMT_MAPTBL_ENTRY_SIZE; in rvu_dbg_lmtst_map_table_display() 636 index = (pf * rvu->hw->total_vfs * 16) + in rvu_dbg_lmtst_map_table_display() 714 for (vf = 0; vf <= rvu->hw->total_vfs; vf++) { in get_max_column_width() 783 for (vf = 0; vf <= rvu->hw->total_vfs; vf++) { in rvu_dbg_rsrc_attach_status()
|
D | mcs_rvu_if.c | 863 mcs->vf = devm_kcalloc(mcs->dev, hw->total_vfs, in rvu_mcs_init()
|
D | rvu.h | 353 u16 total_vfs; /* Max RVU VFs HW supports */ member
|
D | rvu.c | 747 for (id = 0; id < hw->total_vfs; id++) { in rvu_free_hw_resources() 935 hw->total_vfs = (cfg >> 20) & 0xFFF; in rvu_setup_hw_resources() 1076 rvu->hwvf = devm_kcalloc(rvu->dev, hw->total_vfs, in rvu_setup_hw_resources()
|
/linux-6.1.9/drivers/crypto/hisilicon/ |
D | qm.c | 4430 int ret, total_vfs, i; in qm_func_shaper_enable() local 4432 total_vfs = pci_sriov_get_totalvfs(qm->pdev); in qm_func_shaper_enable() 4433 if (fun_index > total_vfs) in qm_func_shaper_enable() 4823 int pre_existing_vfs, num_vfs, total_vfs, ret; in hisi_qm_sriov_enable() local 4829 total_vfs = pci_sriov_get_totalvfs(pdev); in hisi_qm_sriov_enable() 4837 if (max_vfs > total_vfs) { in hisi_qm_sriov_enable() 4838 pci_err(pdev, "%d VFs is more than total VFs %d!\n", max_vfs, total_vfs); in hisi_qm_sriov_enable()
|