/Linux-v5.4/drivers/net/ethernet/freescale/enetc/ |
D | enetc_pf.c | 371 if (vf >= pf->total_vfs) in enetc_pf_set_vf_mac() 392 if (vf >= pf->total_vfs) in enetc_pf_set_vf_vlan() 409 if (vf >= pf->total_vfs) in enetc_pf_set_vf_spoofchk() 427 for (i = 0; i < pf->total_vfs + 1; i++) { in enetc_port_setup_primary_mac_address() 448 vf_entries = num_entries / (pf->total_vfs + 1); in enetc_port_assign_rfs_entries() 450 for (i = 0; i < pf->total_vfs; i++) in enetc_port_assign_rfs_entries() 453 num_entries - vf_entries * pf->total_vfs); in enetc_port_assign_rfs_entries() 495 num_rings /= pf->total_vfs; in enetc_port_si_configure() 500 for (i = 0; i < pf->total_vfs; i++) in enetc_port_si_configure() 841 pf->total_vfs = pci_sriov_get_totalvfs(pdev); in enetc_pf_probe()
|
D | enetc_pf.h | 33 int total_vfs; /* max number of VFs, set for PF at probe */ member
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ |
D | sriov.c | 226 int total_vfs; in mlx5_sriov_init() local 231 total_vfs = pci_sriov_get_totalvfs(pdev); in mlx5_sriov_init() 234 sriov->vfs_ctx = kcalloc(total_vfs, sizeof(*sriov->vfs_ctx), GFP_KERNEL); in mlx5_sriov_init()
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/ |
D | main.c | 3207 u8 total_vfs, int existing_vfs, int reset_flow) in mlx4_enable_sriov() argument 3215 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), in mlx4_enable_sriov() 3224 if (existing_vfs != total_vfs) { in mlx4_enable_sriov() 3226 existing_vfs, total_vfs); in mlx4_enable_sriov() 3227 total_vfs = existing_vfs; in mlx4_enable_sriov() 3231 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), GFP_KERNEL); in mlx4_enable_sriov() 3238 if (total_vfs > fw_enabled_sriov_vfs) { in mlx4_enable_sriov() 3240 total_vfs, fw_enabled_sriov_vfs); in mlx4_enable_sriov() 3244 mlx4_warn(dev, "Enabling SR-IOV with %d VFs\n", total_vfs); in mlx4_enable_sriov() 3245 err = pci_enable_sriov(pdev, total_vfs); in mlx4_enable_sriov() [all …]
|
/Linux-v5.4/drivers/net/ethernet/qlogic/qed/ |
D | qed_sriov.h | 118 u16 total_vfs; /* total VFs associated with the PF */ member
|
D | qed_sriov.c | 166 if ((rel_vf_id >= p_hwfn->cdev->p_iov_info->total_vfs) || in qed_iov_is_valid_vfid() 371 pos + PCI_SRIOV_TOTAL_VF, &iov->total_vfs); in qed_iov_pci_cfg_info() 405 iov->total_vfs, in qed_iov_pci_cfg_info() 411 iov->total_vfs > NUM_OF_VFS(cdev)) { in qed_iov_pci_cfg_info() 421 iov->total_vfs = 0; in qed_iov_pci_cfg_info() 451 for (idx = 0; idx < p_iov->total_vfs; idx++) { in qed_iov_setup_vfdb() 488 num_vfs = p_hwfn->cdev->p_iov_info->total_vfs; in qed_iov_allocate_vfdb() 636 if (!cdev->p_iov_info->total_vfs) { in qed_iov_hw_info() 720 for (i = 0; i < cdev->p_iov_info->total_vfs; i++) in qed_iov_set_vfs_to_disable() 3747 for (i = 0; i < p_hwfn->cdev->p_iov_info->total_vfs; i++) in qed_iov_vf_flr_cleanup() [all …]
|
D | qed_sp_commands.c | 428 p_ramrod->num_vfs = (u8) p_iov->total_vfs; in qed_sp_pf_start()
|
D | qed_int.c | 2033 u16 vfs = p_hwfn->cdev->p_iov_info->total_vfs; in qed_int_igu_reset_cam() 2179 max_vf = p_iov->first_vf_in_pf + p_iov->total_vfs; in qed_int_igu_read_cam()
|
D | qed_cxt.c | 1249 p_mngr->vf_count = p_hwfn->cdev->p_iov_info->total_vfs; in qed_cxt_mngr_alloc() 1627 p_iov->first_vf_in_pf + p_iov->total_vfs); in qed_ilt_vf_bounds_init()
|
D | qed_l2.c | 2245 max_vf_vlan_filters = cdev->p_iov_info->total_vfs * in qed_fill_eth_dev_info() 2247 max_vf_mac_filters = cdev->p_iov_info->total_vfs * in qed_fill_eth_dev_info()
|
D | qed_dev.c | 1475 p_hwfn->cdev->p_iov_info->total_vfs : 0; in qed_init_qm_get_num_vfs()
|
/Linux-v5.4/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_type.h | 626 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 | 2033 pci_sriov_set_totalvfs(pdev, hw->iov.total_vfs); in fm10k_sw_init()
|
/Linux-v5.4/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu.h | 198 u16 total_vfs; /* Max RVU VFs HW supports */ member
|
D | rvu.c | 623 for (id = 0; id < hw->total_vfs; id++) { in rvu_free_hw_resources() 650 hw->total_vfs = (cfg >> 20) & 0xFFF; in rvu_setup_hw_resources() 788 rvu->hwvf = devm_kcalloc(rvu->dev, hw->total_vfs, in rvu_setup_hw_resources()
|
/Linux-v5.4/arch/powerpc/platforms/powernv/ |
D | pci-ioda.c | 1344 int total_vfs; in pnv_pci_vf_assign_m64() local 1353 total_vfs = pci_sriov_get_totalvfs(pdev); in pnv_pci_vf_assign_m64() 2890 int mul, total_vfs; in pnv_pci_ioda_fixup_iov_resources() local 2899 total_vfs = pci_sriov_get_totalvfs(pdev); in pnv_pci_ioda_fixup_iov_resources() 2930 mul = roundup_pow_of_two(total_vfs); in pnv_pci_ioda_fixup_iov_resources()
|