Lines Matching refs:total_vfs
2702 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
2834 if (total_vfs) { in mlx4_load_one()
2839 dev->persist->num_vfs = total_vfs; in mlx4_load_one()
2899 total_vfs, in mlx4_load_one()
2957 u64 dev_flags = mlx4_enable_sriov(dev, pdev, total_vfs, in mlx4_load_one()
3188 unsigned total_vfs = 0; in __mlx4_init_one() local
3204 total_vfs += nvfs[param_map[num_vfs_argc - 1][i]], i++) { in __mlx4_init_one()
3221 if (total_vfs >= MLX4_MAX_NUM_VF) { in __mlx4_init_one()
3224 total_vfs, MLX4_MAX_NUM_VF - 1); in __mlx4_init_one()
3288 if (total_vfs) { in __mlx4_init_one()
3313 err = mlx4_load_one(pdev, pci_dev_data, total_vfs, nvfs, priv, 0); in __mlx4_init_one()
3522 int pci_dev_data, err, total_vfs; in mlx4_restart_one() local
3525 total_vfs = dev->persist->num_vfs; in mlx4_restart_one()
3529 err = mlx4_load_one(pdev, pci_dev_data, total_vfs, nvfs, priv, 1); in mlx4_restart_one()
3620 int total_vfs; in mlx4_pci_slot_reset() local
3633 total_vfs = dev->persist->num_vfs; in mlx4_pci_slot_reset()
3638 ret = mlx4_load_one(pdev, priv->pci_dev_data, total_vfs, nvfs, in mlx4_pci_slot_reset()