Home
last modified time | relevance | path

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

/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_tm.c55 u32 ir_calc; in hclge_shaper_para_calc() local
72 ir_calc = (DIVISOR_IR_B_126 + (tick >> 1) - 1) / tick; in hclge_shaper_para_calc()
74 if (ir_calc == ir) { in hclge_shaper_para_calc()
80 } else if (ir_calc > ir) { in hclge_shaper_para_calc()
82 while (ir_calc >= ir && ir) { in hclge_shaper_para_calc()
84 ir_calc = DIVISOR_IR_B_126 / (tick * (1 << ir_s_calc)); in hclge_shaper_para_calc()
93 while (ir_calc < ir) { in hclge_shaper_para_calc()
96 ir_calc = (numerator + (tick >> 1)) / tick; in hclge_shaper_para_calc()
99 if (ir_calc == ir) { in hclge_shaper_para_calc()