Home
last modified time | relevance | path

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

/linux/net/sched/
A Dsch_tbf.c278 s64 ptoks = 0; in tbf_dequeue() local
285 ptoks = toks + q->ptokens; in tbf_dequeue()
286 if (ptoks > q->mtu) in tbf_dequeue()
287 ptoks = q->mtu; in tbf_dequeue()
288 ptoks -= (s64) psched_l2t_ns(&q->peak, len); in tbf_dequeue()
295 if ((toks|ptoks) >= 0) { in tbf_dequeue()
302 q->ptokens = ptoks; in tbf_dequeue()
310 now + max_t(long, -toks, -ptoks)); in tbf_dequeue()
A Dact_police.c246 s64 now, toks, ppstoks = 0, ptoks = 0; in tcf_police_act() local
274 ptoks = toks + police->tcfp_ptoks; in tcf_police_act()
275 if (ptoks > p->tcfp_mtu_ptoks) in tcf_police_act()
276 ptoks = p->tcfp_mtu_ptoks; in tcf_police_act()
277 ptoks -= (s64)psched_l2t_ns(&p->peak, in tcf_police_act()
292 if ((toks | ptoks | ppstoks) >= 0) { in tcf_police_act()
295 police->tcfp_ptoks = ptoks; in tcf_police_act()

Completed in 6 milliseconds