Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dcn10k.c243 static void cn10k_get_ingress_burst_cfg(u32 burst, u32 *burst_exp, in cn10k_get_ingress_burst_cfg() argument
253 *burst_exp = ilog2(burst); in cn10k_get_ingress_burst_cfg()
260 if (*burst_exp > MAX_RATE_EXP) in cn10k_get_ingress_burst_cfg()
261 *burst_exp = MAX_RATE_EXP; in cn10k_get_ingress_burst_cfg()
268 *burst_mantissa = tmp / (1UL << (*burst_exp - 8)); in cn10k_get_ingress_burst_cfg()
369 u32 burst_exp, burst_mantissa; in cn10k_set_ipolicer_rate() local
374 cn10k_get_ingress_burst_cfg(burst, &burst_exp, &burst_mantissa); in cn10k_set_ipolicer_rate()
393 aq->prof.cbs_exponent = burst_exp; in cn10k_set_ipolicer_rate()
H A Dotx2_tc.c54 u32 *burst_exp, u32 *burst_mantissa) in otx2_get_egress_burst_cfg() argument
73 *burst_exp = ilog2(burst) ? ilog2(burst) - 1 : 0; in otx2_get_egress_burst_cfg()
78 *burst_mantissa = tmp / (1ULL << (*burst_exp - 7)); in otx2_get_egress_burst_cfg()
80 *burst_exp = MAX_BURST_EXPONENT; in otx2_get_egress_burst_cfg()
120 u32 burst_exp, burst_mantissa; in otx2_get_txschq_rate_regval() local
125 otx2_get_egress_burst_cfg(nic, burst, &burst_exp, &burst_mantissa); in otx2_get_txschq_rate_regval()
129 regval = FIELD_PREP(TLX_BURST_EXPONENT, (u64)burst_exp) | in otx2_get_txschq_rate_regval()
135 regval = FIELD_PREP(CN10K_TLX_BURST_EXPONENT, (u64)burst_exp) | in otx2_get_txschq_rate_regval()