/kernel/linux/linux-6.6/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() 35 /// Converts tokens int 43 let mut tokens; global() variables 68 let mut tokens = ::std::vec::Vec::new(); global() variables 77 let mut tokens = ::std::vec::Vec::new(); global() variables 86 let mut tokens = ::std::vec::Vec::new(); global() variables [all...] |
H A D | paste.rs | 5 fn concat(tokens: &[TokenTree], group_span: Span) -> TokenTree { in concat() 6 let mut tokens = tokens.iter(); in concat() variables 10 match tokens.next() { in concat() 21 let Some(TokenTree::Ident(ident)) = tokens.next() else { in concat() 49 pub(crate) fn expand(tokens: &mut Vec<TokenTree>) { 50 for token in tokens.iter_mut() { 64 // Recursively expand tokens inside the group 74 for i in (0..tokens.len().saturating_sub(3)).rev() { 77 (&tokens[ [all...] |
H A D | vtable.rs | 8 let mut tokens: Vec<_> = ts.into_iter().collect(); variables 11 let is_trait = tokens 24 let body = match tokens.pop() { 94 tokens.push(TokenTree::Group(Group::new(Delimiter::Brace, new_body))); 95 tokens.into_iter().collect()
|
H A D | lib.rs | 343 let mut tokens = input.into_iter().collect(); in paste() variables 344 paste::expand(&mut tokens); in paste() 345 tokens.into_iter().collect() in paste()
|
/kernel/linux/linux-5.10/tools/perf/pmu-events/ |
H A D | jsmn.c | 32 jsmntok_t *tokens, size_t num_tokens) in jsmn_alloc_token() 38 tok = &tokens[parser->toknext++]; in jsmn_alloc_token() 61 jsmntok_t *tokens, size_t num_tokens) in jsmn_parse_primitive() 103 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse_primitive() 118 jsmntok_t *tokens, size_t num_tokens) in jsmn_parse_string() 131 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse_string() 171 * Parse JSON string and fill tokens. 174 jsmntok_t *tokens, unsigned int num_tokens) in jsmn_parse() 188 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse() 192 tokens[parse in jsmn_parse() 31 jsmn_alloc_token(jsmn_parser *parser, jsmntok_t *tokens, size_t num_tokens) jsmn_alloc_token() argument 59 jsmn_parse_primitive(jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, size_t num_tokens) jsmn_parse_primitive() argument 116 jsmn_parse_string(jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, size_t num_tokens) jsmn_parse_string() argument 173 jsmn_parse(jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, unsigned int num_tokens) jsmn_parse() argument [all...] |
H A D | json.c | 80 * Parse json file using jsmn. Return array of tokens, 86 jsmntok_t *tokens; in parse_json() local 95 tokens = malloc(sz); in parse_json() 96 if (!tokens) in parse_json() 99 res = jsmn_parse(&parser, *map, *size, tokens, in parse_json() 107 return tokens; in parse_json() 109 free(tokens); in parse_json() 115 void free_json(char *map, size_t size, jsmntok_t *tokens) in free_json() argument 117 free(tokens); in free_json()
|
H A D | jevents.c | 284 if (!(t)->start && (t) > tokens) \ 533 jsmntok_t *tokens, *tok; in json_events() local 541 tokens = parse_json(fn, &map, &size, &len); in json_events() 542 if (!tokens) in json_events() 544 EXPECT(tokens->type == JSMN_ARRAY, tokens, "expected top level array"); in json_events() 545 tok = tokens + 1; in json_events() 546 for (i = 0; i < tokens->size; i++) { in json_events() 704 EXPECT(tok - tokens == len, tok, "unexpected objects at end"); in json_events() 707 free_json(map, size, tokens); in json_events() [all...] |
/kernel/linux/linux-5.10/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...] |
/kernel/linux/linux-6.6/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...] |
/kernel/linux/linux-6.6/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...] |
/kernel/linux/linux-5.10/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...] |
/kernel/linux/linux-6.6/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...] |
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nft_limit.c | 20 u64 tokens; member 30 u64 now, tokens; in nft_limit_eval() local 35 tokens = limit->tokens + now - limit->last; in nft_limit_eval() 36 if (tokens > limit->tokens_max) in nft_limit_eval() 37 tokens = limit->tokens_max; in nft_limit_eval() 40 delta = tokens - cost; in nft_limit_eval() 42 limit->tokens = delta; in nft_limit_eval() 46 limit->tokens = tokens; in nft_limit_eval() 57 u64 unit, tokens; nft_limit_init() local [all...] |
/kernel/linux/linux-6.6/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() 446 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 500 const struct sof_topology_token *tokens; sof_copy_tuples() local 613 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 659 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 710 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 796 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...] |
/kernel/linux/linux-6.6/tools/arch/x86/kcpuid/ |
H A D | kcpuid.c | 311 char *tokens[6]; in parse_line() local 325 tokens[i] = strtok(str, ","); in parse_line() 326 if (!tokens[i]) in parse_line() 330 tokens[5] = strtok(str, "\n"); in parse_line() 331 if (!tokens[5]) in parse_line() 335 index = strtoull(tokens[0], NULL, 0); in parse_line() 354 sub = strtoul(tokens[1], NULL, 0); in parse_line() 359 buf = tokens[2]; in parse_line() 376 buf = tokens[3]; in parse_line() 387 strcpy(bdesc->simp, tokens[ in parse_line() [all...] |
/kernel/linux/linux-5.10/tools/lib/api/fs/ |
H A D | cgroup.c | 14 char mountpoint[PATH_MAX + 1], tokens[PATH_MAX + 1], type[PATH_MAX + 1]; in cgroupfs_find_mountpoint() local 32 mountpoint, type, tokens) == 3) { in cgroupfs_find_mountpoint() 36 token = strtok_r(tokens, ",", &saved_ptr); in cgroupfs_find_mountpoint()
|
/kernel/linux/linux-5.10/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...] |
/kernel/linux/linux-6.6/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...] |
/kernel/linux/linux-5.10/include/linux/wimax/ |
H A D | debug.h | 459 unsigned level, tokens; in d_parse_params() local 477 tokens = sscanf(token, "%s\n%u", submodule, &level); in d_parse_params() 480 if (tokens == 2) in d_parse_params() 485 "SUBMODULE:LEVEL (%d tokens)\n", in d_parse_params() 486 tag, token, tokens); in d_parse_params()
|
/kernel/linux/linux-5.10/drivers/mtd/ubi/ |
H A D | block.c | 107 char *tokens[UBIBLOCK_PARAM_COUNT]; in ubiblock_set_param() local 131 tokens[i] = strsep(&pbuf, ","); in ubiblock_set_param() 134 if (tokens[1]) { in ubiblock_set_param() 136 ret = kstrtoint(tokens[0], 10, ¶m->ubi_num); in ubiblock_set_param() 141 ret = kstrtoint(tokens[1], 10, ¶m->vol_id); in ubiblock_set_param() 144 strcpy(param->name, tokens[1]); in ubiblock_set_param() 149 strcpy(param->name, tokens[0]); in ubiblock_set_param()
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
H A D | i2c-meson.c | 84 * @tokens: Sequence of tokens to be written to the device 85 * @num_tokens: Number of tokens 103 u32 tokens[2]; member 122 i2c->tokens[0] = 0; in meson_i2c_reset_tokens() 123 i2c->tokens[1] = 0; in meson_i2c_reset_tokens() 130 i2c->tokens[0] |= (token & 0xf) << (i2c->num_tokens * 4); in meson_i2c_add_token() 132 i2c->tokens[1] |= (token & 0xf) << ((i2c->num_tokens % 8) * 4); in meson_i2c_add_token() 224 writel(i2c->tokens[0], i2c->regs + REG_TOK_LIST0); in meson_i2c_prepare_xfer() 225 writel(i2c->tokens[ in meson_i2c_prepare_xfer() [all...] |
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/drivers/i2c/busses/ |
H A D | i2c-meson.c | 82 * @tokens: Sequence of tokens to be written to the device 83 * @num_tokens: Number of tokens 101 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[ in meson_i2c_prepare_xfer() [all...] |
/kernel/linux/linux-5.10/fs/hfsplus/ |
H A D | options.c | 31 static const match_table_t tokens = { variable 85 token = match_token(p, tokens, args); in hfsplus_parse_options_remount() 113 token = match_token(p, tokens, args); in hfsplus_parse_options()
|
/kernel/linux/linux-6.6/fs/hfsplus/ |
H A D | options.c | 31 static const match_table_t tokens = { variable 85 token = match_token(p, tokens, args); in hfsplus_parse_options_remount() 113 token = match_token(p, tokens, args); in hfsplus_parse_options()
|