Searched refs:reserved_gids (Results 1 – 2 of 2) sorted by relevance
43 ida_init(&dev->roce.reserved_gids.ida); in mlx5_init_reserved_gids()44 dev->roce.reserved_gids.start = tblsz; in mlx5_init_reserved_gids()45 dev->roce.reserved_gids.count = 0; in mlx5_init_reserved_gids()50 WARN_ON(!ida_is_empty(&dev->roce.reserved_gids.ida)); in mlx5_cleanup_reserved_gids()51 dev->roce.reserved_gids.start = 0; in mlx5_cleanup_reserved_gids()52 dev->roce.reserved_gids.count = 0; in mlx5_cleanup_reserved_gids()53 ida_destroy(&dev->roce.reserved_gids.ida); in mlx5_cleanup_reserved_gids()58 if (dev->roce.reserved_gids.start < count) { in mlx5_core_reserve_gids()63 if (dev->roce.reserved_gids.count + count > MLX5_MAX_RESERVED_GIDS) { in mlx5_core_reserve_gids()68 dev->roce.reserved_gids.start -= count; in mlx5_core_reserve_gids()[all …]
794 struct mlx5_rsvd_gids reserved_gids; member