Home
last modified time | relevance | path

Searched refs:dev_vfs (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx4/
Dmain.c3286 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()
Dcmd.c2784 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()
/linux-6.12.1/include/linux/mlx4/
Ddevice.h889 struct mlx4_vf_dev *dev_vfs; member