Searched refs:dev_res (Results 1 – 2 of 2) sorted by relevance
/freebsd/sys/dev/bnxt/bnxt_re/ |
H A D | main.c | 237 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 …]
|
/freebsd/sys/dev/hyperv/vmbus/ |
H A D | vmbus.c | 1450 device_t dev_res; in vmbus_doattach() 1472 dev_res = devclass_get_device(devclass_find("vmbus_res"), 0); in vmbus_doattach() 1473 if (dev_res != NULL) { in vmbus_doattach() 1474 handle = acpi_get_handle(dev_res); in vmbus_doattach() 1451 device_t dev_res; vmbus_doattach() local
|