/kernel/linux/linux-6.6/rust/macros/ |
H A D | pinned_drop.rs | 6 let mut toks = input.into_iter().collect::<Vec<_>>(); variables 7 assert!(!toks.is_empty()); 9 assert!(matches!(&toks[0], TokenTree::Ident(i) if i.to_string() == "impl")); 13 for (i, tt) in toks.iter().enumerate() { 38 toks.splice(idx..idx, quote!(::kernel::init::)); 40 if let Some(TokenTree::Group(last)) = toks.pop() { 43 @impl_sig(#(#toks)*), 47 TokenStream::from_iter(toks)
|
H A D | helpers.rs | 90 let mut toks = input.into_iter(); variables 93 for tt in &mut toks { 147 rest.extend(toks);
|
/kernel/linux/linux-5.10/net/sched/ |
H A D | act_police.c | 235 s64 now, toks, ptoks = 0; in tcf_police_act() local 260 toks = min_t(s64, now - police->tcfp_t_c, p->tcfp_burst); in tcf_police_act() 262 ptoks = toks + police->tcfp_ptoks; in tcf_police_act() 268 toks += police->tcfp_toks; in tcf_police_act() 269 if (toks > p->tcfp_burst) in tcf_police_act() 270 toks = p->tcfp_burst; in tcf_police_act() 271 toks -= (s64)psched_l2t_ns(&p->rate, qdisc_pkt_len(skb)); in tcf_police_act() 272 if ((toks|ptoks) >= 0) { in tcf_police_act() 274 police->tcfp_toks = toks; in tcf_police_act()
|
H A D | sch_tbf.c | 263 s64 toks; in tbf_dequeue() local 268 toks = min_t(s64, now - q->t_c, q->buffer); in tbf_dequeue() 271 ptoks = toks + q->ptokens; in tbf_dequeue() 276 toks += q->tokens; in tbf_dequeue() 277 if (toks > q->buffer) in tbf_dequeue() 278 toks = q->buffer; in tbf_dequeue() 279 toks -= (s64) psched_l2t_ns(&q->rate, len); in tbf_dequeue() 281 if ((toks|ptoks) >= 0) { in tbf_dequeue() 287 q->tokens = toks; in tbf_dequeue() 296 now + max_t(long, -toks, in tbf_dequeue() [all...] |
H A D | sch_htb.c | 505 s64 toks; in htb_class_mode() local 507 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() 623 s64 toks = diff + cl->tokens; in htb_accnt_tokens() local 625 if (toks > cl->buffer) in htb_accnt_tokens() 626 toks = cl->buffer; in htb_accnt_tokens() 627 toks -= (s64) psched_l2t_ns(&cl->rate, bytes); in htb_accnt_tokens() 628 if (toks < in htb_accnt_tokens() 636 s64 toks = diff + cl->ctokens; htb_accnt_ctokens() local [all...] |
/kernel/linux/linux-6.6/net/sched/ |
H A D | sch_tbf.c | 278 s64 toks; in tbf_dequeue() local 283 toks = min_t(s64, now - q->t_c, q->buffer); in tbf_dequeue() 286 ptoks = toks + q->ptokens; in tbf_dequeue() 291 toks += q->tokens; in tbf_dequeue() 292 if (toks > q->buffer) in tbf_dequeue() 293 toks = q->buffer; in tbf_dequeue() 294 toks -= (s64) psched_l2t_ns(&q->rate, len); in tbf_dequeue() 296 if ((toks|ptoks) >= 0) { in tbf_dequeue() 302 q->tokens = toks; in tbf_dequeue() 311 now + max_t(long, -toks, in tbf_dequeue() [all...] |
H A D | act_police.c | 252 s64 now, toks, ppstoks = 0, ptoks = 0; in tcf_police_act() local 278 toks = min_t(s64, now - police->tcfp_t_c, p->tcfp_burst); in tcf_police_act() 280 ptoks = toks + police->tcfp_ptoks; in tcf_police_act() 287 toks += police->tcfp_toks; in tcf_police_act() 288 if (toks > p->tcfp_burst) in tcf_police_act() 289 toks = p->tcfp_burst; in tcf_police_act() 290 toks -= (s64)psched_l2t_ns(&p->rate, qdisc_pkt_len(skb)); in tcf_police_act() 298 if ((toks | ptoks | ppstoks) >= 0) { in tcf_police_act() 300 police->tcfp_toks = toks; in tcf_police_act()
|
H A D | sch_htb.c | 534 s64 toks; in htb_class_mode() local 536 if ((toks = (cl->ctokens + *diff)) < htb_lowater(cl)) { in htb_class_mode() 537 *diff = -toks; in htb_class_mode() 541 if ((toks = (cl->tokens + *diff)) >= htb_hiwater(cl)) in htb_class_mode() 544 *diff = -toks; in htb_class_mode() 659 s64 toks = diff + cl->tokens; in htb_accnt_tokens() local 661 if (toks > cl->buffer) in htb_accnt_tokens() 662 toks = cl->buffer; in htb_accnt_tokens() 663 toks -= (s64) psched_l2t_ns(&cl->rate, bytes); in htb_accnt_tokens() 664 if (toks < in htb_accnt_tokens() 672 s64 toks = diff + cl->ctokens; htb_accnt_ctokens() local [all...] |
/kernel/linux/linux-5.10/block/ |
H A D | sed-opal.c | 47 * On the parsed response, we don't store again the toks that are already 73 struct opal_resp_tok toks[MAX_TOKS]; member 747 tok = &resp->toks[n]; in response_get_token() 886 iter = resp->toks; in response_parse()
|
/kernel/linux/linux-6.6/block/ |
H A D | sed-opal.c | 52 * On the parsed response, we don't store again the toks that are already 78 struct opal_resp_tok toks[MAX_TOKS]; member 907 tok = &resp->toks[n]; in response_get_token() 1046 iter = resp->toks; in response_parse()
|