/linux-master/net/netfilter/ |
H A D | nft_limit.c | 20 u64 tokens; member in struct:nft_limit 34 u64 now, tokens; local 39 tokens = priv->limit->tokens + now - priv->limit->last; 40 if (tokens > priv->tokens_max) 41 tokens = priv->tokens_max; 44 delta = tokens - cost; 46 priv->limit->tokens = delta; 50 priv->limit->tokens = tokens; 61 u64 unit, tokens, rate_with_burst; local [all...] |
/linux-master/drivers/net/wireguard/ |
H A D | ratelimiter.c | 27 u64 last_time_ns, tokens, ip; member in struct:ratelimiter_entry 113 u64 now, tokens; local 117 * the burst as part of the maximum tokens, rather than 122 tokens = min_t(u64, TOKEN_MAX, 123 entry->tokens + now - 126 ret = tokens >= PACKET_COST; 127 entry->tokens = ret ? tokens - PACKET_COST : tokens; 147 entry->tokens [all...] |
/linux-master/scripts/ |
H A D | asn1_compiler.c | 348 struct token *tokens; local 352 /* Assume we're going to have half as many tokens as we have 355 token_list = tokens = calloc((end - buffer) / 2, sizeof(struct token)); 356 if (!tokens) { 407 tokens[tix].line = lineno; 410 /* Handle string tokens */ 420 tokens[tix].size = q - p; 423 tokens[tix].content = malloc(tokens[tix].size + 1); 424 if (!tokens[ti [all...] |
/linux-master/tools/arch/x86/kcpuid/ |
H A D | kcpuid.c | 311 char *tokens[6]; local 325 tokens[i] = strtok(str, ","); 326 if (!tokens[i]) 330 tokens[5] = strtok(str, "\n"); 331 if (!tokens[5]) 335 index = strtoull(tokens[0], NULL, 0); 354 sub = strtoul(tokens[1], NULL, 0); 359 buf = tokens[2]; 376 buf = tokens[3]; 387 strcpy(bdesc->simp, tokens[ [all...] |
/linux-master/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; local 72 /* No tokens to match */ 76 tokens = token_list[token_id].tokens; 77 if (!tokens) { 78 dev_err(scomp->dev, "Invalid tokens for token id: %d\n", token_id); 87 if (tokens[i].token == tuples[j].token) { 88 switch (tokens[ 448 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) argument 502 const struct sof_topology_token *tokens; local 615 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) argument 661 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) argument 712 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) argument 798 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) argument [all...] |
/linux-master/arch/um/drivers/ |
H A D | vector_user.h | 54 char *tokens[MAXVARGS]; member in struct:arglist
|
/linux-master/drivers/platform/x86/dell/ |
H A D | dell-smbios.h | 56 struct calling_interface_token tokens[]; member in struct:calling_interface_structure
|
H A D | dell-smbios-base.c | 47 /* generally tokens are allowed, but may be further filtered or 82 /* tokens that are whitelisted for given capabilities */ 90 /* tokens that are explicitly blacklisted */ 212 /* tokens enabled ? */ 356 int tokens = (dm->length-11)/sizeof(struct calling_interface_token)-1; local 371 new_da_tokens = krealloc(da_tokens, (da_num_tokens + tokens) * 379 memcpy(da_tokens+da_num_tokens, table->tokens, 380 sizeof(struct calling_interface_token) * tokens); 382 da_num_tokens += tokens; 463 .name = "tokens" [all...] |
/linux-master/lib/ |
H A D | ts_fsm.c | 35 struct ts_fsm_token tokens[]; member in struct:ts_fsm 160 strict = fsm->tokens[0].recur != TS_FSM_HEAD_IGNORE; 166 cur = &fsm->tokens[tok_idx]; 169 next = &fsm->tokens[tok_idx + 1]; 261 struct ts_fsm_token *tokens = (struct ts_fsm_token *) pattern; local 262 unsigned int ntokens = len / sizeof(*tokens); 272 struct ts_fsm_token *t = &tokens[i]; 289 memcpy(fsm->tokens, pattern, len); 292 struct ts_fsm_token *t = &fsm->tokens[i]; 305 return fsm->tokens; [all...] |
/linux-master/fs/hfsplus/ |
H A D | options.c | 31 static const match_table_t tokens = { variable 85 token = match_token(p, tokens, args); 113 token = match_token(p, tokens, args);
|
/linux-master/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 in struct:meson_i2c 124 i2c->tokens[0] = 0; 125 i2c->tokens[1] = 0; 132 i2c->tokens[0] |= (token & 0xf) << (i2c->num_tokens * 4); 134 i2c->tokens[1] |= (token & 0xf) << ((i2c->num_tokens % 8) * 4); 274 writel(i2c->tokens[0], i2c->regs + REG_TOK_LIST0); 275 writel(i2c->tokens[ [all...] |
/linux-master/drivers/mtd/ubi/ |
H A D | block.c | 103 char *tokens[UBIBLOCK_PARAM_COUNT]; local 127 tokens[i] = strsep(&pbuf, ","); 130 if (tokens[1]) { 132 ret = kstrtoint(tokens[0], 10, ¶m->ubi_num); 137 ret = kstrtoint(tokens[1], 10, ¶m->vol_id); 140 strcpy(param->name, tokens[1]); 145 strcpy(param->name, tokens[0]);
|
H A D | build.c | 1474 char *tokens[MTD_PARAM_MAX_COUNT], *token; local 1504 tokens[i] = strsep(&pbuf, ","); 1512 strcpy(&p->name[0], tokens[0]); 1514 token = tokens[1]; 1522 token = tokens[2]; 1533 token = tokens[3]; 1545 token = tokens[4]; 1557 token = tokens[5];
|
/linux-master/Documentation/sphinx/ |
H A D | kernel_include.py | 170 tokens = NumberLines([([], text)], startline, endline) 171 for classes, value in tokens:
|
/linux-master/net/sched/ |
H A D | sch_tbf.c | 108 s64 tokens; /* Current number of B tokens */ member in struct:tbf_sched_data 109 s64 ptokens; /* Current number of P tokens */ 291 toks += q->tokens; 302 q->tokens = toks; 335 q->tokens = q->buffer; 463 q->tokens = q->buffer;
|
H A D | sch_htb.c | 120 s64 tokens, ctokens;/* current number of tokens */ member in struct:htb_class 527 * at cl->{c,}tokens == 0 but there can rather be hysteresis of 541 if ((toks = (cl->tokens + *diff)) >= htb_hiwater(cl)) 659 s64 toks = diff + cl->tokens; 667 cl->tokens = toks; 713 cl->tokens += diff; /* we moved t_c; update tokens */ 1341 cl->xstats.tokens = clamp_t(s64, PSCHED_NS2TICKS(cl->tokens), [all...] |
/linux-master/fs/hfs/ |
H A D | super.c | 193 static const match_table_t tokens = { variable 246 token = match_token(p, tokens, args);
|
/linux-master/fs/devpts/ |
H A D | inode.c | 90 static const match_table_t tokens = { variable 256 token = match_token(p, tokens, args);
|
/linux-master/fs/pstore/ |
H A D | inode.c | 232 static const match_table_t tokens = { variable 252 token = match_token(p, tokens, args);
|
/linux-master/fs/adfs/ |
H A D | super.c | 120 static const match_table_t tokens = { variable 144 token = match_token(p, tokens, args);
|
/linux-master/fs/ecryptfs/ |
H A D | main.c | 166 static const match_table_t tokens = { variable 279 token = match_token(p, tokens, args);
|
/linux-master/net/9p/ |
H A D | trans_rdma.c | 141 static match_table_t tokens = { variable 203 token = match_token(p, tokens, args);
|
/linux-master/drivers/target/ |
H A D | target_core_rd.c | 536 static match_table_t tokens = { variable 561 token = match_token(ptr, tokens, args);
|
/linux-master/fs/omfs/ |
H A D | inode.c | 391 static const match_table_t tokens = { variable 414 token = match_token(p, tokens, args);
|
/linux-master/fs/qnx6/ |
H A D | inode.c | 225 static const match_table_t tokens = { variable 244 token = match_token(p, tokens, args);
|