Searched refs:burst_exp (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | cn10k.c | 236 static void cn10k_get_ingress_burst_cfg(u32 burst, u32 *burst_exp, in cn10k_get_ingress_burst_cfg() argument 246 *burst_exp = ilog2(burst); in cn10k_get_ingress_burst_cfg() 253 if (*burst_exp > MAX_RATE_EXP) in cn10k_get_ingress_burst_cfg() 254 *burst_exp = MAX_RATE_EXP; in cn10k_get_ingress_burst_cfg() 261 *burst_mantissa = tmp / (1UL << (*burst_exp - 8)); in cn10k_get_ingress_burst_cfg() 362 u32 burst_exp, burst_mantissa; in cn10k_set_ipolicer_rate() local 367 cn10k_get_ingress_burst_cfg(burst, &burst_exp, &burst_mantissa); in cn10k_set_ipolicer_rate() 386 aq->prof.cbs_exponent = burst_exp; in cn10k_set_ipolicer_rate()
|
D | otx2_tc.c | 87 u32 *burst_exp, u32 *burst_mantissa) in otx2_get_egress_burst_cfg() argument 106 *burst_exp = ilog2(burst) ? ilog2(burst) - 1 : 0; in otx2_get_egress_burst_cfg() 111 *burst_mantissa = tmp / (1ULL << (*burst_exp - 7)); in otx2_get_egress_burst_cfg() 113 *burst_exp = MAX_BURST_EXPONENT; in otx2_get_egress_burst_cfg() 153 u32 burst_exp, burst_mantissa; in otx2_get_txschq_rate_regval() local 158 otx2_get_egress_burst_cfg(nic, burst, &burst_exp, &burst_mantissa); in otx2_get_txschq_rate_regval() 162 regval = FIELD_PREP(TLX_BURST_EXPONENT, (u64)burst_exp) | in otx2_get_txschq_rate_regval() 168 regval = FIELD_PREP(CN10K_TLX_BURST_EXPONENT, (u64)burst_exp) | in otx2_get_txschq_rate_regval()
|