Home
last modified time | relevance | path

Searched refs:xsrq_table (Results 1 – 4 of 4) sorted by relevance

/src/contrib/ofed/libmlx4/
H A Dsrq.c175 void mlx4_cleanup_xsrq_table(struct mlx4_xsrq_table *xsrq_table) in mlx4_cleanup_xsrq_table() argument
177 pthread_mutex_destroy(&xsrq_table->mutex); in mlx4_cleanup_xsrq_table()
180 int mlx4_init_xsrq_table(struct mlx4_xsrq_table *xsrq_table, int size) in mlx4_init_xsrq_table() argument
183 memset(xsrq_table, 0, sizeof *xsrq_table); in mlx4_init_xsrq_table()
184 xsrq_table->num_xsrq = size; in mlx4_init_xsrq_table()
185 xsrq_table->shift = ffs(size) - 1 - MLX4_XSRQ_TABLE_BITS; in mlx4_init_xsrq_table()
186 xsrq_table->mask = (1 << xsrq_table->shift) - 1; in mlx4_init_xsrq_table()
188 return pthread_mutex_init(&xsrq_table->mutex, NULL); in mlx4_init_xsrq_table()
191 struct mlx4_srq *mlx4_find_xsrq(struct mlx4_xsrq_table *xsrq_table, uint32_t srqn) in mlx4_find_xsrq() argument
195 index = (srqn & (xsrq_table->num_xsrq - 1)) >> xsrq_table->shift; in mlx4_find_xsrq()
[all …]
H A Dmlx4.h70 } xsrq_table[MLX4_XSRQ_TABLE_SIZE]; member
148 struct mlx4_xsrq_table xsrq_table; member
417 void mlx4_cleanup_xsrq_table(struct mlx4_xsrq_table *xsrq_table);
418 int mlx4_init_xsrq_table(struct mlx4_xsrq_table *xsrq_table, int size);
419 struct mlx4_srq *mlx4_find_xsrq(struct mlx4_xsrq_table *xsrq_table, uint32_t srqn);
420 int mlx4_store_xsrq(struct mlx4_xsrq_table *xsrq_table, uint32_t srqn,
422 void mlx4_clear_xsrq(struct mlx4_xsrq_table *xsrq_table, uint32_t srqn);
H A Dmlx4.c198 ret = mlx4_init_xsrq_table(&context->xsrq_table, context->num_qps); in mlx4_init_context()
269 mlx4_cleanup_xsrq_table(&context->xsrq_table); in mlx4_init_context()
282 mlx4_cleanup_xsrq_table(&context->xsrq_table); in mlx4_uninit_context()
H A Dcq.c270 srq = mlx4_find_xsrq(&mctx->xsrq_table, in mlx4_parse_cqe()