• Home
  • Raw
  • Download

Lines Matching refs:total_vfs

3224 			     u8 total_vfs, int existing_vfs, int reset_flow)  in mlx4_enable_sriov()  argument
3232 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), in mlx4_enable_sriov()
3241 if (existing_vfs != total_vfs) { in mlx4_enable_sriov()
3243 existing_vfs, total_vfs); in mlx4_enable_sriov()
3244 total_vfs = existing_vfs; in mlx4_enable_sriov()
3248 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), GFP_KERNEL); in mlx4_enable_sriov()
3255 if (total_vfs > fw_enabled_sriov_vfs) { in mlx4_enable_sriov()
3257 total_vfs, fw_enabled_sriov_vfs); in mlx4_enable_sriov()
3261 mlx4_warn(dev, "Enabling SR-IOV with %d VFs\n", total_vfs); in mlx4_enable_sriov()
3262 err = pci_enable_sriov(pdev, total_vfs); in mlx4_enable_sriov()
3273 dev->persist->num_vfs = total_vfs; in mlx4_enable_sriov()
3333 int total_vfs, int *nvfs, struct mlx4_priv *priv, in mlx4_load_one() argument
3394 if (total_vfs) { in mlx4_load_one()
3399 dev->persist->num_vfs = total_vfs; in mlx4_load_one()
3459 total_vfs, in mlx4_load_one()
3518 u64 dev_flags = mlx4_enable_sriov(dev, pdev, total_vfs, in mlx4_load_one()
3735 unsigned total_vfs = 0; in __mlx4_init_one() local
3751 total_vfs += nvfs[param_map[num_vfs_argc - 1][i]], i++) { in __mlx4_init_one()
3768 if (total_vfs > MLX4_MAX_NUM_VF) { in __mlx4_init_one()
3771 total_vfs, MLX4_MAX_NUM_VF); in __mlx4_init_one()
3826 if (total_vfs) { in __mlx4_init_one()
3855 err = mlx4_load_one(pdev, pci_dev_data, total_vfs, nvfs, priv, 0); in __mlx4_init_one()
4215 int pci_dev_data, err, total_vfs; in mlx4_restart_one_up() local
4218 total_vfs = dev->persist->num_vfs; in mlx4_restart_one_up()
4223 err = mlx4_load_one(pdev, pci_dev_data, total_vfs, nvfs, priv, 1); in mlx4_restart_one_up()
4342 int total_vfs; in mlx4_pci_resume() local
4346 total_vfs = dev->persist->num_vfs; in mlx4_pci_resume()
4351 err = mlx4_load_one(pdev, priv->pci_dev_data, total_vfs, nvfs, in mlx4_pci_resume()
4411 int total_vfs; in mlx4_resume() local
4415 total_vfs = dev->persist->num_vfs; in mlx4_resume()
4420 ret = mlx4_load_one(pdev, priv->pci_dev_data, total_vfs, in mlx4_resume()