Searched refs:adev_idx (Results 1 – 6 of 6) sorted by relevance
77 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()
886 int adev_idx; member
29 mdev->priv.adev_idx = adev->id; in mlx5_sf_dev_probe()
1905 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()
294 adev->id = dev->priv.adev_idx; in add_adev()
613 int adev_idx; member