Lines Matching full:burst
80 static void otx2_get_egress_burst_cfg(u32 burst, u32 *burst_exp, in otx2_get_egress_burst_cfg() argument
85 /* Burst is calculated as in otx2_get_egress_burst_cfg()
87 * Max supported burst size is 130,816 bytes. in otx2_get_egress_burst_cfg()
89 burst = min_t(u32, burst, MAX_BURST_SIZE); in otx2_get_egress_burst_cfg()
90 if (burst) { in otx2_get_egress_burst_cfg()
91 *burst_exp = ilog2(burst) ? ilog2(burst) - 1 : 0; in otx2_get_egress_burst_cfg()
92 tmp = burst - rounddown_pow_of_two(burst); in otx2_get_egress_burst_cfg()
93 if (burst < MAX_BURST_MANTISSA) in otx2_get_egress_burst_cfg()
135 static int otx2_set_matchall_egress_rate(struct otx2_nic *nic, u32 burst, u32 maxrate) in otx2_set_matchall_egress_rate() argument
147 otx2_get_egress_burst_cfg(burst, &burst_exp, &burst_mantissa); in otx2_set_matchall_egress_rate()
222 err = otx2_set_matchall_egress_rate(nic, entry->police.burst, rate); in otx2_tc_egress_matchall_install()
255 u64 rate, u32 burst, u32 mark, in otx2_tc_act_set_police() argument
276 rc = cn10k_set_ipolicer_rate(nic, node->leaf_profile, burst, rate, pps); in otx2_tc_act_set_police()
314 u32 burst, mark = 0; in otx2_tc_parse_actions() local
360 burst = act->police.burst; in otx2_tc_parse_actions()
368 burst = act->police.burst_pkt; in otx2_tc_parse_actions()
388 return otx2_tc_act_set_police(nic, node, f, rate, burst, in otx2_tc_parse_actions()
890 err = cn10k_set_matchall_ipolicer_rate(nic, entry->police.burst, rate); in otx2_tc_ingress_matchall_install()