Searched refs:dev_vfs (Results 1 – 3 of 3) sorted by relevance
3235 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), in mlx4_enable_sriov()3237 if (!dev->dev_vfs) in mlx4_enable_sriov()3251 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), GFP_KERNEL); in mlx4_enable_sriov()3252 if (NULL == dev->dev_vfs) { in mlx4_enable_sriov()3284 kfree(dev->dev_vfs); in mlx4_enable_sriov()3285 dev->dev_vfs = NULL; in mlx4_enable_sriov()3574 dev->dev_vfs[sum].min_port = i < 2 ? i + 1 : 1; in mlx4_load_one()3575 dev->dev_vfs[sum].n_ports = i < 2 ? 1 : in mlx4_load_one()3723 kfree(priv->dev.dev_vfs); in mlx4_load_one()4134 kfree(dev->dev_vfs); in mlx4_unload_one()
2783 bitmap_set(actv_ports.ports, dev->dev_vfs[vf].min_port - 1, in mlx4_get_active_ports()2784 min((int)dev->dev_vfs[mlx4_get_vf_indx(dev, slave)].n_ports, in mlx4_get_active_ports()
888 struct mlx4_vf_dev *dev_vfs; member