Home
last modified time | relevance | path

Searched refs:ir_calc (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_tm.c56 u32 ir_calc; in hclge_shaper_para_calc() local
73 ir_calc = (DEFAULT_DIVISOR_IR_B + (tick >> 1) - 1) / tick; in hclge_shaper_para_calc()
75 if (ir_calc == ir) { in hclge_shaper_para_calc()
81 } else if (ir_calc > ir) { in hclge_shaper_para_calc()
83 while (ir_calc >= ir && ir) { in hclge_shaper_para_calc()
85 ir_calc = DEFAULT_DIVISOR_IR_B / in hclge_shaper_para_calc()
95 while (ir_calc < ir) { in hclge_shaper_para_calc()
98 ir_calc = (numerator + (tick >> 1)) / tick; in hclge_shaper_para_calc()
101 if (ir_calc == ir) { in hclge_shaper_para_calc()
/openbmc/linux/drivers/crypto/hisilicon/
H A Dqm.c1182 u32 cir_b, cir_u, cir_s, ir_calc; in qm_get_shaper_para() local
1190 ir_calc = acc_shaper_para_calc(cir_b, cir_u, cir_s); in qm_get_shaper_para()
1192 error_rate = QM_QOS_EXPAND_RATE * (u32)abs(ir_calc - ir) / ir; in qm_get_shaper_para()
3591 u64 shaper_vft, ir_calc, ir; in qm_get_shaper_vft_qos() local
3625 ir_calc = acc_shaper_para_calc(cir_b, cir_u, cir_s); in qm_get_shaper_vft_qos()
3629 error_rate = QM_QOS_EXPAND_RATE * (u32)abs(ir_calc - ir) / ir; in qm_get_shaper_vft_qos()