Home
last modified time | relevance | path

Searched refs:vf_res (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/intel/iavf/
Diavf.h310 #define CLIENT_ALLOWED(_a) ((_a)->vf_res ? \
311 (_a)->vf_res->vf_cap_flags & \
316 #define RSS_PF(_a) ((_a)->vf_res->vf_cap_flags & \
318 #define RSS_AQ(_a) ((_a)->vf_res->vf_cap_flags & \
320 #define RSS_REG(_a) (!((_a)->vf_res->vf_cap_flags & \
323 #define VLAN_ALLOWED(_a) ((_a)->vf_res->vf_cap_flags & \
325 struct virtchnl_vf_resource *vf_res; /* incl. all VSIs */ member
Diavf_virtchnl.c163 if (adapter->vf_res->num_queue_pairs > IAVF_MAX_REQ_QUEUES) { in iavf_validate_num_queues()
168 adapter->vf_res->num_queue_pairs, in iavf_validate_num_queues()
172 adapter->vf_res->num_queue_pairs = IAVF_MAX_REQ_QUEUES; in iavf_validate_num_queues()
173 for (i = 0; i < adapter->vf_res->num_vsis; i++) { in iavf_validate_num_queues()
174 vsi_res = &adapter->vf_res->vsi_res[i]; in iavf_validate_num_queues()
220 memcpy(adapter->vf_res, event.msg_buf, min(event.msg_len, len)); in iavf_get_vf_config()
227 iavf_vf_parse_hw_config(hw, adapter->vf_res); in iavf_get_vf_config()
1350 memcpy(adapter->vf_res, msg, min(msglen, len)); in iavf_virtchnl_completion()
1352 iavf_vf_parse_hw_config(&adapter->hw, adapter->vf_res); in iavf_virtchnl_completion()
Diavf_main.c1106 else if ((adapter->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_ADQ) && in iavf_alloc_queues()
1180 (int)adapter->vf_res->max_vectors); in iavf_set_interrupt_capability()
1311 if (adapter->vf_res->vf_cap_flags & in iavf_init_rss()
1441 if ((adapter->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_ADQ) && in iavf_init_interrupt_scheme()
1764 if (!adapter->vf_res) { in iavf_init_get_resources()
1768 adapter->vf_res = kzalloc(bufsz, GFP_KERNEL); in iavf_init_get_resources()
1769 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 …]
Diavf_ethtool.c887 !(adapter->vf_res->vf_cap_flags & in iavf_set_channels()
893 if ((adapter->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_ADQ) && in iavf_set_channels()
/Linux-v5.4/drivers/infiniband/hw/bnxt_re/
Dqplib_rcfw.c543 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()
Dqplib_sp.c190 req.max_qp_per_vf = cpu_to_le32(ctx->vf_res.max_qp_per_vf); in bnxt_qplib_set_func_resources()
191 req.max_mrw_per_vf = cpu_to_le32(ctx->vf_res.max_mrw_per_vf); in bnxt_qplib_set_func_resources()
192 req.max_srq_per_vf = cpu_to_le32(ctx->vf_res.max_srq_per_vf); in bnxt_qplib_set_func_resources()
193 req.max_cq_per_vf = cpu_to_le32(ctx->vf_res.max_cq_per_vf); in bnxt_qplib_set_func_resources()
194 req.max_gid_per_vf = cpu_to_le32(ctx->vf_res.max_gid_per_vf); in bnxt_qplib_set_func_resources()
Dqplib_res.h179 struct bnxt_qplib_vf_res vf_res; member
Dmain.c172 rdev->qplib_ctx.vf_res.max_mrw_per_vf = vf_mrws; in bnxt_re_set_resource_limits()
173 rdev->qplib_ctx.vf_res.max_gid_per_vf = vf_gids; in bnxt_re_set_resource_limits()
174 rdev->qplib_ctx.vf_res.max_qp_per_vf = vf_qps; in bnxt_re_set_resource_limits()
175 rdev->qplib_ctx.vf_res.max_srq_per_vf = vf_srqs; in bnxt_re_set_resource_limits()
176 rdev->qplib_ctx.vf_res.max_cq_per_vf = vf_cqs; in bnxt_re_set_resource_limits()
/Linux-v5.4/drivers/net/ethernet/emulex/benet/
Dbe_cmds.c4438 struct be_nic_res_desc *vf_res; in be_cmd_get_profile_config() local
4514 vf_res = be_get_vft_desc(resp->func_param, desc_count, in be_cmd_get_profile_config()
4516 if (vf_res) in be_cmd_get_profile_config()
4517 res->vf_if_cap_flags = vf_res->cap_flags; in be_cmd_get_profile_config()