/linux/rust/macros/ |
H A D | quote.rs | 6 fn to_tokens(&self, tokens: &mut TokenStream); in to_tokens() 10 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 12 v.to_tokens(tokens); in to_tokens() 18 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 19 tokens.extend([TokenTree::from(self.clone())]); in to_tokens() 24 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 25 tokens.extend([self.clone()]); in to_tokens() 30 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens() 31 tokens.extend(self.clone()); in to_tokens() 43 let mut tokens; localVariable [all …]
|
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()
|
/linux/scripts/ |
H A D | asn1_compiler.c | 348 struct token *tokens; in tokenise() local 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() 420 tokens[tix].size = q - p; in tokenise() 423 tokens[tix].content = malloc(tokens[tix].size + 1); in tokenise() 424 if (!tokens[tix].content) { in tokenise() 428 memcpy(tokens[tix].content, start, tokens[tix].size); in tokenise() 429 tokens[tix].content[tokens[tix].size] = 0; in tokenise() 434 if (islower(tokens[tix].content[0])) { 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; in nft_limit_init() local 88 if (check_mul_overflow(tmp, priv->burst, &tokens)) in nft_limit_init() [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 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/sound/soc/sof/ |
H A D | topology.c | 17 #include <uapi/sound/sof/tokens.h> 40 * sof_update_ipc_object - Parse multiple sets of tokens within the token array associated with the 59 const struct sof_topology_token *tokens; in sof_update_ipc_object() local 72 /* No tokens to match */ in sof_update_ipc_object() 76 tokens = token_list[token_id].tokens; in sof_update_ipc_object() 77 if (!tokens) { in sof_update_ipc_object() 78 dev_err(scomp->dev, "Invalid tokens for token id: %d\n", token_id); in sof_update_ipc_object() 87 if (tokens[i].token == tuples[j].token) { in sof_update_ipc_object() 88 switch (tokens[ in sof_update_ipc_object() 450 sof_parse_uuid_tokens(struct snd_soc_component * scomp,void * object,size_t offset,const struct sof_topology_token * tokens,int num_tokens,struct snd_soc_tplg_vendor_array * array) sof_parse_uuid_tokens() argument 502 const struct sof_topology_token *tokens; sof_copy_tuples() local 617 sof_parse_string_tokens(struct snd_soc_component * scomp,void * object,int offset,const struct sof_topology_token * tokens,int num_tokens,struct snd_soc_tplg_vendor_array * array) sof_parse_string_tokens() argument 663 sof_parse_word_tokens(struct snd_soc_component * scomp,void * object,int offset,const struct sof_topology_token * tokens,int num_tokens,struct snd_soc_tplg_vendor_array * array) sof_parse_word_tokens() argument 713 sof_parse_token_sets(struct snd_soc_component * scomp,void * object,const struct sof_topology_token * tokens,int count,struct snd_soc_tplg_vendor_array * array,int array_size,int token_instance_num,size_t object_size) sof_parse_token_sets() argument 799 sof_parse_tokens(struct snd_soc_component * scomp,void * object,const struct sof_topology_token * tokens,int num_tokens,struct snd_soc_tplg_vendor_array * array,int array_size) sof_parse_tokens() argument [all...] |
/linux/tools/arch/x86/kcpuid/ |
H A D | kcpuid.c | 303 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/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()
|
/linux/drivers/platform/x86/dell/ |
H A D | dell-smbios-base.c | 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()
|
H A D | dell-smbios.h | 64 struct calling_interface_token tokens[]; member
|
/linux/net/sched/ |
H A D | sch_tbf.c | 108 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()
|
/linux/Documentation/sphinx/ |
H A D | kernel_include.py | 169 tokens = NumberLines([([], text)], startline, endline) 170 for classes, value in tokens:
|
/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/arch/um/drivers/ |
H A D | vector_user.h | 54 char *tokens[MAXVARGS]; member
|
/linux/Documentation/filesystems/nfs/ |
H A D | rpc-server-gss.rst | 55 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/fs/pstore/ |
H A D | inode.c | 232 static const match_table_t tokens = { variable 252 token = match_token(p, tokens, args); in parse_options()
|
/linux/fs/devpts/ |
H A D | inode.c | 90 static const match_table_t tokens = { variable 256 token = match_token(p, tokens, args); in parse_mount_options()
|
/linux/net/core/ |
H A D | sock.c | 1069 struct dmabuf_token *tokens; in sock_devmem_dontneed() local 1076 if (optlen % sizeof(*tokens) || in sock_devmem_dontneed() 1077 optlen > sizeof(*tokens) * MAX_DONTNEED_TOKENS) in sock_devmem_dontneed() 1080 num_tokens = optlen / sizeof(*tokens); in sock_devmem_dontneed() 1081 tokens = kvmalloc_array(num_tokens, sizeof(*tokens), GFP_KERNEL); in sock_devmem_dontneed() 1082 if (!tokens) in sock_devmem_dontneed() 1085 if (copy_from_sockptr(tokens, optval, optlen)) { in sock_devmem_dontneed() 1086 kvfree(tokens); in sock_devmem_dontneed() 1092 for (j = 0; j < tokens[i].token_count; j++) { in sock_devmem_dontneed() 1097 &sk->sk_user_frags, tokens[i].token_start + j); in sock_devmem_dontneed() [all …]
|
/linux/Documentation/arch/powerpc/ |
H A D | cxlflash.rst | 165 There are a few important aspects regarding the "tokens" (context id 168 - These tokens are only valid for the process under which they 173 - These tokens are only valid for the lifetime of the context and 175 destroyed, the tokens are to be considered stale and subsequent 199 - At any time, a close on fd2 will invalidate the tokens. Applications 288 success, all "tokens" which had been provided to the user from the
|
/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/fs/orangefs/ |
H A D | super.c | 32 static const match_table_t tokens = { variable 75 token = match_token(p, tokens, args); in parse_mount_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()
|
/linux/fs/omfs/ |
H A D | inode.c | 391 static const match_table_t tokens = { variable 414 token = match_token(p, tokens, args); in parse_options()
|