Searched refs:toks (Results 1 – 3 of 3) sorted by relevance
206 s64 toks; in tcf_act_police() local234 toks = min_t(s64, now - police->tcfp_t_c, in tcf_act_police()237 ptoks = toks + police->tcfp_ptoks; in tcf_act_police()243 toks += police->tcfp_toks; in tcf_act_police()244 if (toks > police->tcfp_burst) in tcf_act_police()245 toks = police->tcfp_burst; in tcf_act_police()246 toks -= (s64) psched_l2t_ns(&police->rate, qdisc_pkt_len(skb)); in tcf_act_police()247 if ((toks|ptoks) >= 0) { in tcf_act_police()249 police->tcfp_toks = toks; in tcf_act_police()
221 s64 toks; in tbf_dequeue() local226 toks = min_t(s64, now - q->t_c, q->buffer); in tbf_dequeue()229 ptoks = toks + q->ptokens; in tbf_dequeue()234 toks += q->tokens; in tbf_dequeue()235 if (toks > q->buffer) in tbf_dequeue()236 toks = q->buffer; in tbf_dequeue()237 toks -= (s64) psched_l2t_ns(&q->rate, len); in tbf_dequeue()239 if ((toks|ptoks) >= 0) { in tbf_dequeue()245 q->tokens = toks; in tbf_dequeue()254 now + max_t(long, -toks, -ptoks)); in tbf_dequeue()
505 s64 toks; in htb_class_mode() local507 if ((toks = (cl->ctokens + *diff)) < htb_lowater(cl)) { in htb_class_mode()508 *diff = -toks; in htb_class_mode()512 if ((toks = (cl->tokens + *diff)) >= htb_hiwater(cl)) in htb_class_mode()515 *diff = -toks; in htb_class_mode()636 s64 toks = diff + cl->tokens; in htb_accnt_tokens() local638 if (toks > cl->buffer) in htb_accnt_tokens()639 toks = cl->buffer; in htb_accnt_tokens()640 toks -= (s64) psched_l2t_ns(&cl->rate, bytes); in htb_accnt_tokens()641 if (toks <= -cl->mbuffer) in htb_accnt_tokens()[all …]