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