Home
last modified time | relevance | path

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

/freebsd-13-stable/contrib/ofed/libmlx4/
HDverbs.c72 struct mlx4_context *mctx = to_mctx(context); in mlx4_query_device_ex()
109 struct mlx4_context *ctx = to_mctx(context); in mlx4_read_clock()
158 struct mlx4_context *mctx = to_mctx(context); in mlx4_query_port()
175 struct mlx4_context *mctx = to_mctx(context); in query_port_cache()
457 struct mlx4_context *mctx = to_mctx(context); in create_cq()
503 cq->set_ci_db = mlx4_alloc_db(to_mctx(context), MLX4_DB_TYPE_CQ); in create_cq()
533 mlx4_free_db(to_mctx(context), MLX4_DB_TYPE_CQ, cq->set_ci_db); in create_cq()
634 mlx4_free_db(to_mctx(cq->context), MLX4_DB_TYPE_CQ, to_mcq(cq)->set_ci_db); in mlx4_destroy_cq()
668 srq->db = mlx4_alloc_db(to_mctx(pd->context), MLX4_DB_TYPE_RQ); in mlx4_create_srq()
686 mlx4_free_db(to_mctx(pd->context), MLX4_DB_TYPE_RQ, srq->db); in mlx4_create_srq()
[all …]
HDsrq.c262 srq->db = mlx4_alloc_db(to_mctx(context), MLX4_DB_TYPE_RQ); in mlx4_create_xrc_srq()
279 ret = mlx4_store_xsrq(&to_mctx(context)->xsrq_table, in mlx4_create_xrc_srq()
289 mlx4_free_db(to_mctx(context), MLX4_DB_TYPE_RQ, srq->db); in mlx4_create_xrc_srq()
300 struct mlx4_context *mctx = to_mctx(srq->context); in mlx4_destroy_xrc_srq()
HDmlx4.c124 struct mlx4_context *context = to_mctx(ibv_ctx); in mlx4_map_internal_clock()
159 context = to_mctx(ibv_ctx); in mlx4_init_context()
256 struct mlx4_context *context = to_mctx(ibv_ctx); in mlx4_uninit_context()
HDcq.c252 mctx = to_mctx(cq->ibv_cq.context); in mlx4_parse_cqe()
704 mlx4_write64(doorbell, to_mctx(ibvcq->context), MLX4_CQ_DOORBELL); in mlx4_arm_cq()
HDmlx4.h314 static inline struct mlx4_context *to_mctx(struct ibv_context *ibctx) in to_mctx() function
HDqp.c469 ctx = to_mctx(ibqp->context); in mlx4_post_send()
/freebsd-13-stable/contrib/ofed/libmlx5/
HDverbs.c84 struct mlx5_context *ctx = to_mctx(context); in mlx5_read_clock()
353 struct mlx5_context *mctx = to_mctx(context); in create_cq()
354 FILE *fp = to_mctx(context)->dbg_fp; in create_cq()
409 if (mlx5_alloc_cq_buf(to_mctx(context), cq, &cq->buf_a, ncqe, cqe_sz)) { in create_cq()
414 cq->dbrec = mlx5_alloc_dbrec(to_mctx(context)); in create_cq()
467 cq->stall_enable = to_mctx(context)->stall_enable; in create_cq()
468 cq->stall_adaptive_enable = to_mctx(context)->stall_adaptive_enable; in create_cq()
469 cq->stall_cycles = to_mctx(context)->stall_cycles; in create_cq()
477 mlx5_free_db(to_mctx(context), cq->dbrec); in create_cq()
480 mlx5_free_cq_buf(to_mctx(context), &cq->buf_a); in create_cq()
[all …]
HDmlx5.c589 struct mlx5_context *context = to_mctx(ibv_ctx); in mlx5_map_internal_clock()
613 struct mlx5_context *mctx = to_mctx(ctx_in); in mlx5dv_query_device()
669 struct mlx5_context *mctx = to_mctx(cq_in->context); in mlx5dv_get_cq()
772 context = to_mctx(ctx); in mlx5_init_context()
951 struct mlx5_context *context = to_mctx(ibctx); in mlx5_cleanup_context()
HDcq.c492 struct mlx5_context *mctx = to_mctx(cq->ibv_cq.context); in mlx5_get_next_cqe()
536 mctx = to_mctx(ibv_cq_ex_to_cq(&cq->ibv_cq)->context); in mlx5_parse_cqe()
1086 struct mlx5_context *ctx = to_mctx(ibcq->context); in mlx5_cq_read_wc_opcode()
1245 struct mlx5_context *mctx = to_mctx(ibv_cq_ex_to_cq(&cq->ibv_cq)->context); in mlx5_cq_fill_pfns()
1284 struct mlx5_context *ctx = to_mctx(ibvcq->context); in mlx5_arm_cq()
1390 cqe_version = (to_mctx(cq->ibv_cq.context))->cqe_version; in __mlx5_cq_clean()
HDqp.c366 FILE *fp = to_mctx(ibqp->context)->dbg_fp; in copy_eth_inline_headers()
569 FILE *fp = to_mctx(qp->ibv_qp->context)->dbg_fp; in set_tso_eth_seg()
636 FILE *fp = to_mctx(ibqp->context)->dbg_fp; /* The compiler ignores in non-debug mode */ in _mlx5_post_send()
915 dump_wqe(to_mctx(ibqp->context)->dbg_fp, idx, size, qp); in _mlx5_post_send()
933 ctx = to_mctx(ibqp->context); in _mlx5_post_send()
HDsrq.c157 ctx = to_mctx(context); in mlx5_alloc_srq_buf()
HDmlx5.h485 static inline struct mlx5_context *to_mctx(struct ibv_context *ibctx) in to_mctx() function