Home
last modified time | relevance | path

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

/linux-2.4.37.9/net/sched/
Dpolice.c146 p->ptoks = L2T_P(p, p->mtu); in tcf_police_locate()
172 long ptoks = 0; in tcf_police() local
198 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()
Dsch_tbf.c205 long ptoks = 0; in tbf_dequeue() local
213 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()
/linux-2.4.37.9/include/net/
Dpkt_sched.h398 u32 ptoks; member