Home
last modified time | relevance | path

Searched refs:total_vfs (Results 1 – 7 of 7) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dmain.c2702 u8 total_vfs, int existing_vfs, int reset_flow) in mlx4_enable_sriov() argument
2708 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), in mlx4_enable_sriov()
2717 if (existing_vfs != total_vfs) { in mlx4_enable_sriov()
2719 existing_vfs, total_vfs); in mlx4_enable_sriov()
2720 total_vfs = existing_vfs; in mlx4_enable_sriov()
2724 dev->dev_vfs = kzalloc(total_vfs * sizeof(*dev->dev_vfs), GFP_KERNEL); in mlx4_enable_sriov()
2731 mlx4_warn(dev, "Enabling SR-IOV with %d VFs\n", total_vfs); in mlx4_enable_sriov()
2732 err = pci_enable_sriov(pdev, total_vfs); in mlx4_enable_sriov()
2743 dev->persist->num_vfs = total_vfs; in mlx4_enable_sriov()
2774 int total_vfs, int *nvfs, struct mlx4_priv *priv, in mlx4_load_one() argument
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k_iov.c214 dglort.vsi_l = fls(hw->iov.total_vfs - 1); in fm10k_iov_resume()
Dfm10k_type.h637 u16 total_vfs; member
Dfm10k_pf.c182 hw->iov.total_vfs = fm10k_is_ari_hierarchy_pf(hw) ? 64 : 7; in fm10k_init_hw_pf()
647 if ((num_vfs > num_pools) || (num_vfs > hw->iov.total_vfs)) in fm10k_iov_assign_resources_pf()
Dfm10k_netdev.c379 if (mask <= hw->iov.total_vfs) { in fm10k_request_glort_range()
Dfm10k_pci.c1635 pci_sriov_set_totalvfs(pdev, hw->iov.total_vfs); in fm10k_sw_init()
/linux-4.1.27/arch/powerpc/platforms/powernv/
Dpci-ioda.c1188 int total_vfs; in pnv_pci_vf_assign_m64() local
1198 total_vfs = pci_sriov_get_totalvfs(pdev); in pnv_pci_vf_assign_m64()
2361 int mul, total_vfs; in pnv_pci_ioda_fixup_iov_resources() local
2372 total_vfs = pci_sriov_get_totalvfs(pdev); in pnv_pci_ioda_fixup_iov_resources()
2393 mul = roundup_pow_of_two(total_vfs); in pnv_pci_ioda_fixup_iov_resources()