Searched refs:dev_vfs (Results 1 – 3 of 3) sorted by relevance
3286 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), in mlx4_enable_sriov()3288 if (!dev->dev_vfs) in mlx4_enable_sriov()3302 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), GFP_KERNEL); in mlx4_enable_sriov()3303 if (NULL == dev->dev_vfs) { in mlx4_enable_sriov()3335 kfree(dev->dev_vfs); in mlx4_enable_sriov()3336 dev->dev_vfs = NULL; in mlx4_enable_sriov()3629 dev->dev_vfs[sum].min_port = i < 2 ? i + 1 : 1; in mlx4_load_one()3630 dev->dev_vfs[sum].n_ports = i < 2 ? 1 : in mlx4_load_one()3776 kfree(priv->dev.dev_vfs); in mlx4_load_one()4163 kfree(dev->dev_vfs); in mlx4_unload_one()
2784 bitmap_set(actv_ports.ports, dev->dev_vfs[vf].min_port - 1, in mlx4_get_active_ports()2785 min((int)dev->dev_vfs[mlx4_get_vf_indx(dev, slave)].n_ports, in mlx4_get_active_ports()
889 struct mlx4_vf_dev *dev_vfs; member