Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
H A Dmain.c157 ctx = &rdev->qplib_ctx; in bnxt_re_limit_pf_res()
169 rdev->qplib_ctx.tqm_ctx.qcount[i] = in bnxt_re_limit_pf_res()
173 static void bnxt_re_limit_vf_res(struct bnxt_qplib_ctx *qplib_ctx, u32 num_vf) in bnxt_re_limit_vf_res() argument
180 vf_res = &qplib_ctx->vf_res; in bnxt_re_limit_vf_res()
188 vf_res->max_qp_per_vf = (qplib_ctx->qpc_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
189 vf_res->max_srq_per_vf = (qplib_ctx->srqc_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
190 vf_res->max_cq_per_vf = (qplib_ctx->cq_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
199 if (qplib_ctx->mrw_count < BNXT_RE_MAX_MRW_COUNT_64K) { in bnxt_re_limit_vf_res()
200 mrws = qplib_ctx->mrw_count * vf_pct; in bnxt_re_limit_vf_res()
203 mrws = qplib_ctx in bnxt_re_limit_vf_res()
[all...]
H A Dbnxt_re.h167 struct bnxt_qplib_ctx qplib_ctx; member
H A Dhw_counters.c120 struct ctx_hw_stats *bnxt_re_stats = rdev->qplib_ctx.stats.dma; in bnxt_re_ib_get_hw_stats()
H A Dib_verbs.c3898 resp.max_qp = rdev->qplib_ctx.qpc_count; in bnxt_re_alloc_ucontext()
/kernel/linux/linux-6.6/drivers/infiniband/hw/bnxt_re/
H A Dmain.c208 ctx = &rdev->qplib_ctx; in bnxt_re_limit_pf_res()
220 rdev->qplib_ctx.tqm_ctx.qcount[i] = in bnxt_re_limit_pf_res()
224 static void bnxt_re_limit_vf_res(struct bnxt_qplib_ctx *qplib_ctx, u32 num_vf) in bnxt_re_limit_vf_res() argument
231 vf_res = &qplib_ctx->vf_res; in bnxt_re_limit_vf_res()
239 vf_res->max_qp_per_vf = (qplib_ctx->qpc_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
240 vf_res->max_srq_per_vf = (qplib_ctx->srqc_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
241 vf_res->max_cq_per_vf = (qplib_ctx->cq_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
250 if (qplib_ctx->mrw_count < BNXT_RE_MAX_MRW_COUNT_64K) { in bnxt_re_limit_vf_res()
251 mrws = qplib_ctx->mrw_count * vf_pct; in bnxt_re_limit_vf_res()
254 mrws = qplib_ctx in bnxt_re_limit_vf_res()
[all...]
H A Dbnxt_re.h173 struct bnxt_qplib_ctx qplib_ctx; member
H A Dhw_counters.c307 hw_stats = rdev->qplib_ctx.stats.dma; in bnxt_re_ib_get_hw_stats()
H A Dib_verbs.c4139 resp.max_qp = rdev->qplib_ctx.qpc_count; in bnxt_re_alloc_ucontext()

Completed in 16 milliseconds