Searched refs:vf_res (Results 1 – 9 of 9) sorted by relevance
/drivers/net/ethernet/intel/iavf/ |
D | iavf.h | 329 #define CLIENT_ALLOWED(_a) ((_a)->vf_res ? \ 330 (_a)->vf_res->vf_cap_flags & \ 335 #define RSS_PF(_a) ((_a)->vf_res->vf_cap_flags & \ 337 #define RSS_AQ(_a) ((_a)->vf_res->vf_cap_flags & \ 339 #define RSS_REG(_a) (!((_a)->vf_res->vf_cap_flags & \ 342 #define VLAN_ALLOWED(_a) ((_a)->vf_res->vf_cap_flags & \ 344 #define ADV_LINK_SUPPORT(_a) ((_a)->vf_res->vf_cap_flags & \ 346 struct virtchnl_vf_resource *vf_res; /* incl. all VSIs */ member
|
D | iavf_virtchnl.c | 164 if (adapter->vf_res->num_queue_pairs > IAVF_MAX_REQ_QUEUES) { in iavf_validate_num_queues() 169 adapter->vf_res->num_queue_pairs, in iavf_validate_num_queues() 173 adapter->vf_res->num_queue_pairs = IAVF_MAX_REQ_QUEUES; in iavf_validate_num_queues() 174 for (i = 0; i < adapter->vf_res->num_vsis; i++) { in iavf_validate_num_queues() 175 vsi_res = &adapter->vf_res->vsi_res[i]; in iavf_validate_num_queues() 221 memcpy(adapter->vf_res, event.msg_buf, min(event.msg_len, len)); in iavf_get_vf_config() 228 iavf_vf_parse_hw_config(hw, adapter->vf_res); in iavf_get_vf_config() 244 int i, max_frame = adapter->vf_res->max_mtu; in iavf_configure_queues() 1439 memcpy(adapter->vf_res, msg, min(msglen, len)); in iavf_virtchnl_completion() 1441 iavf_vf_parse_hw_config(&adapter->hw, adapter->vf_res); in iavf_virtchnl_completion()
|
D | iavf_main.c | 1117 else if ((adapter->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_ADQ) && in iavf_alloc_queues() 1191 (int)adapter->vf_res->max_vectors); in iavf_set_interrupt_capability() 1321 if (adapter->vf_res->vf_cap_flags & in iavf_init_rss() 1447 if ((adapter->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_ADQ) && in iavf_init_interrupt_scheme() 1763 if (!adapter->vf_res) { in iavf_init_get_resources() 1764 adapter->vf_res = kzalloc(IAVF_VIRTCHNL_VF_RESOURCE_SIZE, in iavf_init_get_resources() 1766 if (!adapter->vf_res) { in iavf_init_get_resources() 1820 if (adapter->vf_res->vf_cap_flags & in iavf_init_get_resources() 1882 kfree(adapter->vf_res); in iavf_init_get_resources() 1883 adapter->vf_res = NULL; in iavf_init_get_resources() [all …]
|
D | iavf_ethtool.c | 940 if ((adapter->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_ADQ) && in iavf_set_channels()
|
/drivers/infiniband/hw/bnxt_re/ |
D | main.c | 175 struct bnxt_qplib_vf_res *vf_res; in bnxt_re_limit_vf_res() local 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() 205 vf_res->max_mrw_per_vf = (mrws / nvfs); in bnxt_re_limit_vf_res() 206 vf_res->max_gid_per_vf = BNXT_RE_MAX_GID_PER_VF; in bnxt_re_limit_vf_res() 213 memset(&rdev->qplib_ctx.vf_res, 0, sizeof(struct bnxt_qplib_vf_res)); in bnxt_re_set_resource_limits()
|
D | qplib_rcfw.c | 543 req.max_qp_per_vf = cpu_to_le32(ctx->vf_res.max_qp_per_vf); in bnxt_qplib_init_rcfw() 544 req.max_mrw_per_vf = cpu_to_le32(ctx->vf_res.max_mrw_per_vf); in bnxt_qplib_init_rcfw() 545 req.max_srq_per_vf = cpu_to_le32(ctx->vf_res.max_srq_per_vf); in bnxt_qplib_init_rcfw() 546 req.max_cq_per_vf = cpu_to_le32(ctx->vf_res.max_cq_per_vf); in bnxt_qplib_init_rcfw() 547 req.max_gid_per_vf = cpu_to_le32(ctx->vf_res.max_gid_per_vf); in bnxt_qplib_init_rcfw()
|
D | qplib_sp.c | 187 req.max_qp_per_vf = cpu_to_le32(ctx->vf_res.max_qp_per_vf); in bnxt_qplib_set_func_resources() 188 req.max_mrw_per_vf = cpu_to_le32(ctx->vf_res.max_mrw_per_vf); in bnxt_qplib_set_func_resources() 189 req.max_srq_per_vf = cpu_to_le32(ctx->vf_res.max_srq_per_vf); in bnxt_qplib_set_func_resources() 190 req.max_cq_per_vf = cpu_to_le32(ctx->vf_res.max_cq_per_vf); in bnxt_qplib_set_func_resources() 191 req.max_gid_per_vf = cpu_to_le32(ctx->vf_res.max_gid_per_vf); in bnxt_qplib_set_func_resources()
|
D | qplib_res.h | 255 struct bnxt_qplib_vf_res vf_res; member
|
/drivers/net/ethernet/emulex/benet/ |
D | be_cmds.c | 4440 struct be_nic_res_desc *vf_res; in be_cmd_get_profile_config() local 4516 vf_res = be_get_vft_desc(resp->func_param, desc_count, in be_cmd_get_profile_config() 4518 if (vf_res) in be_cmd_get_profile_config() 4519 res->vf_if_cap_flags = vf_res->cap_flags; in be_cmd_get_profile_config()
|