Home
last modified time | relevance | path

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

1234

/linux/tools/perf/pmu-events/
A Djsmn.c33 jsmntok_t *tokens, size_t num_tokens) in jsmn_alloc_token() argument
39 tok = &tokens[parser->toknext++]; in jsmn_alloc_token()
62 jsmntok_t *tokens, size_t num_tokens) in jsmn_parse_primitive() argument
119 jsmntok_t *tokens, size_t num_tokens) in jsmn_parse_string() argument
205 tokens[parser->toksuper].size++; in jsmn_parse()
218 token = &tokens[i]; in jsmn_parse()
231 token = &tokens[i]; in jsmn_parse()
244 r = jsmn_parse_string(parser, js, len, tokens, in jsmn_parse()
249 tokens[parser->toksuper].size++; in jsmn_parse()
303 tokens[parser->toksuper].size++; in jsmn_parse()
[all …]
A Djson.c86 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()
A Djevents.c305 if (!(t)->start && (t) > tokens) \
557 jsmntok_t *tokens, *tok; in json_events() local
565 tokens = parse_json(fn, &map, &size, &len); in json_events()
566 if (!tokens) in json_events()
568 EXPECT(tokens->type == JSMN_ARRAY, tokens, "expected top level array"); in json_events()
569 tok = tokens + 1; in json_events()
570 for (i = 0; i < tokens->size; i++) { in json_events()
742 EXPECT(tok - tokens == len, tok, "unexpected objects at end"); in json_events()
745 free_json(map, size, tokens); in json_events()
A Djsmn.h64 jsmntok_t *tokens, unsigned int num_tokens);
A Djson.h8 void free_json(char *map, size_t size, jsmntok_t *tokens);
/linux/net/netfilter/
A Dnft_limit.c20 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; in nft_limit_init() local
89 limit->tokens = tokens; in nft_limit_init()
[all …]
/linux/scripts/
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/drivers/net/wireguard/
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/tools/arch/x86/kcpuid/
A Dkcpuid.c307 char *tokens[6]; in parse_line() local
321 tokens[i] = strtok(str, ","); in parse_line()
322 if (!tokens[i]) in parse_line()
326 tokens[5] = strtok(str, "\n"); in parse_line()
327 if (!tokens[5]) in parse_line()
331 index = strtoull(tokens[0], NULL, 0); in parse_line()
350 sub = strtoul(tokens[1], NULL, 0); in parse_line()
355 buf = tokens[2]; in parse_line()
372 buf = tokens[3]; in parse_line()
383 strcpy(bdesc->simp, tokens[4]); in parse_line()
[all …]
/linux/lib/
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/Documentation/ABI/testing/
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/drivers/i2c/busses/
A Di2c-meson.c103 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[1], i2c->regs + REG_TOK_LIST1); in meson_i2c_prepare_xfer()
/linux/drivers/mtd/ubi/
A Dblock.c107 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, &param->ubi_num); in ubiblock_set_param()
141 ret = kstrtoint(tokens[1], 10, &param->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()
A Dbuild.c1378 char *tokens[MTD_PARAM_MAX_COUNT], *token; in ubi_mtd_param_parse() local
1408 tokens[i] = strsep(&pbuf, ","); in ubi_mtd_param_parse()
1416 strcpy(&p->name[0], tokens[0]); in ubi_mtd_param_parse()
1418 token = tokens[1]; in ubi_mtd_param_parse()
1426 token = tokens[2]; in ubi_mtd_param_parse()
1437 token = tokens[3]; in ubi_mtd_param_parse()
/linux/fs/hfsplus/
A Doptions.c31 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()
/linux/sound/soc/sof/
A Dtopology.c808 const struct sof_topology_token *tokens, in sof_parse_uuid_tokens() argument
832 tokens[j].get_token(elem, object, in sof_parse_uuid_tokens()
833 offset + tokens[j].offset, in sof_parse_uuid_tokens()
834 tokens[j].size); in sof_parse_uuid_tokens()
869 tokens[j].get_token(elem, object, in sof_parse_string_tokens()
870 offset + tokens[j].offset, in sof_parse_string_tokens()
871 tokens[j].size); in sof_parse_string_tokens()
909 tokens[j].get_token(elem, object, in sof_parse_word_tokens()
910 offset + tokens[j].offset, in sof_parse_word_tokens()
911 tokens[j].size); in sof_parse_word_tokens()
[all …]
/linux/drivers/platform/x86/dell/
A Ddell-smbios-base.c356 int tokens = (dm->length-11)/sizeof(struct calling_interface_token)-1; in parse_da_table() local
371 new_da_tokens = krealloc(da_tokens, (da_num_tokens + tokens) * in parse_da_table()
379 memcpy(da_tokens+da_num_tokens, table->tokens, in parse_da_table()
380 sizeof(struct calling_interface_token) * tokens); in parse_da_table()
382 da_num_tokens += tokens; in parse_da_table()
A Ddell-smbios.h54 struct calling_interface_token tokens[]; member
/linux/net/sched/
A Dsch_tbf.c107 s64 tokens; /* Current number of B tokens */ member
290 toks += q->tokens; in tbf_dequeue()
301 q->tokens = toks; in tbf_dequeue()
336 q->tokens = q->buffer; in tbf_reset()
463 q->tokens = q->buffer; in tbf_change()
A Dsch_htb.c121 s64 tokens, ctokens;/* current number of tokens */ member
535 if ((toks = (cl->tokens + *diff)) >= htb_hiwater(cl)) in htb_class_mode()
653 s64 toks = diff + cl->tokens; in htb_accnt_tokens()
661 cl->tokens = toks; in htb_accnt_tokens()
707 cl->tokens += diff; /* we moved t_c; update tokens */ in htb_charge_class()
1356 cl->xstats.tokens = clamp_t(s64, PSCHED_NS2TICKS(cl->tokens), in htb_dump_class_stats()
1541 parent->tokens = parent->buffer; in htb_parent_to_leaf()
1980 cl->tokens = PSCHED_TICKS2NS(hopt->buffer); in htb_change_class()
/linux/Documentation/sphinx/
A Dkernel_include.py167 tokens = NumberLines([([], text)], startline, endline)
168 for classes, value in tokens:
/linux/arch/um/drivers/
A Dvector_user.h54 char *tokens[MAXVARGS]; member
/linux/Documentation/filesystems/nfs/
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/fs/autofs/
A Dinode.c116 static const match_table_t tokens = { variable
159 token = match_token(p, tokens, args); in parse_options()
/linux/Documentation/ABI/stable/
A Dsysfs-driver-dma-idxd48 Description: The total number of bandwidth tokens supported by this device.
49 The bandwidth tokens represent resources within the DSA
122 Description: The maximum number of bandwidth tokens that may be in use at

Completed in 48 milliseconds

1234