Searched refs:toks (Results 1 – 5 of 5) sorted by relevance
| /linux/rust/macros/ |
| H A D | pinned_drop.rs | |
| /linux/rust/pin-init/internal/src/ |
| H A D | pinned_drop.rs | 9 let mut toks = input.into_iter().collect::<Vec<_>>(); pinned_drop() localVariable
|
| /linux/net/sched/ |
| H A D | sch_tbf.c | 290 s64 toks; in tbf_dequeue() 295 toks = min_t(s64, now - q->t_c, q->buffer); in tbf_dequeue() 298 ptoks = toks + q->ptokens; in tbf_dequeue() 303 toks += q->tokens; in tbf_dequeue() 304 if (toks > q->buffer) in tbf_dequeue() 305 toks = q->buffer; in tbf_dequeue() 306 toks -= (s64) psched_l2t_ns(&q->rate, len); in tbf_dequeue() 308 if ((toks|ptoks) >= 0) { in tbf_dequeue() 314 q->tokens = toks; in tbf_dequeue() 323 now + max_t(long, -toks, in tbf_dequeue() 284 s64 toks; tbf_dequeue() local [all...] |
| H A D | act_police.c | 257 s64 now, toks, ppstoks = 0, ptoks = 0; in tcf_police_act() local 283 toks = min_t(s64, now - police->tcfp_t_c, p->tcfp_burst); in tcf_police_act() 285 ptoks = toks + police->tcfp_ptoks; in tcf_police_act() 292 toks += police->tcfp_toks; in tcf_police_act() 293 if (toks > p->tcfp_burst) in tcf_police_act() 294 toks = p->tcfp_burst; in tcf_police_act() 295 toks -= (s64)psched_l2t_ns(&p->rate, qdisc_pkt_len(skb)); in tcf_police_act() 303 if ((toks | ptoks | ppstoks) >= 0) { in tcf_police_act() 305 police->tcfp_toks = toks; in tcf_police_act()
|
| H A D | sch_htb.c | 536 s64 toks; in htb_class_mode() local 538 if ((toks = (cl->ctokens + *diff)) < htb_lowater(cl)) { in htb_class_mode() 539 *diff = -toks; in htb_class_mode() 543 if ((toks = (cl->tokens + *diff)) >= htb_hiwater(cl)) in htb_class_mode() 546 *diff = -toks; in htb_class_mode() 661 s64 toks = diff + cl->tokens; in htb_accnt_tokens() local 663 if (toks > cl->buffer) in htb_accnt_tokens() 664 toks = cl->buffer; in htb_accnt_tokens() 665 toks -= (s64) psched_l2t_ns(&cl->rate, bytes); in htb_accnt_tokens() 666 if (toks <= -cl->mbuffer) in htb_accnt_tokens() [all …]
|