Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/infiniband/hw/bnxt_re/
Dmain.c161 ctx = &rdev->qplib_ctx; in bnxt_re_limit_pf_res()
173 rdev->qplib_ctx.tqm_ctx.qcount[i] = in bnxt_re_limit_pf_res()
177 static void bnxt_re_limit_vf_res(struct bnxt_qplib_ctx *qplib_ctx, u32 num_vf) in bnxt_re_limit_vf_res() argument
184 vf_res = &qplib_ctx->vf_res; in bnxt_re_limit_vf_res()
192 vf_res->max_qp_per_vf = (qplib_ctx->qpc_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
193 vf_res->max_srq_per_vf = (qplib_ctx->srqc_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
194 vf_res->max_cq_per_vf = (qplib_ctx->cq_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
203 if (qplib_ctx->mrw_count < BNXT_RE_MAX_MRW_COUNT_64K) { in bnxt_re_limit_vf_res()
204 mrws = qplib_ctx->mrw_count * vf_pct; in bnxt_re_limit_vf_res()
207 mrws = qplib_ctx->mrw_count - BNXT_RE_RESVD_MR_FOR_PF; in bnxt_re_limit_vf_res()
[all …]
Dbnxt_re.h168 struct bnxt_qplib_ctx qplib_ctx; member
Dhw_counters.c120 struct ctx_hw_stats *bnxt_re_stats = rdev->qplib_ctx.stats.dma; in bnxt_re_ib_get_hw_stats()
Dib_verbs.c3868 resp.max_qp = rdev->qplib_ctx.qpc_count; in bnxt_re_alloc_ucontext()