Home
last modified time | relevance | path

Searched refs:adev_idx (Results 1 – 6 of 6) sorted by relevance

/Linux-v6.6/drivers/net/ethernet/mellanox/mlx4/
Dintf.c77 priv->adev_idx = ida_alloc(&mlx4_adev_ida, GFP_KERNEL); in mlx4_adev_init()
78 if (priv->adev_idx < 0) in mlx4_adev_init()
79 return priv->adev_idx; in mlx4_adev_init()
84 ida_free(&mlx4_adev_ida, priv->adev_idx); in mlx4_adev_init()
96 ida_free(&mlx4_adev_ida, priv->adev_idx); in mlx4_adev_cleanup()
123 adev->id = priv->adev_idx; in add_adev()
Dmlx4.h886 int adev_idx; member
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/
Ddriver.c29 mdev->priv.adev_idx = adev->id; in mlx5_sf_dev_probe()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/
Dmain.c1905 dev->priv.adev_idx = mlx5_adev_idx_alloc(); in probe_one()
1906 if (dev->priv.adev_idx < 0) { in probe_one()
1907 err = dev->priv.adev_idx; in probe_one()
1946 mlx5_adev_idx_free(dev->priv.adev_idx); in probe_one()
1972 mlx5_adev_idx_free(dev->priv.adev_idx); in remove_one()
Ddev.c294 adev->id = dev->priv.adev_idx; in add_adev()
/Linux-v6.6/include/linux/mlx5/
Ddriver.h613 int adev_idx; member