Home
last modified time | relevance | path

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

/openbmc/linux/net/sched/
H A Dsch_tbf.c279 s64 ptoks = 0; in tbf_dequeue() local
286 ptoks = toks + q->ptokens; in tbf_dequeue()
287 if (ptoks > q->mtu) in tbf_dequeue()
288 ptoks = q->mtu; in tbf_dequeue()
289 ptoks -= (s64) psched_l2t_ns(&q->peak, len); in tbf_dequeue()
296 if ((toks|ptoks) >= 0) { in tbf_dequeue()
303 q->ptokens = ptoks; in tbf_dequeue()
311 now + max_t(long, -toks, -ptoks)); in tbf_dequeue()
H A Dact_police.c252 s64 now, toks, ppstoks = 0, ptoks = 0; in tcf_police_act() local
280 ptoks = toks + police->tcfp_ptoks; in tcf_police_act()
281 if (ptoks > p->tcfp_mtu_ptoks) in tcf_police_act()
282 ptoks = p->tcfp_mtu_ptoks; in tcf_police_act()
283 ptoks -= (s64)psched_l2t_ns(&p->peak, in tcf_police_act()
298 if ((toks | ptoks | ppstoks) >= 0) { in tcf_police_act()
301 police->tcfp_ptoks = ptoks; in tcf_police_act()