Home
last modified time | relevance | path

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

/freebsd/contrib/ofed/libmlx5/
H A Dmlx5.c159 if (ctx->uidx_table[tind].refcnt < MLX5_UIDX_TABLE_MASK) in get_free_uidx()
166 if (!ctx->uidx_table[tind].refcnt) in get_free_uidx()
170 if (!ctx->uidx_table[tind].table[i]) in get_free_uidx()
190 if (!ctx->uidx_table[tind].refcnt) { in mlx5_store_uidx()
191 ctx->uidx_table[tind].table = calloc(MLX5_UIDX_TABLE_MASK + 1, in mlx5_store_uidx()
193 if (!ctx->uidx_table[tind].table) in mlx5_store_uidx()
197 ++ctx->uidx_table[tind].refcnt; in mlx5_store_uidx()
198 ctx->uidx_table[tind].table[uidx & MLX5_UIDX_TABLE_MASK] = rsc; in mlx5_store_uidx()
212 if (!--ctx->uidx_table[tind].refcnt) in mlx5_clear_uidx()
213 free(ctx->uidx_table[tind].table); in mlx5_clear_uidx()
[all …]
H A Dmlx5.h235 } uidx_table[MLX5_UIDX_TABLE_SIZE]; member
685 if (likely(ctx->uidx_table[tind].refcnt)) in mlx5_find_uidx()
686 return ctx->uidx_table[tind].table[uidx & MLX5_UIDX_TABLE_MASK]; in mlx5_find_uidx()