Home
last modified time | relevance | path

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

/src/sys/dev/bnxt/bnxt_re/
H A Dqplib_sp.c83 struct bnxt_qplib_max_res dev_res = {}; in bnxt_qplib_get_dev_attr() local
115 bnxt_qplib_max_res_supported(cctx, rcfw->res, &dev_res, false); in bnxt_qplib_get_dev_attr()
119 dev_res.max_qp, sw_max_en); in bnxt_qplib_get_dev_attr()
147 dev_res.max_cq, sw_max_en); in bnxt_qplib_get_dev_attr()
154 dev_res.max_mr, sw_max_en); in bnxt_qplib_get_dev_attr()
156 dev_res.max_mr, sw_max_en); in bnxt_qplib_get_dev_attr()
162 dev_res.max_ah, sw_max_en); in bnxt_qplib_get_dev_attr()
168 dev_res.max_srq, sw_max_en); in bnxt_qplib_get_dev_attr()
H A Dmain.c237 struct bnxt_qplib_max_res dev_res = {}; in bnxt_re_limit_pf_res() local
247 bnxt_qplib_max_res_supported(cctx, &rdev->qplib_res, &dev_res, false); in bnxt_re_limit_pf_res()
249 hctx->qp_ctx.max = min_t(u32, dev_res.max_qp, attr->max_qp); in bnxt_re_limit_pf_res()
250 hctx->mrw_ctx.max = min_t(u32, dev_res.max_mr, attr->max_mr); in bnxt_re_limit_pf_res()
255 hctx->srq_ctx.max = min_t(u32, dev_res.max_srq, attr->max_srq); in bnxt_re_limit_pf_res()
256 hctx->cq_ctx.max = min_t(u32, dev_res.max_cq, attr->max_cq); in bnxt_re_limit_pf_res()
260 hctx->qp_ctx.max = attr->max_qp ? attr->max_qp : dev_res.max_qp; in bnxt_re_limit_pf_res()
261 hctx->mrw_ctx.max = attr->max_mr ? attr->max_mr : dev_res.max_mr; in bnxt_re_limit_pf_res()
262 hctx->srq_ctx.max = attr->max_srq ? attr->max_srq : dev_res.max_srq; in bnxt_re_limit_pf_res()
263 hctx->cq_ctx.max = attr->max_cq ? attr->max_cq : dev_res.max_cq; in bnxt_re_limit_pf_res()
[all …]
/src/sys/dev/hyperv/vmbus/
H A Dvmbus.c1446 device_t dev_res; in vmbus_doattach() local
1468 dev_res = devclass_get_device(devclass_find("vmbus_res"), 0); in vmbus_doattach()
1469 if (dev_res != NULL) { in vmbus_doattach()
1470 handle = acpi_get_handle(dev_res); in vmbus_doattach()