Lines Matching refs:qpwanted

4719 			struct irdma_hmc_info *hmc_info, u32 qpwanted)  in irdma_q1_cnt()  argument
4724 q1_cnt = roundup_pow_of_two(dev->hw_attrs.max_hw_ird * 2 * qpwanted); in irdma_q1_cnt()
4727 q1_cnt = roundup_pow_of_two(dev->hw_attrs.max_hw_ird * 2 * qpwanted + 512); in irdma_q1_cnt()
4729 q1_cnt = dev->hw_attrs.max_hw_ird * 2 * qpwanted; in irdma_q1_cnt()
4736 struct irdma_hmc_info *hmc_info, u32 qpwanted) in cfg_fpm_value_gen_1() argument
4738 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()
4742 struct irdma_hmc_info *hmc_info, u32 qpwanted) in cfg_fpm_value_gen_2() argument
4747 4 * hmc_fpm_misc->xf_block_size * qpwanted; in cfg_fpm_value_gen_2()
4749 hmc_info->hmc_obj[IRDMA_HMC_IW_HDR].cnt = qpwanted; in cfg_fpm_value_gen_2()
4752 hmc_info->hmc_obj[IRDMA_HMC_IW_RRF].cnt = 32 * qpwanted; in cfg_fpm_value_gen_2()
4758 hmc_info->hmc_obj[IRDMA_HMC_IW_OOISC].cnt = 32 * qpwanted; in cfg_fpm_value_gen_2()
4774 u32 qpwanted, mrwanted, pblewanted; in irdma_cfg_fpm_val() local
4803 qpwanted = min(qp_count, hmc_info->hmc_obj[IRDMA_HMC_IW_QP].max_cnt); in irdma_cfg_fpm_val()
4806 while (powerof2 <= qpwanted) in irdma_cfg_fpm_val()
4809 qpwanted = powerof2; in irdma_cfg_fpm_val()
4832 while (irdma_q1_cnt(dev, hmc_info, qpwanted) > hmc_info->hmc_obj[IRDMA_HMC_IW_Q1].max_cnt) in irdma_cfg_fpm_val()
4833 qpwanted /= 2; in irdma_cfg_fpm_val()
4837 hmc_info->hmc_obj[IRDMA_HMC_IW_QP].cnt = qpwanted; in irdma_cfg_fpm_val()
4839 min(2 * qpwanted, hmc_info->hmc_obj[IRDMA_HMC_IW_CQ].cnt); in irdma_cfg_fpm_val()
4843 hte = round_up(qpwanted + hmc_info->hmc_obj[IRDMA_HMC_IW_FSIMC].cnt, 512); in irdma_cfg_fpm_val()
4850 cfg_fpm_value_gen_1(dev, hmc_info, qpwanted); in irdma_cfg_fpm_val()
4852 cfg_fpm_value_gen_2(dev, hmc_info, qpwanted); in irdma_cfg_fpm_val()
4854 hmc_info->hmc_obj[IRDMA_HMC_IW_Q1].cnt = irdma_q1_cnt(dev, hmc_info, qpwanted); in irdma_cfg_fpm_val()
4860 (round_up(qpwanted, 512) / 512 + 1) * hmc_fpm_misc->timer_bucket; in irdma_cfg_fpm_val()
4867 pblewanted, qpwanted); in irdma_cfg_fpm_val()
4875 if (!(loop_count % 2) && qpwanted > 128) { in irdma_cfg_fpm_val()
4876 qpwanted /= 2; in irdma_cfg_fpm_val()
4891 } else if (qpwanted <= 128) { in irdma_cfg_fpm_val()
4899 if (!(loop_count % 10) && qpwanted > 128) { in irdma_cfg_fpm_val()
4900 qpwanted /= 2; in irdma_cfg_fpm_val()