Lines Matching refs:qpwanted

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