Lines Matching defs:qpwanted

4742 			struct irdma_hmc_info *hmc_info, u32 qpwanted)
4747 q1_cnt = roundup_pow_of_two(dev->hw_attrs.max_hw_ird * 2 * qpwanted);
4750 q1_cnt = roundup_pow_of_two(dev->hw_attrs.max_hw_ird * 2 * qpwanted + 512);
4752 q1_cnt = dev->hw_attrs.max_hw_ird * 2 * qpwanted;
4759 struct irdma_hmc_info *hmc_info, u32 qpwanted)
4761 hmc_info->hmc_obj[IRDMA_HMC_IW_XF].cnt = roundup_pow_of_two(qpwanted * dev->hw_attrs.max_hw_wqes);
4765 struct irdma_hmc_info *hmc_info, u32 qpwanted)
4770 4 * hmc_fpm_misc->xf_block_size * qpwanted;
4772 hmc_info->hmc_obj[IRDMA_HMC_IW_HDR].cnt = qpwanted;
4775 hmc_info->hmc_obj[IRDMA_HMC_IW_RRF].cnt = 32 * qpwanted;
4781 hmc_info->hmc_obj[IRDMA_HMC_IW_OOISC].cnt = 32 * qpwanted;
4797 u32 qpwanted, mrwanted, pblewanted;
4826 qpwanted = min(qp_count, hmc_info->hmc_obj[IRDMA_HMC_IW_QP].max_cnt);
4829 while (powerof2 <= qpwanted)
4832 qpwanted = powerof2;
4855 while (irdma_q1_cnt(dev, hmc_info, qpwanted) > hmc_info->hmc_obj[IRDMA_HMC_IW_Q1].max_cnt)
4856 qpwanted /= 2;
4860 hmc_info->hmc_obj[IRDMA_HMC_IW_QP].cnt = qpwanted;
4862 min(2 * qpwanted, hmc_info->hmc_obj[IRDMA_HMC_IW_CQ].cnt);
4866 hte = round_up(qpwanted + hmc_info->hmc_obj[IRDMA_HMC_IW_FSIMC].cnt, 512);
4873 cfg_fpm_value_gen_1(dev, hmc_info, qpwanted);
4875 cfg_fpm_value_gen_2(dev, hmc_info, qpwanted);
4877 hmc_info->hmc_obj[IRDMA_HMC_IW_Q1].cnt = irdma_q1_cnt(dev, hmc_info, qpwanted);
4883 (round_up(qpwanted, 512) / 512 + 1) * hmc_fpm_misc->timer_bucket;
4888 "HMC: sd_needed = %d, hmc_fpm_misc->max_sds=%d, mrwanted=%d, pblewanted=%d qpwanted=%d\n",
4890 pblewanted, qpwanted);
4898 if (!(loop_count % 2) && qpwanted > 128) {
4899 qpwanted /= 2;
4914 } else if (qpwanted <= 128) {
4922 if (!(loop_count % 10) && qpwanted > 128) {
4923 qpwanted /= 2;