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

/linux-4.4.14/net/sched/
H A Dact_police.c261 s64 ptoks = 0; tcf_act_police() local
286 ptoks = toks + police->tcfp_ptoks; tcf_act_police()
287 if (ptoks > police->tcfp_mtu_ptoks) tcf_act_police()
288 ptoks = police->tcfp_mtu_ptoks; tcf_act_police()
289 ptoks -= (s64) psched_l2t_ns(&police->peak, tcf_act_police()
296 if ((toks|ptoks) >= 0) { tcf_act_police()
299 police->tcfp_ptoks = ptoks; tcf_act_police()
H A Dsch_tbf.c241 s64 ptoks = 0; tbf_dequeue() local
248 ptoks = toks + q->ptokens; tbf_dequeue()
249 if (ptoks > q->mtu) tbf_dequeue()
250 ptoks = q->mtu; tbf_dequeue()
251 ptoks -= (s64) psched_l2t_ns(&q->peak, len); tbf_dequeue()
258 if ((toks|ptoks) >= 0) { tbf_dequeue()
265 q->ptokens = ptoks; tbf_dequeue()
273 now + max_t(long, -toks, -ptoks), tbf_dequeue()

Completed in 229 milliseconds