Home
last modified time | relevance | path

Searched refs:reserved_gids (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/dev/mlx5/mlx5_lib/
H A Dmlx5_gid.c42 ida_init(&dev->roce.reserved_gids.ida); in mlx5_init_reserved_gids()
43 dev->roce.reserved_gids.start = tblsz; in mlx5_init_reserved_gids()
44 dev->roce.reserved_gids.count = 0; in mlx5_init_reserved_gids()
49 WARN_ON(!ida_is_empty(&dev->roce.reserved_gids.ida)); in mlx5_cleanup_reserved_gids()
50 dev->roce.reserved_gids.start = 0; in mlx5_cleanup_reserved_gids()
51 dev->roce.reserved_gids.count = 0; in mlx5_cleanup_reserved_gids()
52 ida_destroy(&dev->roce.reserved_gids.ida); in mlx5_cleanup_reserved_gids()
61 if (dev->roce.reserved_gids.start < count) { in mlx5_core_reserve_gids()
66 if (dev->roce.reserved_gids.count + count > MLX5_MAX_RESERVED_GIDS) { in mlx5_core_reserve_gids()
71 dev->roce.reserved_gids.start -= count; in mlx5_core_reserve_gids()
[all …]
/freebsd/sys/dev/mlx5/
H A Ddriver.h754 struct mlx5_rsvd_gids reserved_gids; member