Lines Matching refs:qplib_ctx

225 	ctx = &rdev->qplib_ctx;  in bnxt_re_limit_pf_res()
237 rdev->qplib_ctx.tqm_ctx.qcount[i] = in bnxt_re_limit_pf_res()
241 static void bnxt_re_limit_vf_res(struct bnxt_qplib_ctx *qplib_ctx, u32 num_vf) in bnxt_re_limit_vf_res() argument
248 vf_res = &qplib_ctx->vf_res; in bnxt_re_limit_vf_res()
256 vf_res->max_qp_per_vf = (qplib_ctx->qpc_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
257 vf_res->max_srq_per_vf = (qplib_ctx->srqc_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
258 vf_res->max_cq_per_vf = (qplib_ctx->cq_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
267 if (qplib_ctx->mrw_count < BNXT_RE_MAX_MRW_COUNT_64K) { in bnxt_re_limit_vf_res()
268 mrws = qplib_ctx->mrw_count * vf_pct; in bnxt_re_limit_vf_res()
271 mrws = qplib_ctx->mrw_count - BNXT_RE_RESVD_MR_FOR_PF; in bnxt_re_limit_vf_res()
281 memset(&rdev->qplib_ctx.vf_res, 0, sizeof(struct bnxt_qplib_vf_res)); in bnxt_re_set_resource_limits()
287 bnxt_re_limit_vf_res(&rdev->qplib_ctx, num_vfs); in bnxt_re_set_resource_limits()
302 &rdev->qplib_ctx); in bnxt_re_vf_res_config()
1903 bnxt_re_net_stats_ctx_free(rdev, rdev->qplib_ctx.stats.fw_id); in bnxt_re_dev_uninit()
1904 bnxt_qplib_free_ctx(&rdev->qplib_res, &rdev->qplib_ctx); in bnxt_re_dev_uninit()
1993 &rdev->qplib_ctx, in bnxt_re_dev_init()
2041 rc = bnxt_qplib_alloc_ctx(&rdev->qplib_res, &rdev->qplib_ctx, 0, in bnxt_re_dev_init()
2049 rdev->qplib_ctx.stats.dma_map, in bnxt_re_dev_init()
2050 &rdev->qplib_ctx.stats.fw_id); in bnxt_re_dev_init()
2057 rc = bnxt_qplib_init_rcfw(&rdev->rcfw, &rdev->qplib_ctx, in bnxt_re_dev_init()
2104 bnxt_re_net_stats_ctx_free(rdev, rdev->qplib_ctx.stats.fw_id); in bnxt_re_dev_init()
2106 bnxt_qplib_free_ctx(&rdev->qplib_res, &rdev->qplib_ctx); in bnxt_re_dev_init()