Searched refs:ptoks (Results 1 – 3 of 3) sorted by relevance
146 p->ptoks = L2T_P(p, p->mtu); in tcf_police_locate()172 long ptoks = 0; in tcf_police() local198 ptoks = toks + p->ptoks; in tcf_police()199 if (ptoks > (long)L2T_P(p, p->mtu)) in tcf_police()200 ptoks = (long)L2T_P(p, p->mtu); in tcf_police()201 ptoks -= L2T_P(p, skb->len); in tcf_police()208 if ((toks|ptoks) >= 0) { in tcf_police()211 p->ptoks = ptoks; in tcf_police()
205 long ptoks = 0; in tbf_dequeue() local213 ptoks = toks + q->ptokens; in tbf_dequeue()214 if (ptoks > (long)q->mtu) in tbf_dequeue()215 ptoks = q->mtu; in tbf_dequeue()216 ptoks -= L2T_P(q, len); in tbf_dequeue()223 if ((toks|ptoks) >= 0) { in tbf_dequeue()226 q->ptokens = ptoks; in tbf_dequeue()232 delay = PSCHED_US2JIFFIE(max_t(long, -toks, -ptoks)); in tbf_dequeue()
398 u32 ptoks; member