Home
last modified time | relevance | path

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

123

/linux-6.1.9/scripts/
Dasn1_compiler.c348 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-6.1.9/net/netfilter/
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; in nft_limit_init() local
83 tokens = div64_u64(priv->nsecs, priv->rate) * priv->burst; in nft_limit_init()
[all …]
/linux-6.1.9/sound/soc/sof/
Dtopology.c59 const struct sof_topology_token *tokens; in sof_update_ipc_object() local
71 tokens = token_list[token_id].tokens; in sof_update_ipc_object()
72 if (!tokens) { in sof_update_ipc_object()
82 if (tokens[i].token == tuples[j].token) { in sof_update_ipc_object()
83 switch (tokens[i].type) { in sof_update_ipc_object()
86 u32 *val = (u32 *)((u8 *)object + tokens[i].offset + in sof_update_ipc_object()
95 u16 *val = (u16 *)((u8 *)object + tokens[i].offset + in sof_update_ipc_object()
103 if (!tokens[i].get_token) { in sof_update_ipc_object()
106 tokens[i].token, token_list[token_id].name); in sof_update_ipc_object()
110 tokens[i].get_token((void *)tuples[j].value.s, object, in sof_update_ipc_object()
[all …]
/linux-6.1.9/drivers/net/wireguard/
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.1.9/tools/arch/x86/kcpuid/
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-6.1.9/Documentation/ABI/testing/
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.1.9/lib/
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.1.9/drivers/mtd/ubi/
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()
Dbuild.c1377 char *tokens[MTD_PARAM_MAX_COUNT], *token; in ubi_mtd_param_parse() local
1407 tokens[i] = strsep(&pbuf, ","); in ubi_mtd_param_parse()
1415 strcpy(&p->name[0], tokens[0]); in ubi_mtd_param_parse()
1417 token = tokens[1]; in ubi_mtd_param_parse()
1425 token = tokens[2]; in ubi_mtd_param_parse()
1436 token = tokens[3]; in ubi_mtd_param_parse()
/linux-6.1.9/drivers/i2c/busses/
Di2c-meson.c102 u32 tokens[2]; member
125 i2c->tokens[0] = 0; in meson_i2c_reset_tokens()
126 i2c->tokens[1] = 0; in meson_i2c_reset_tokens()
133 i2c->tokens[0] |= (token & 0xf) << (i2c->num_tokens * 4); in meson_i2c_add_token()
135 i2c->tokens[1] |= (token & 0xf) << ((i2c->num_tokens % 8) * 4); in meson_i2c_add_token()
275 writel(i2c->tokens[0], i2c->regs + REG_TOK_LIST0); in meson_i2c_prepare_xfer()
276 writel(i2c->tokens[1], i2c->regs + REG_TOK_LIST1); in meson_i2c_prepare_xfer()
/linux-6.1.9/fs/hfsplus/
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-6.1.9/drivers/platform/x86/dell/
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()
Ddell-smbios.h54 struct calling_interface_token tokens[]; member
/linux-6.1.9/net/sched/
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()
334 q->tokens = q->buffer; in tbf_reset()
462 q->tokens = q->buffer; in tbf_change()
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()
1335 cl->xstats.tokens = clamp_t(s64, PSCHED_NS2TICKS(cl->tokens), in htb_dump_class_stats()
1520 parent->tokens = parent->buffer; in htb_parent_to_leaf()
1983 cl->tokens = PSCHED_TICKS2NS(hopt->buffer); in htb_change_class()
/linux-6.1.9/Documentation/sphinx/
Dkernel_include.py170 tokens = NumberLines([([], text)], startline, endline)
171 for classes, value in tokens:
/linux-6.1.9/arch/um/drivers/
Dvector_user.h54 char *tokens[MAXVARGS]; member
/linux-6.1.9/Documentation/filesystems/nfs/
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.1.9/fs/autofs/
Dinode.c117 static const match_table_t tokens = { variable
160 token = match_token(p, tokens, args); in parse_options()
/linux-6.1.9/fs/hfs/
Dsuper.c193 static const match_table_t tokens = { variable
246 token = match_token(p, tokens, args); in parse_options()
/linux-6.1.9/fs/pstore/
Dinode.c235 static const match_table_t tokens = { variable
255 token = match_token(p, tokens, args); in parse_options()
/linux-6.1.9/fs/adfs/
Dsuper.c120 static const match_table_t tokens = { variable
144 token = match_token(p, tokens, args); in parse_options()
/linux-6.1.9/fs/tracefs/
Dinode.c155 static const match_table_t tokens = { variable
253 token = match_token(p, tokens, args); in tracefs_parse_options()
/linux-6.1.9/fs/devpts/
Dinode.c109 static const match_table_t tokens = { variable
275 token = match_token(p, tokens, args); in parse_mount_options()
/linux-6.1.9/fs/9p/
Dv9fs.c53 static const match_table_t tokens = { variable
195 token = match_token(p, tokens, args); in v9fs_parse_options()

123