Home
last modified time | relevance | path

Searched refs:toks (Results 1 – 6 of 6) sorted by relevance

/linux-6.6.21/rust/macros/
Dpinned_drop.rs6 let mut toks = input.into_iter().collect::<Vec<_>>(); in pinned_drop() localVariable
7 assert!(!toks.is_empty()); in pinned_drop()
9 assert!(matches!(&toks[0], TokenTree::Ident(i) if i.to_string() == "impl")); in pinned_drop()
13 for (i, tt) in toks.iter().enumerate() { in pinned_drop()
38 toks.splice(idx..idx, quote!(::kernel::init::)); in pinned_drop()
40 if let Some(TokenTree::Group(last)) = toks.pop() { in pinned_drop()
43 @impl_sig(#(#toks)*), in pinned_drop()
47 TokenStream::from_iter(toks) in pinned_drop()
Dhelpers.rs90 let mut toks = input.into_iter(); in parse_generics() localVariable
93 for tt in &mut toks { in parse_generics()
147 rest.extend(toks); in parse_generics()
/linux-6.6.21/net/sched/
Dsch_tbf.c278 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, -ptoks)); in tbf_dequeue()
Dact_police.c252 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()
Dsch_htb.c534 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 <= -cl->mbuffer) in htb_accnt_tokens()
[all …]
/linux-6.6.21/block/
Dsed-opal.c78 struct opal_resp_tok toks[MAX_TOKS]; member
907 tok = &resp->toks[n]; in response_get_token()
1046 iter = resp->toks; in response_parse()