Home
last modified time | relevance | path

Searched refs:to_mctx (Results 1 – 14 of 14) sorted by relevance

/NextBSD/contrib/ofed/libmthca/src/
HDverbs.c213 cq->mr = __mthca_reg_mr(to_mctx(context)->pd, cq->buf.buf, in mthca_create_cq()
223 cq->set_ci_db_index = mthca_alloc_db(to_mctx(context)->db_tab, in mthca_create_cq()
229 cq->arm_db_index = mthca_alloc_db(to_mctx(context)->db_tab, in mthca_create_cq()
245 cmd.pdn = to_mpd(to_mctx(context)->pd)->pdn; in mthca_create_cq()
263 mthca_free_db(to_mctx(context)->db_tab, MTHCA_DB_TYPE_CQ_ARM, in mthca_create_cq()
268 mthca_free_db(to_mctx(context)->db_tab, MTHCA_DB_TYPE_CQ_SET_CI, in mthca_create_cq()
308 mr = __mthca_reg_mr(to_mctx(ibcq->context)->pd, buf.buf, in mthca_resize_cq()
359 mthca_free_db(to_mctx(cq->context)->db_tab, MTHCA_DB_TYPE_CQ_SET_CI, in mthca_destroy_cq()
361 mthca_free_db(to_mctx(cq->context)->db_tab, MTHCA_DB_TYPE_CQ_ARM, in mthca_destroy_cq()
425 srq->db_index = mthca_alloc_db(to_mctx(pd->context)->db_tab, in mthca_create_srq()
[all …]
HDcq.c162 mthca_write64(doorbell, to_mctx(cq->ibv_cq.context), MTHCA_CQ_DOORBELL); in update_cons_index()
330 *cur_qp = mthca_find_qp(to_mctx(cq->ibv_cq.context), ntohl(cqe->my_qpn)); in mthca_poll_one()
496 mthca_write64(doorbell, to_mctx(cq->context), MTHCA_CQ_DOORBELL); in mthca_tavor_arm_cq()
530 mthca_write64(doorbell, to_mctx(ibvcq->context), MTHCA_CQ_DOORBELL); in mthca_arbel_arm_cq()
HDsrq.c159 mthca_write64(doorbell, to_mctx(ibsrq->context), MTHCA_RECV_DOORBELL); in mthca_tavor_post_srq_recv()
175 mthca_write64(doorbell, to_mctx(ibsrq->context), MTHCA_RECV_DOORBELL); in mthca_tavor_post_srq_recv()
HDqp.c324 mthca_write64(doorbell, to_mctx(ibqp->context), MTHCA_SEND_DOORBELL); in mthca_tavor_post_send()
413 mthca_write64(doorbell, to_mctx(ibqp->context), MTHCA_RECV_DOORBELL); in mthca_tavor_post_recv()
432 mthca_write64(doorbell, to_mctx(ibqp->context), MTHCA_RECV_DOORBELL); in mthca_tavor_post_recv()
492 mthca_write64(doorbell, to_mctx(ibqp->context), MTHCA_SEND_DOORBELL); in mthca_arbel_post_send()
700 mthca_write64(doorbell, to_mctx(ibqp->context), MTHCA_SEND_DOORBELL); in mthca_arbel_post_send()
HDmthca.c216 struct mthca_context *context = to_mctx(ibctx); in mthca_free_context()
HDmthca.h258 static inline struct mthca_context *to_mctx(struct ibv_context *ibctx) in to_mctx() function
/NextBSD/contrib/ofed/libmlx4/src/
HDverbs.c171 struct mlx4_context *mctx = to_mctx(context); in mlx4_create_cq()
193 cq->set_ci_db = mlx4_alloc_db(to_mctx(context), MLX4_DB_TYPE_CQ); in mlx4_create_cq()
216 mlx4_free_db(to_mctx(context), MLX4_DB_TYPE_CQ, cq->set_ci_db); in mlx4_create_cq()
293 mlx4_free_db(to_mctx(cq->context), MLX4_DB_TYPE_CQ, to_mcq(cq)->set_ci_db); in mlx4_destroy_cq()
326 srq->db = mlx4_alloc_db(to_mctx(pd->context), MLX4_DB_TYPE_RQ); in mlx4_create_srq()
346 mlx4_free_db(to_mctx(pd->context), MLX4_DB_TYPE_RQ, srq->db); in mlx4_create_srq()
386 mlx4_clear_xrc_srq(to_mctx(ibsrq->context), srq->srqn); in mlx4_destroy_srq()
394 mlx4_store_xrc_srq(to_mctx(ibsrq->context), in mlx4_destroy_srq()
401 mlx4_free_db(to_mctx(ibsrq->context), MLX4_DB_TYPE_RQ, srq->db); in mlx4_destroy_srq()
453 struct mlx4_context *context = to_mctx(pd->context); in mlx4_create_qp()
[all …]
HDcq.c233 srq = mlx4_find_xrc_srq(to_mctx(cq->ibv_cq.context), srqn); in mlx4_poll_one()
242 *cur_qp = mlx4_find_qp(to_mctx(cq->ibv_cq.context), in mlx4_poll_one()
389 mlx4_write64(doorbell, to_mctx(ibvcq->context), MLX4_CQ_DOORBELL); in mlx4_arm_cq()
HDqp.c402 ctx = to_mctx(ibqp->context); in mlx4_post_send()
635 struct mlx4_context *ctx = to_mctx(qp->ibv_qp.context); in mlx4_set_sq_sizes()
HDmlx4.c254 struct mlx4_context *context = to_mctx(ibctx); in mlx4_free_context()
HDmlx4.h313 static inline struct mlx4_context *to_mctx(struct ibv_context *ibctx) in to_mctx() function
/NextBSD/contrib/ofed/libmlx4/fixes/
HDxrc_consolidated_v2.patch66 + srq = mlx4_find_xrc_srq(to_mctx(cq->ibv_cq.context), srqn);
75 *cur_qp = mlx4_find_qp(to_mctx(cq->ibv_cq.context),
424 + mlx4_clear_xrc_srq(to_mctx(ibsrq->context), srq->srqn);
432 + mlx4_store_xrc_srq(to_mctx(ibsrq->context),
439 - mlx4_free_db(to_mctx(srq->context), MLX4_DB_TYPE_RQ, to_msrq(srq)->db);
443 + mlx4_free_db(to_mctx(ibsrq->context), MLX4_DB_TYPE_RQ, srq->db);
465 qp->db = mlx4_alloc_db(to_mctx(pd->context), MLX4_DB_TYPE_RQ);
480 pthread_mutex_unlock(&to_mctx(pd->context)->qp_table_mutex);
483 mlx4_free_db(to_mctx(pd->context), MLX4_DB_TYPE_RQ, qp->db);
497 pthread_mutex_unlock(&to_mctx(ibqp->context)->qp_table_mutex);
[all …]
HDlim_qp_resources.patch18 + struct mlx4_context *ctx = to_mctx(qp->ibv_qp.context);
42 + struct mlx4_context *context = to_mctx(pd->context);
59 pthread_mutex_unlock(&to_mctx(pd->context)->qp_table_mutex);
HDfix_inline_size.patch119 struct mlx4_context *ctx = to_mctx(qp->ibv_qp.context);