Home
last modified time | relevance | path

Searched refs:tokens (Results 1 – 25 of 62) sorted by relevance

123

/linux-6.15/rust/macros/
H A Dpaste.rs5 fn concat_helper(tokens: &[TokenTree]) -> Vec<(String, Span)> { in concat_helper()
6 let mut tokens = tokens.iter(); in concat_helper() localVariable
10 match tokens.next() { in concat_helper()
61 let segments = concat_helper(tokens); in concat()
66 pub(crate) fn expand(tokens: &mut Vec<TokenTree>) { in expand()
67 for token in tokens.iter_mut() { in expand()
91 for i in (0..tokens.len().saturating_sub(3)).rev() { in expand()
94 (&tokens[i + 1], &tokens[i + 2]), in expand()
98 match &tokens[i + 3] { in expand()
105 match &tokens[i] { in expand()
[all …]
H A Dquote.rs7 fn to_tokens(&self, tokens: &mut TokenStream); in to_tokens()
11 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
13 v.to_tokens(tokens); in to_tokens()
19 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
25 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
31 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
32 tokens.extend([self.clone()]); in to_tokens()
37 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
38 tokens.extend(self.clone()); in to_tokens()
53 tokens = ::std::vec::Vec::new();
[all …]
H A Dkunit.rs21 let mut tokens: Vec<_> = ts.into_iter().collect(); in kunit_tests() localVariable
24 tokens in kunit_tests()
36 let body = match tokens.pop() { in kunit_tests()
62 tokens.insert( in kunit_tests()
153 tokens.push(TokenTree::Group(Group::new(Delimiter::Brace, new_body))); in kunit_tests()
155 tokens.into_iter().collect() in kunit_tests()
H A Dvtable.rs8 let mut tokens: Vec<_> = ts.into_iter().collect(); in vtable() localVariable
11 let is_trait = tokens in vtable()
24 let body = match tokens.pop() { in vtable()
94 tokens.push(TokenTree::Group(Group::new(Delimiter::Brace, new_body))); in vtable()
95 tokens.into_iter().collect() in vtable()
H A Dlib.rs392 let mut tokens = input.into_iter().collect(); in paste() localVariable
393 paste::expand(&mut tokens); in paste()
394 tokens.into_iter().collect() in paste()
/linux-6.15/scripts/
H A Dasn1_compiler.c348 struct token *tokens; in tokenise() local
356 if (!tokens) { in tokenise()
423 tokens[tix].content = malloc(tokens[tix].size + 1); in tokenise()
428 memcpy(tokens[tix].content, start, tokens[tix].size); in tokenise()
429 tokens[tix].content[tokens[tix].size] = 0; in tokenise()
463 tokens[tix].content = malloc(tokens[tix].size + 1); in tokenise()
468 memcpy(tokens[tix].content, start, tokens[tix].size); in tokenise()
469 tokens[tix].content[tokens[tix].size] = 0; in tokenise()
477 tokens[tix].size = 3; in tokenise()
487 tokens[tix].size = 2; in tokenise()
[all …]
/linux-6.15/net/netfilter/
H A Dnft_limit.c20 u64 tokens; member
34 u64 now, tokens; in nft_limit_eval() local
39 tokens = priv->limit->tokens + now - priv->limit->last; in nft_limit_eval()
40 if (tokens > priv->tokens_max) in nft_limit_eval()
41 tokens = priv->tokens_max; in nft_limit_eval()
44 delta = tokens - cost; in nft_limit_eval()
46 priv->limit->tokens = delta; in nft_limit_eval()
50 priv->limit->tokens = tokens; in nft_limit_eval()
61 u64 unit, tokens, rate_with_burst; in nft_limit_init() local
100 tokens = div64_u64(tmp, priv->rate); in nft_limit_init()
[all …]
/linux-6.15/drivers/net/wireguard/
H A Dratelimiter.c27 u64 last_time_ns, tokens, ip; member
113 u64 now, tokens; in wg_ratelimiter_allow() local
122 tokens = min_t(u64, TOKEN_MAX, in wg_ratelimiter_allow()
123 entry->tokens + now - in wg_ratelimiter_allow()
126 ret = tokens >= PACKET_COST; in wg_ratelimiter_allow()
127 entry->tokens = ret ? tokens - PACKET_COST : tokens; in wg_ratelimiter_allow()
147 entry->tokens = TOKEN_MAX - PACKET_COST; in wg_ratelimiter_allow()
/linux-6.15/sound/soc/sof/
H A Dtopology.c76 tokens = token_list[token_id].tokens; in sof_update_ipc_object()
77 if (!tokens) { in sof_update_ipc_object()
88 switch (tokens[i].type) { in sof_update_ipc_object()
108 if (!tokens[i].get_token) { in sof_update_ipc_object()
116 tokens[i].offset + offset); in sof_update_ipc_object()
476 tokens[j].get_token(elem, object, in sof_parse_uuid_tokens()
477 offset + tokens[j].offset); in sof_parse_uuid_tokens()
521 tokens = token_list[token_id].tokens; in sof_copy_tuples()
524 if (!tokens) { in sof_copy_tuples()
643 ret = tokens[j].get_token(elem->string, object, offset + tokens[j].offset); in sof_parse_string_tokens()
[all …]
/linux-6.15/tools/arch/x86/kcpuid/
H A Dkcpuid.c303 char *tokens[6]; in parse_line() local
319 tokens[i] = strtok(str, ","); in parse_line()
320 if (!tokens[i]) in parse_line()
324 tokens[5] = strtok(str, "\n"); in parse_line()
325 if (!tokens[5]) in parse_line()
329 index = strtoull(tokens[0], NULL, 0); in parse_line()
348 buf = tokens[1]; in parse_line()
366 buf = tokens[2]; in parse_line()
379 buf = tokens[3]; in parse_line()
392 strcpy(bdesc->simp, strtok(tokens[4], " \t")); in parse_line()
[all …]
/linux-6.15/Documentation/ABI/testing/
H A Dsysfs-platform-dell-smbios1 What: /sys/devices/platform/<platform>/tokens/*
6 A read-only description of Dell platform tokens
20 only tokens available on that machine will be
/linux-6.15/lib/
H A Dts_fsm.c35 struct ts_fsm_token tokens[]; member
160 strict = fsm->tokens[0].recur != TS_FSM_HEAD_IGNORE; in fsm_find()
166 cur = &fsm->tokens[tok_idx]; in fsm_find()
169 next = &fsm->tokens[tok_idx + 1]; in fsm_find()
261 struct ts_fsm_token *tokens = (struct ts_fsm_token *) pattern; in fsm_init() local
262 unsigned int ntokens = len / sizeof(*tokens); in fsm_init()
272 struct ts_fsm_token *t = &tokens[i]; in fsm_init()
289 memcpy(fsm->tokens, pattern, len); in fsm_init()
292 struct ts_fsm_token *t = &fsm->tokens[i]; in fsm_init()
305 return fsm->tokens; in fsm_get_pattern()
/linux-6.15/drivers/mtd/ubi/
H A Dblock.c103 char *tokens[UBIBLOCK_PARAM_COUNT]; in ubiblock_set_param() local
127 tokens[i] = strsep(&pbuf, ","); in ubiblock_set_param()
130 if (tokens[1]) { in ubiblock_set_param()
132 ret = kstrtoint(tokens[0], 10, &param->ubi_num); in ubiblock_set_param()
137 ret = kstrtoint(tokens[1], 10, &param->vol_id); in ubiblock_set_param()
140 strcpy(param->name, tokens[1]); in ubiblock_set_param()
145 strcpy(param->name, tokens[0]); in ubiblock_set_param()
H A Dbuild.c1477 char *tokens[MTD_PARAM_MAX_COUNT], *token; in ubi_mtd_param_parse() local
1507 tokens[i] = strsep(&pbuf, ","); in ubi_mtd_param_parse()
1515 strcpy(&p->name[0], tokens[0]); in ubi_mtd_param_parse()
1517 token = tokens[1]; in ubi_mtd_param_parse()
1525 token = tokens[2]; in ubi_mtd_param_parse()
1536 token = tokens[3]; in ubi_mtd_param_parse()
1548 token = tokens[4]; in ubi_mtd_param_parse()
1560 token = tokens[5]; in ubi_mtd_param_parse()
/linux-6.15/drivers/i2c/busses/
H A Di2c-meson.c101 u32 tokens[2]; member
124 i2c->tokens[0] = 0; in meson_i2c_reset_tokens()
125 i2c->tokens[1] = 0; in meson_i2c_reset_tokens()
132 i2c->tokens[0] |= (token & 0xf) << (i2c->num_tokens * 4); in meson_i2c_add_token()
134 i2c->tokens[1] |= (token & 0xf) << ((i2c->num_tokens % 8) * 4); in meson_i2c_add_token()
274 writel(i2c->tokens[0], i2c->regs + REG_TOK_LIST0); in meson_i2c_prepare_xfer()
275 writel(i2c->tokens[1], i2c->regs + REG_TOK_LIST1); in meson_i2c_prepare_xfer()
/linux-6.15/drivers/platform/x86/dell/
H A Ddell-smbios-base.c397 int tokens = (dm->length-11)/sizeof(struct calling_interface_token)-1; in parse_da_table() local
412 new_da_tokens = krealloc(da_tokens, (da_num_tokens + tokens) * in parse_da_table()
420 memcpy(da_tokens+da_num_tokens, table->tokens, in parse_da_table()
421 sizeof(struct calling_interface_token) * tokens); in parse_da_table()
423 da_num_tokens += tokens; in parse_da_table()
H A Ddell-smbios.h64 struct calling_interface_token tokens[]; member
/linux-6.15/net/sched/
H A Dsch_tbf.c108 s64 tokens; /* Current number of B tokens */ member
297 toks += q->tokens; in tbf_dequeue()
308 q->tokens = toks; in tbf_dequeue()
341 q->tokens = q->buffer; in tbf_reset()
469 q->tokens = q->buffer; in tbf_change()
H A Dsch_htb.c120 s64 tokens, ctokens;/* current number of tokens */ member
542 if ((toks = (cl->tokens + *diff)) >= htb_hiwater(cl)) in htb_class_mode()
660 s64 toks = diff + cl->tokens; in htb_accnt_tokens()
668 cl->tokens = toks; in htb_accnt_tokens()
714 cl->tokens += diff; /* we moved t_c; update tokens */ in htb_charge_class()
1334 cl->xstats.tokens = clamp_t(s64, PSCHED_NS2TICKS(cl->tokens), in htb_dump_class_stats()
1518 parent->tokens = parent->buffer; in htb_parent_to_leaf()
1970 cl->tokens = PSCHED_TICKS2NS(hopt->buffer); in htb_change_class()
/linux-6.15/Documentation/sphinx/
H A Dkernel_include.py169 tokens = NumberLines([([], text)], startline, endline)
170 for classes, value in tokens:
/linux-6.15/arch/um/drivers/
H A Dvector_user.h54 char *tokens[MAXVARGS]; member
/linux-6.15/Documentation/networking/
H A Ddevmem.rst224 The user must ensure the tokens are returned to the kernel in a timely manner.
228 The user must pass no more than 128 tokens, with no more than 1024 total frags
229 among the token->token_count across all the tokens. If the user provides more
233 can be less than the tokens provided by the user in case of:
/linux-6.15/Documentation/filesystems/nfs/
H A Drpc-server-gss.rst55 A) It can handle tokens that are no bigger than 2KiB
57 In some Kerberos deployment GSSAPI tokens can be quite big, up and
/linux-6.15/Documentation/driver-api/media/drivers/
H A Dipu6.rst124 with a configurable number of tokens (messages). There are also common IPU6 MMIO
126 function as producer and consumer of tokens in the queues and update the write
130 queues, configure the count of tokens per queue and the size of per token before
/linux-6.15/net/core/
H A Dsock.c1084 struct dmabuf_token *tokens; in sock_devmem_dontneed() local
1091 if (optlen % sizeof(*tokens) || in sock_devmem_dontneed()
1092 optlen > sizeof(*tokens) * MAX_DONTNEED_TOKENS) in sock_devmem_dontneed()
1095 num_tokens = optlen / sizeof(*tokens); in sock_devmem_dontneed()
1096 tokens = kvmalloc_array(num_tokens, sizeof(*tokens), GFP_KERNEL); in sock_devmem_dontneed()
1097 if (!tokens) in sock_devmem_dontneed()
1100 if (copy_from_sockptr(tokens, optval, optlen)) { in sock_devmem_dontneed()
1101 kvfree(tokens); in sock_devmem_dontneed()
1107 for (j = 0; j < tokens[i].token_count; j++) { in sock_devmem_dontneed()
1112 &sk->sk_user_frags, tokens[i].token_start + j); in sock_devmem_dontneed()
[all …]

123