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

/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
H A Dmain.c2932 u8 total_vfs, int existing_vfs, int reset_flow) mlx4_enable_sriov()
2940 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), mlx4_enable_sriov()
2949 if (existing_vfs != total_vfs) { mlx4_enable_sriov()
2951 existing_vfs, total_vfs); mlx4_enable_sriov()
2952 total_vfs = existing_vfs; mlx4_enable_sriov()
2956 dev->dev_vfs = kzalloc(total_vfs * sizeof(*dev->dev_vfs), GFP_KERNEL); mlx4_enable_sriov()
2963 if (total_vfs > fw_enabled_sriov_vfs) { mlx4_enable_sriov()
2965 total_vfs, fw_enabled_sriov_vfs); mlx4_enable_sriov()
2969 mlx4_warn(dev, "Enabling SR-IOV with %d VFs\n", total_vfs); mlx4_enable_sriov()
2970 err = pci_enable_sriov(pdev, total_vfs); mlx4_enable_sriov()
2981 dev->persist->num_vfs = total_vfs; mlx4_enable_sriov()
3013 int total_vfs, int *nvfs, struct mlx4_priv *priv, mlx4_load_one()
3073 if (total_vfs) { mlx4_load_one()
3078 dev->persist->num_vfs = total_vfs; mlx4_load_one()
3138 total_vfs, mlx4_load_one()
3197 u64 dev_flags = mlx4_enable_sriov(dev, pdev, total_vfs, mlx4_load_one()
3417 unsigned total_vfs = 0; __mlx4_init_one() local
3433 total_vfs += nvfs[param_map[num_vfs_argc - 1][i]], i++) { __mlx4_init_one()
3450 if (total_vfs > MLX4_MAX_NUM_VF) { __mlx4_init_one()
3453 total_vfs, MLX4_MAX_NUM_VF); __mlx4_init_one()
3517 if (total_vfs) { __mlx4_init_one()
3542 err = mlx4_load_one(pdev, pci_dev_data, total_vfs, nvfs, priv, 0); __mlx4_init_one()
3753 int pci_dev_data, err, total_vfs; mlx4_restart_one() local
3756 total_vfs = dev->persist->num_vfs; mlx4_restart_one()
3760 err = mlx4_load_one(pdev, pci_dev_data, total_vfs, nvfs, priv, 1); mlx4_restart_one()
3851 int total_vfs; mlx4_pci_slot_reset() local
3864 total_vfs = dev->persist->num_vfs; mlx4_pci_slot_reset()
3869 ret = mlx4_load_one(pdev, priv->pci_dev_data, total_vfs, nvfs, mlx4_pci_slot_reset()
2931 mlx4_enable_sriov(struct mlx4_dev *dev, struct pci_dev *pdev, u8 total_vfs, int existing_vfs, int reset_flow) mlx4_enable_sriov() argument
3012 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
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_iov.c217 dglort.vsi_l = fls(hw->iov.total_vfs - 1); fm10k_iov_resume()
H A Dfm10k_type.h636 u16 total_vfs; member in struct:fm10k_iov_info
H A Dfm10k_pf.c188 hw->iov.total_vfs = fm10k_is_ari_hierarchy_pf(hw) ? 64 : 7; fm10k_init_hw_pf()
640 if ((num_vfs > num_pools) || (num_vfs > hw->iov.total_vfs)) fm10k_iov_assign_resources_pf()
H A Dfm10k_netdev.c379 if (mask <= hw->iov.total_vfs) { fm10k_request_glort_range()
H A Dfm10k_pci.c1697 pci_sriov_set_totalvfs(pdev, hw->iov.total_vfs); fm10k_sw_init()
/linux-4.4.14/arch/powerpc/platforms/powernv/
H A Dpci-ioda.c1163 int total_vfs; pnv_pci_vf_assign_m64() local
1173 total_vfs = pci_sriov_get_totalvfs(pdev); pnv_pci_vf_assign_m64()
2743 int mul, total_vfs; pnv_pci_ioda_fixup_iov_resources() local
2754 total_vfs = pci_sriov_get_totalvfs(pdev); pnv_pci_ioda_fixup_iov_resources()
2775 mul = roundup_pow_of_two(total_vfs); pnv_pci_ioda_fixup_iov_resources()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_sriov.c2415 /* we are always bound by the total_vfs in the configuration space */ bnx2x_sriov_configure()

Completed in 263 milliseconds