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.c179 if (ctx->uidx_table[tind].refcnt < MLX5_UIDX_TABLE_MASK) in get_free_uidx()
186 if (!ctx->uidx_table[tind].refcnt) in get_free_uidx()
190 if (!ctx->uidx_table[tind].table[i]) in get_free_uidx()
210 if (!ctx->uidx_table[tind].refcnt) { in mlx5_store_uidx()
211 ctx->uidx_table[tind].table = calloc(MLX5_UIDX_TABLE_MASK + 1, in mlx5_store_uidx()
213 if (!ctx->uidx_table[tind].table) in mlx5_store_uidx()
217 ++ctx->uidx_table[tind].refcnt; in mlx5_store_uidx()
218 ctx->uidx_table[tind].table[uidx & MLX5_UIDX_TABLE_MASK] = rsc; in mlx5_store_uidx()
232 if (!--ctx->uidx_table[tind].refcnt) in mlx5_clear_uidx()
233 free(ctx->uidx_table[tind].table); in mlx5_clear_uidx()
[all …]
H A Dmlx5.h238 } uidx_table[MLX5_UIDX_TABLE_SIZE]; member
699 if (likely(ctx->uidx_table[tind].refcnt)) in mlx5_find_uidx()
700 return ctx->uidx_table[tind].table[uidx & MLX5_UIDX_TABLE_MASK]; in mlx5_find_uidx()