Home
last modified time | relevance | path

Searched refs:mlx5_context (Results 1 – 8 of 8) sorted by relevance

/src/contrib/ofed/libmlx5/ !
H A Dmlx5.h209 struct mlx5_context { struct
485 static inline struct mlx5_context *to_mctx(struct ibv_context *ibctx) in to_mctx()
551 int mlx5_alloc_buf_contig(struct mlx5_context *mctx, struct mlx5_buf *buf,
553 void mlx5_free_buf_contig(struct mlx5_context *mctx, struct mlx5_buf *buf);
554 int mlx5_alloc_prefered_buf(struct mlx5_context *mctx,
559 int mlx5_free_actual_buf(struct mlx5_context *ctx, struct mlx5_buf *buf);
565 uint32_t *mlx5_alloc_dbrec(struct mlx5_context *context);
566 void mlx5_free_db(struct mlx5_context *context, uint32_t *db);
600 int mlx5_alloc_cq_buf(struct mlx5_context *mctx, struct mlx5_cq *cq,
602 int mlx5_free_cq_buf(struct mlx5_context *ctx, struct mlx5_buf *buf);
[all …]
H A Dmlx5.c153 static int32_t get_free_uidx(struct mlx5_context *ctx) in get_free_uidx()
177 int32_t mlx5_store_uidx(struct mlx5_context *ctx, void *rsc) in mlx5_store_uidx()
206 void mlx5_clear_uidx(struct mlx5_context *ctx, uint32_t uidx) in mlx5_clear_uidx()
384 static void mlx5_read_env(struct ibv_device *ibdev, struct mlx5_context *ctx) in mlx5_read_env()
448 static void open_debug_file(struct mlx5_context *ctx) in open_debug_file()
466 static void close_debug_file(struct mlx5_context *ctx) in close_debug_file()
534 static int need_uuar_lock(struct mlx5_context *ctx, int uuarn) in need_uuar_lock()
557 static int mlx5_cmd_get_context(struct mlx5_context *context, in mlx5_cmd_get_context()
600 struct mlx5_context *context = to_mctx(ibv_ctx); in mlx5_map_internal_clock()
624 struct mlx5_context *mctx = to_mctx(ctx_in); in mlx5dv_query_device()
[all …]
H A Dsrq.c155 struct mlx5_context *ctx; in mlx5_alloc_srq_buf()
209 struct mlx5_srq *mlx5_find_srq(struct mlx5_context *ctx, uint32_t srqn) in mlx5_find_srq()
219 int mlx5_store_srq(struct mlx5_context *ctx, uint32_t srqn, in mlx5_store_srq()
236 void mlx5_clear_srq(struct mlx5_context *ctx, uint32_t srqn) in mlx5_clear_srq()
H A Ddbrec.c49 static struct mlx5_db_page *__add_page(struct mlx5_context *context) in __add_page()
83 uint32_t *mlx5_alloc_dbrec(struct mlx5_context *context) in mlx5_alloc_dbrec()
116 void mlx5_free_db(struct mlx5_context *context, uint32_t *db) in mlx5_free_db()
H A Dcq.c344 static inline struct mlx5_qp *get_req_context(struct mlx5_context *mctx,
348 static inline struct mlx5_qp *get_req_context(struct mlx5_context *mctx, in get_req_context()
359 static inline int get_resp_ctx_v1(struct mlx5_context *mctx,
364 static inline int get_resp_ctx_v1(struct mlx5_context *mctx, in get_resp_ctx_v1()
398 static inline int get_qp_ctx(struct mlx5_context *mctx,
402 static inline int get_qp_ctx(struct mlx5_context *mctx, in get_qp_ctx()
420 static inline int get_srq_ctx(struct mlx5_context *mctx,
424 static inline int get_srq_ctx(struct mlx5_context *mctx, in get_srq_ctx()
437 static inline int get_cur_rsc(struct mlx5_context *mctx, in get_cur_rsc()
492 struct mlx5_context *mctx = to_mctx(cq->ibv_cq.context); in mlx5_get_next_cqe()
[all …]
H A Dbuf.c237 static int alloc_huge_buf(struct mlx5_context *mctx, struct mlx5_buf *buf, in alloc_huge_buf()
308 static void free_huge_buf(struct mlx5_context *ctx, struct mlx5_buf *buf) in free_huge_buf()
323 int mlx5_alloc_prefered_buf(struct mlx5_context *mctx, in mlx5_alloc_prefered_buf()
369 int mlx5_free_actual_buf(struct mlx5_context *ctx, struct mlx5_buf *buf) in mlx5_free_actual_buf()
483 int mlx5_alloc_buf_contig(struct mlx5_context *mctx, in mlx5_alloc_buf_contig()
539 void mlx5_free_buf_contig(struct mlx5_context *mctx, struct mlx5_buf *buf) in mlx5_free_buf_contig()
H A Dverbs.c84 struct mlx5_context *ctx = to_mctx(context); in mlx5_read_clock()
353 struct mlx5_context *mctx = to_mctx(context); in create_cq()
544 struct mlx5_context *mctx = to_mctx(ibcq->context); in mlx5_resize_cq()
632 struct mlx5_context *ctx; in mlx5_create_srq()
753 struct mlx5_context *ctx = to_mctx(srq->context); in mlx5_destroy_srq()
822 static int mlx5_calc_send_wqe(struct mlx5_context *ctx, in mlx5_calc_send_wqe()
859 static int mlx5_calc_rcv_wqe(struct mlx5_context *ctx, in mlx5_calc_rcv_wqe()
882 static int mlx5_calc_sq_size(struct mlx5_context *ctx, in mlx5_calc_sq_size()
931 static int mlx5_calc_rwq_size(struct mlx5_context *ctx, in mlx5_calc_rwq_size()
965 static int mlx5_calc_rq_size(struct mlx5_context *ctx, in mlx5_calc_rq_size()
[all …]
H A Dqp.c615 struct mlx5_context *ctx; in _mlx5_post_send()
1228 struct mlx5_qp *mlx5_find_qp(struct mlx5_context *ctx, uint32_t qpn) in mlx5_find_qp()
1238 int mlx5_store_qp(struct mlx5_context *ctx, uint32_t qpn, struct mlx5_qp *qp) in mlx5_store_qp()
1254 void mlx5_clear_qp(struct mlx5_context *ctx, uint32_t qpn) in mlx5_clear_qp()