/linux/rust/macros/ |
H A D | paste.rs | 5 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() 29 let Some(TokenTree::Ident(ident)) = tokens.next() else { in concat_helper() 50 let tokens = group.stream().into_iter().collect::<Vec<TokenTree>>(); in concat_helper() localVariable 51 segments.append(&mut concat_helper(tokens.as_slice())); in concat_helper() 60 fn concat(tokens: &[TokenTree], group_span: Span) -> TokenTree { in concat() 61 let segments = concat_helper(tokens); in concat() 66 pub(crate) fn expand(tokens [all...] |
H A D | quote.rs | 7 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() 20 tokens.extend([TokenTree::from(self.clone())]); in to_tokens() 25 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 26 tokens.extend([TokenTree::from(self.clone())]); 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 50 let mut tokens: ::std::vec::Vec<::proc_macro::TokenTree>; global() localVariable 76 let mut tokens = ::std::vec::Vec::<::proc_macro::TokenTree>::new(); global() localVariable 85 let mut tokens = ::std::vec::Vec::new(); global() localVariable 94 let mut tokens = ::std::vec::Vec::new(); global() localVariable [all...] |
H A D | kunit.rs | 21 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() 179 tokens.push(TokenTree::Group(Group::new(Delimiter::Brace, final_body))); in kunit_tests() 181 tokens.into_iter().collect() in kunit_tests()
|
H A D | vtable.rs | 8 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 D | lib.rs | 397 let mut tokens = input.into_iter().collect(); in paste() localVariable 398 paste::expand(&mut tokens); in paste() 399 tokens.into_iter().collect() in paste()
|
/linux/scripts/ |
H A D | asn1_compiler.c | 348 struct token *tokens; in tokenise() local 352 /* Assume we're going to have half as many tokens as we have in tokenise() 355 token_list = tokens = calloc((end - buffer) / 2, sizeof(struct token)); in tokenise() 356 if (!tokens) { in tokenise() 407 tokens[tix].line = lineno; in tokenise() 410 /* Handle string tokens */ in tokenise() 420 tokens[tix].size = q - p; in tokenise() 423 tokens[tix].content = malloc(tokens[tix].size + 1); in tokenise() 424 if (!tokens[ti in tokenise() [all...] |
/linux/net/netfilter/ |
H A D | nft_limit.c | 20 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; nft_limit_init() local [all...] |
/linux/drivers/net/wireguard/ |
H A D | ratelimiter.c | 27 u64 last_time_ns, tokens, ip; member 113 u64 now, tokens; in wg_ratelimiter_allow() local 117 * the burst as part of the maximum tokens, rather than in wg_ratelimiter_allow() 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 in wg_ratelimiter_allow() [all...] |
/linux/tools/arch/x86/kcpuid/ |
H A D | kcpuid.c | 331 char *tokens[6]; in parse_line() local 347 tokens[i] = strtok(str, ","); in parse_line() 348 if (!tokens[i]) in parse_line() 352 tokens[5] = strtok(str, "\n"); in parse_line() 353 if (!tokens[5]) in parse_line() 357 index = strtoull(tokens[0], NULL, 0); in parse_line() 374 buf = tokens[1]; in parse_line() 392 buf = tokens[2]; in parse_line() 405 buf = tokens[3]; in parse_line() 418 strcpy(bdesc->simp, strtok(tokens[ in parse_line() [all...] |
/linux/Documentation/ABI/testing/ |
H A D | sysfs-platform-dell-smbios | 1 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/lib/ |
H A D | ts_fsm.c | 35 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() [all...] |
/linux/drivers/mtd/ubi/ |
H A D | block.c | 103 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, ¶m->ubi_num); in ubiblock_set_param() 137 ret = kstrtoint(tokens[1], 10, ¶m->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 D | build.c | 1477 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/drivers/platform/x86/dell/ |
H A D | dell-smbios-base.c | 53 /* generally tokens are allowed, but may be further filtered or 89 /* tokens that are whitelisted for given capabilities */ 97 /* tokens that are explicitly blacklisted */ 219 /* tokens enabled ? */ in dell_smbios_call_filter() 397 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() 483 .name = "tokens" [all...] |
/linux/net/sched/ |
H A D | sch_tbf.c | 108 s64 tokens; /* Current number of B tokens */ member 109 s64 ptokens; /* Current number of P tokens */ 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 D | sch_htb.c | 120 s64 tokens, ctokens;/* current number of tokens */ member 528 * at cl->{c,}tokens == 0 but there can rather be hysteresis of 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() 1336 cl->xstats.tokens = clamp_t(s64, PSCHED_NS2TICKS(cl->tokens), in htb_dump_class_stats() [all...] |
/linux/Documentation/sphinx/ |
H A D | kernel_include.py | 170 tokens = NumberLines([([], text)], startline, endline) 171 for classes, value in tokens:
|
/linux/arch/um/drivers/ |
H A D | vector_user.h | 54 char *tokens[MAXVARGS]; member
|
/linux/Documentation/gpu/nova/core/ |
H A D | vbios.rst | 87 | | | followed by a table of tokens | | 176 tokens for a token with the id `BIT_TOKEN_ID_FALCON_DATA` (0x70) which indicates the
|
/linux/Documentation/networking/ |
H A D | devmem.rst | 224 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/Documentation/driver-api/media/drivers/ |
H A D | ipu6.rst | 124 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/net/core/ |
H A D | sock.c | 1070 /* This is the number of tokens and frags that the user can SO_DEVMEM_DONTNEED 1072 * allocates to copy these tokens, and to prevent looping over the frags for 1082 struct dmabuf_token *tokens; in sock_devmem_dontneed() local 1089 if (optlen % sizeof(*tokens) || in sock_devmem_dontneed() 1090 optlen > sizeof(*tokens) * MAX_DONTNEED_TOKENS) in sock_devmem_dontneed() 1093 num_tokens = optlen / sizeof(*tokens); in sock_devmem_dontneed() 1094 tokens = kvmalloc_array(num_tokens, sizeof(*tokens), GFP_KERNEL); in sock_devmem_dontneed() 1095 if (!tokens) in sock_devmem_dontneed() 1098 if (copy_from_sockptr(tokens, optva in sock_devmem_dontneed() [all...] |
/linux/fs/9p/ |
H A D | v9fs.c | 50 static const match_table_t tokens = { variable 197 token = match_token(p, tokens, args); in v9fs_parse_options()
|
/linux/net/9p/ |
H A D | trans_rdma.c | 141 static match_table_t tokens = { variable 203 token = match_token(p, tokens, args); in parse_opts()
|
/linux/drivers/target/ |
H A D | target_core_rd.c | 536 static match_table_t tokens = { variable 561 token = match_token(ptr, tokens, args); in rd_set_configfs_dev_params()
|