Home
last modified time | relevance | path

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

12345678

/OK3568_Linux_fs/kernel/tools/perf/pmu-events/
H A Djsmn.c32 jsmntok_t *tokens, size_t num_tokens) in jsmn_alloc_token() argument
38 tok = &tokens[parser->toknext++]; in jsmn_alloc_token()
61 jsmntok_t *tokens, size_t num_tokens) in jsmn_parse_primitive() argument
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() argument
131 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse_string()
174 jsmntok_t *tokens, unsigned int num_tokens) in jsmn_parse() argument
188 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse()
192 tokens[parser->toksuper].size++; in jsmn_parse()
201 token = &tokens[i]; in jsmn_parse()
[all …]
H 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()
H A Djevents.c284 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()
/OK3568_Linux_fs/yocto/poky/scripts/pybootchartgui/pybootchartgui/tests/
H A Dparser_test.py49 tokens = line.split();
52 print(tokens[0:4])
56 self.assertEqual(tokens[0], str(process.pid // 1000))
57 self.assertEqual(tokens[1], str(process.cmd))
58 self.assertEqual(tokens[2], str(process.ppid // 1000))
59 self.assertEqual(tokens[3], str(len(process.samples)))
71 tokens = line.split('\t')
78 self.assertEqual(tokens[0], str(sample.time))
79 self.assert_(floatEq(float(tokens[1]), sample.read))
80 self.assert_(floatEq(float(tokens[2]), sample.write))
[all …]
H A Dprocess_tree_test.py43 tokens = expected.split('\t')
44 self.assertEqual(int(tokens[0]), actual.pid // 1000)
45 self.assertEqual(tokens[1], actual.cmd)
46 self.assertEqual(long(tokens[2]), 10 * actual.start_time)
47 self.assert_(long(tokens[3]) - 10 * actual.duration < 5, "duration")
48 self.assertEqual(int(tokens[4]), len(actual.child_list))
49 self.assertEqual(int(tokens[5]), len(actual.samples))
/OK3568_Linux_fs/kernel/net/netfilter/
H 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
79 tokens = div64_u64(limit->nsecs, limit->rate) * limit->burst; in nft_limit_init()
[all …]
/OK3568_Linux_fs/kernel/scripts/
H A 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 …]
/OK3568_Linux_fs/yocto/meta-qt5/recipes-qt/qt5/qtwebkit/
H A D0001-Offlineasm-warnings-with-newer-Ruby-versions-https-b.patch28 firstCodeOrigin = @tokens[@idx].codeOrigin
31 - if (@idx == @tokens.length and not final) or (final and @tokens[@idx] =~ final)
33 - elsif @tokens[@idx].is_a? Annotation
34 + if @tokens[@idx].is_a? Annotation
39 list << Instruction.new(codeOrigin, annotationOpcode, [], @tokens[@idx].string)
42 + elsif (@idx == @tokens.length and not final) or (final and @tokens[@idx] =~ final)
44 elsif @tokens[@idx] == "\n"
/OK3568_Linux_fs/kernel/drivers/net/wireguard/
H 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()
/OK3568_Linux_fs/yocto/poky/scripts/pybootchartgui/pybootchartgui/
H A Dparsing.py301 tokens = line.split(' ')
302 if len(tokens) < 21:
305 offset = [index for index, token in enumerate(tokens[1:]) if token[-1] == ')'][0]
306 …pid, cmd, state, ppid = int(tokens[0]), ' '.join(tokens[1:2+offset]), tokens[2+offset], int(tokens
307 … userCpu, sysCpu, stime = int(tokens[13+offset]), int(tokens[14+offset]), int(tokens[21+offset])
356 tokens = line.split(' ')
357 if len(tokens) != 6:
360 opid, ppid, cmd = int(tokens[0]), int(tokens[1]), tokens[2]
361 … cpu_ns, blkio_delay_ns, swapin_delay_ns = long(tokens[-3]), long(tokens[-2]), long(tokens[-1]),
430 tokens = lines[0].split()
[all …]
/OK3568_Linux_fs/u-boot/tools/buildman/
H A Dkconfiglib.py648 tokens = self.end_line_tokens
649 tokens.unget_all()
661 tokens = self._tokenize(line, False, line_feeder.filename,
664 t0 = tokens.get_next()
675 sym = tokens.get_next()
691 kconfig_file = tokens.get_next()
715 dep_expr = self._parse_expr(tokens, None, line,
730 comment.text = tokens.get_next()
745 menu.title = tokens.get_next()
759 name = tokens.get_next()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/geometry/io/wkt/
H A Dread.hpp512 inline bool initialize(tokenizer const& tokens, in initialize() argument
518 it = tokens.begin(); in initialize()
519 end = tokens.end(); in initialize()
561 tokenizer tokens(wkt, boost::char_separator<char>(" ", ",()")); in apply()
563 if (initialize<Geometry>(tokens, PrefixPolicy::apply(), wkt, it, end)) in apply()
579 tokenizer tokens(wkt, boost::char_separator<char>(" ", ",()")); in apply()
581 if (initialize<MultiGeometry>(tokens, PrefixPolicy::apply(), wkt, it, end)) in apply()
626 tokenizer tokens(wkt, boost::char_separator<char>(" ", ",()")); in apply()
629 if (initialize<MultiGeometry>(tokens, PrefixPolicy::apply(), wkt, it, end)) in apply()
685 tokenizer tokens(wkt, boost::char_separator<char>(" ", ",()")); in apply()
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/share/info/
H A Dcppinternals.info104 returns preprocessing tokens individually, not a line at a time.
108 lexing new tokens, handling directives, and expanding macros as
127 tokens directly, multiple-include optimization, or conditional block
151 start of every non-directive line with tokens on it. Clients cannot
153 macro, and the tokens of a macro expansion do not have the 'BOL' flag
266 separate ':' tokens and almost certainly a syntax error. Such cases are
274 storage holding the spellings of such tokens remains until the client
280 When the preprocessor was changed to return pointers to tokens, one
289 Another example is that, after reading the first few tokens of a
302 preprocessor lex all tokens on a line consecutively into a token buffer,
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/share/info/
H A Dcppinternals.info104 returns preprocessing tokens individually, not a line at a time.
108 lexing new tokens, handling directives, and expanding macros as
127 tokens directly, multiple-include optimization, or conditional block
151 start of every non-directive line with tokens on it. Clients cannot
153 macro, and the tokens of a macro expansion do not have the 'BOL' flag
266 separate ':' tokens and almost certainly a syntax error. Such cases are
274 storage holding the spellings of such tokens remains until the client
280 When the preprocessor was changed to return pointers to tokens, one
289 Another example is that, after reading the first few tokens of a
302 preprocessor lex all tokens on a line consecutively into a token buffer,
[all …]
/OK3568_Linux_fs/yocto/poky/meta/lib/
H A Dbuildstats.py82 for tokens in relevant_tokens:
84 diskdata[0] += int(tokens[5])
86 diskdata[1] += int(tokens[9])
88 diskdata[2] += int(tokens[12])
114 tokens = data.split(b'\n', 1)[0].split()
115 times = [ int(token) for token in tokens[1:] ]
/OK3568_Linux_fs/u-boot/lib/avb/libavb/
H A Davb_cmdline.c114 additional_substitutions->tokens[n], in avb_sub_cmdline()
417 avb_free(cmdline_subst->tokens[i]); in avb_free_cmdline_subst_list()
450 out_cmdline_subst->tokens[list_index] = in avb_add_root_digest_substitution()
452 if (out_cmdline_subst->tokens[list_index] == NULL) { in avb_add_root_digest_substitution()
455 avb_uppercase(out_cmdline_subst->tokens[list_index]); in avb_add_root_digest_substitution()
467 if (out_cmdline_subst->tokens[list_index]) { in avb_add_root_digest_substitution()
468 avb_free(out_cmdline_subst->tokens[list_index]); in avb_add_root_digest_substitution()
/OK3568_Linux_fs/kernel/lib/
H 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()
/OK3568_Linux_fs/kernel/tools/lib/api/fs/
H A Dcgroup.c14 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()
/OK3568_Linux_fs/kernel/Documentation/ABI/testing/
H 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
/OK3568_Linux_fs/kernel/include/linux/wimax/
H A Ddebug.h459 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()
486 tag, token, tokens); in d_parse_params()
/OK3568_Linux_fs/kernel/drivers/i2c/busses/
H 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()
/OK3568_Linux_fs/kernel/drivers/mtd/ubi/
H 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()
/OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/pysh/
H A Dpyshlex.py820 tokens = [ variable
831 tokens += _OPERATORS.values()
833 tokens += _RESERVEDS.values()
875 tokens = []
880 tokens.append(token)
882 tokens = [(t.value, t.type) for t in tokens]
883 return tokens, untouched
/OK3568_Linux_fs/kernel/fs/hfsplus/
H 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()
/OK3568_Linux_fs/yocto/poky/bitbake/lib/ply/
H A Dlex.py548 self.tokens = []
575 tokens = self.ldict.get("tokens",None)
576 if not tokens:
581 if not isinstance(tokens,(list, tuple)):
586 if not tokens:
591 self.tokens = tokens
596 for n in self.tokens:
771 if not tokname in self.tokens and tokname.find("ignore_") < 0:
905 debuglog.info("lex: tokens = %r", linfo.tokens)
911 for n in linfo.tokens:

12345678