Searched refs:vf_res (Results 1 – 8 of 8) sorted by relevance
/freebsd/sys/dev/iavf/ |
H A D | iavf_lib.c | 434 if (!sc->vf_res) { in iavf_vf_config() 437 sc->vf_res = (struct virtchnl_vf_resource *)malloc(bufsz, M_IAVF, M_NOWAIT); in iavf_vf_config() 438 if (!sc->vf_res) { in iavf_vf_config() 468 free(sc->vf_res, M_IAVF); in iavf_vf_config() 486 sc->vf_res->num_vsis, in iavf_print_device_info() 487 sc->vf_res->num_queue_pairs, in iavf_print_device_info() 488 sc->vf_res->max_vectors, in iavf_print_device_info() 489 sc->vf_res->rss_key_size, in iavf_print_device_info() 490 sc->vf_res->rss_lut_size); in iavf_print_device_info() 492 sc->vf_res->vf_cap_flags, IAVF_PRINTF_VF_OFFLOAD_FLAGS); in iavf_print_device_info() [all …]
|
H A D | iavf_vc_common.c | 290 memcpy(sc->vf_res, event.msg_buf, min(event.msg_len, len)); in iavf_get_vf_config() 291 iavf_vf_parse_hw_config(hw, sc->vf_res); in iavf_get_vf_config() 1296 if (sc->vf_res->vf_cap_flags & VIRTCHNL_VF_CAP_ADV_LINK_SPEED) in iavf_handle_link_event()
|
H A D | iavf_iflib.h | 365 struct virtchnl_vf_resource *vf_res; member
|
H A D | iavf_lib.h | 227 ((_sc)->vf_res->vf_cap_flags & VIRTCHNL_VF_CAP_ADV_LINK_SPEED)
|
H A D | if_iavf_iflib.c | 387 free(sc->vf_res, M_IAVF); in iavf_if_attach_pre() 541 free(sc->vf_res, M_IAVF); in iavf_if_detach() 542 sc->vf_res = NULL; in iavf_if_detach()
|
/freebsd/sys/dev/bnxt/bnxt_re/ |
H A D | qplib_sp.c | 227 req.max_qp_per_vf = cpu_to_le32(hctx->vf_res.max_qp); in bnxt_qplib_set_func_resources() 228 req.max_mrw_per_vf = cpu_to_le32(hctx->vf_res.max_mrw); in bnxt_qplib_set_func_resources() 229 req.max_srq_per_vf = cpu_to_le32(hctx->vf_res.max_srq); in bnxt_qplib_set_func_resources() 230 req.max_cq_per_vf = cpu_to_le32(hctx->vf_res.max_cq); in bnxt_qplib_set_func_resources() 231 req.max_gid_per_vf = cpu_to_le32(hctx->vf_res.max_gid); in bnxt_qplib_set_func_resources()
|
H A D | main.c | 268 struct bnxt_qplib_vf_res *vf_res, in bnxt_re_limit_vf_res() argument 275 vf_res->max_qp = dev_res.max_qp / num_vf; in bnxt_re_limit_vf_res() 276 vf_res->max_srq = dev_res.max_srq / num_vf; in bnxt_re_limit_vf_res() 277 vf_res->max_cq = dev_res.max_cq / num_vf; in bnxt_re_limit_vf_res() 282 vf_res->max_mrw = dev_res.max_mr * 2 / num_vf; in bnxt_re_limit_vf_res() 283 vf_res->max_gid = BNXT_RE_MAX_GID_PER_VF; in bnxt_re_limit_vf_res() 291 memset(&hctx->vf_res, 0, sizeof(struct bnxt_qplib_vf_res)); in bnxt_re_set_resource_limits() 295 bnxt_re_limit_vf_res(rdev, &hctx->vf_res, rdev->num_vfs); in bnxt_re_set_resource_limits()
|
H A D | qplib_res.h | 414 struct bnxt_qplib_vf_res vf_res; member
|