Searched refs:vft_res (Results 1 – 2 of 2) sorted by relevance
4044 struct be_resources *vft_res) in be_calculate_vf_res() argument4079 vft_res->flags |= BIT(IF_CAPS_FLAGS_VALID_SHIFT); in be_calculate_vf_res()4093 vft_res->flags |= BIT(IF_CAPS_FLAGS_VALID_SHIFT); in be_calculate_vf_res()4097 vft_res->vf_if_cap_flags = vf_if_cap_flags; in be_calculate_vf_res()4098 vft_res->max_rx_qs = num_vf_qs; in be_calculate_vf_res()4099 vft_res->max_rss_qs = num_vf_qs; in be_calculate_vf_res()4100 vft_res->max_tx_qs = res.max_tx_qs / (num_vfs + 1); in be_calculate_vf_res()4101 vft_res->max_cq_count = res.max_cq_count / (num_vfs + 1); in be_calculate_vf_res()4107 vft_res->max_uc_mac = res.max_uc_mac / (num_vfs + 1); in be_calculate_vf_res()4110 vft_res->max_vlans = res.max_vlans / (num_vfs + 1); in be_calculate_vf_res()[all …]
4638 struct be_resources *vft_res) in be_cmd_set_sriov_config() argument4658 desc.nic_vft.flags = vft_res->flags | BIT(VFT_SHIFT) | in be_cmd_set_sriov_config()4662 desc.nic_vft.cap_flags = cpu_to_le32(vft_res->vf_if_cap_flags); in be_cmd_set_sriov_config()4663 desc.nic_vft.rq_count = cpu_to_le16(vft_res->max_rx_qs); in be_cmd_set_sriov_config()4664 desc.nic_vft.txq_count = cpu_to_le16(vft_res->max_tx_qs); in be_cmd_set_sriov_config()4665 desc.nic_vft.rssq_count = cpu_to_le16(vft_res->max_rss_qs); in be_cmd_set_sriov_config()4666 desc.nic_vft.cq_count = cpu_to_le16(vft_res->max_cq_count); in be_cmd_set_sriov_config()4668 if (vft_res->max_uc_mac) in be_cmd_set_sriov_config()4670 cpu_to_le16(vft_res->max_uc_mac); in be_cmd_set_sriov_config()4671 if (vft_res->max_vlans) in be_cmd_set_sriov_config()[all …]