Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/ofed/libmlx5/
H A Dmlx5.c153 if (ctx->uidx_table[tind].refcnt < MLX5_UIDX_TABLE_MASK) in get_free_uidx()
160 if (!ctx->uidx_table[tind].refcnt) in get_free_uidx()
164 if (!ctx->uidx_table[tind].table[i]) in get_free_uidx()
184 if (!ctx->uidx_table[tind].refcnt) { in mlx5_store_uidx()
185 ctx->uidx_table[tind].table = calloc(MLX5_UIDX_TABLE_MASK + 1, in mlx5_store_uidx()
187 if (!ctx->uidx_table[tind].table) in mlx5_store_uidx()
191 ++ctx->uidx_table[tind].refcnt; in mlx5_store_uidx()
192 ctx->uidx_table[tind].table[uidx & MLX5_UIDX_TABLE_MASK] = rsc; in mlx5_store_uidx()
206 if (!--ctx->uidx_table[tind].refcnt) in mlx5_clear_uidx()
207 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()