Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dcn10k.c238 static void cn10k_get_ingress_burst_cfg(u32 burst, u32 *burst_exp, in cn10k_get_ingress_burst_cfg() argument
248 *burst_exp = ilog2(burst); in cn10k_get_ingress_burst_cfg()
255 if (*burst_exp > MAX_RATE_EXP) in cn10k_get_ingress_burst_cfg()
256 *burst_exp = MAX_RATE_EXP; in cn10k_get_ingress_burst_cfg()
263 *burst_mantissa = tmp / (1UL << (*burst_exp - 8)); in cn10k_get_ingress_burst_cfg()
364 u32 burst_exp, burst_mantissa; in cn10k_set_ipolicer_rate() local
369 cn10k_get_ingress_burst_cfg(burst, &burst_exp, &burst_mantissa); in cn10k_set_ipolicer_rate()
388 aq->prof.cbs_exponent = burst_exp; in cn10k_set_ipolicer_rate()
Dotx2_tc.c59 u32 *burst_exp, u32 *burst_mantissa) in otx2_get_egress_burst_cfg() argument
78 *burst_exp = ilog2(burst) ? ilog2(burst) - 1 : 0; in otx2_get_egress_burst_cfg()
83 *burst_mantissa = tmp / (1ULL << (*burst_exp - 7)); in otx2_get_egress_burst_cfg()
85 *burst_exp = MAX_BURST_EXPONENT; in otx2_get_egress_burst_cfg()
125 u32 burst_exp, burst_mantissa; in otx2_get_txschq_rate_regval() local
130 otx2_get_egress_burst_cfg(nic, burst, &burst_exp, &burst_mantissa); in otx2_get_txschq_rate_regval()
134 regval = FIELD_PREP(TLX_BURST_EXPONENT, (u64)burst_exp) | in otx2_get_txschq_rate_regval()
140 regval = FIELD_PREP(CN10K_TLX_BURST_EXPONENT, (u64)burst_exp) | in otx2_get_txschq_rate_regval()