Home
last modified time | relevance | path

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

/linux/drivers/infiniband/hw/bnxt_re/
H A Dmain.c236 ctx = &rdev->qplib_ctx; in bnxt_re_limit_pf_res()
248 rdev->qplib_ctx.tqm_ctx.qcount[i] = in bnxt_re_limit_pf_res()
252 static void bnxt_re_limit_vf_res(struct bnxt_qplib_ctx *qplib_ctx, u32 num_vf) in bnxt_re_limit_vf_res() argument
259 vf_res = &qplib_ctx->vf_res; in bnxt_re_limit_vf_res()
267 vf_res->max_qp_per_vf = (qplib_ctx->qpc_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
268 vf_res->max_srq_per_vf = (qplib_ctx->srqc_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
269 vf_res->max_cq_per_vf = (qplib_ctx->cq_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
278 if (qplib_ctx->mrw_count < BNXT_RE_MAX_MRW_COUNT_64K) { in bnxt_re_limit_vf_res()
279 mrws = qplib_ctx->mrw_count * vf_pct; in bnxt_re_limit_vf_res()
282 mrws = qplib_ctx->mrw_count - BNXT_RE_RESVD_MR_FOR_PF; in bnxt_re_limit_vf_res()
[all …]