Searched refs:ptoks (Results 1 – 2 of 2) sorted by relevance
278 s64 ptoks = 0; in tbf_dequeue() local285 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()
246 s64 now, toks, ppstoks = 0, ptoks = 0; in tcf_police_act() local274 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