Home
last modified time | relevance | path

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

123456

/openbmc/qemu/tests/plugin/
H A Dmem.c86 g_auto(GStrv) tokens = g_strsplit(opt, "=", 2); in qemu_plugin_install()
88 if (g_strcmp0(tokens[0], "haddr") == 0) { in qemu_plugin_install()
89 if (!qemu_plugin_bool_parse(tokens[0], tokens[1], &do_haddr)) { in qemu_plugin_install()
93 } else if (g_strcmp0(tokens[0], "track") == 0) { in qemu_plugin_install()
94 if (g_strcmp0(tokens[1], "r") == 0) { in qemu_plugin_install()
96 } else if (g_strcmp0(tokens[1], "w") == 0) { in qemu_plugin_install()
98 } else if (g_strcmp0(tokens[1], "rw") == 0) { in qemu_plugin_install()
104 } else if (g_strcmp0(tokens[0], "inline") == 0) { in qemu_plugin_install()
105 if (!qemu_plugin_bool_parse(tokens[0], tokens[1], &do_inline)) { in qemu_plugin_install()
109 } else if (g_strcmp0(tokens[0], "callback") == 0) { in qemu_plugin_install()
[all …]
H A Dbb.c107 g_auto(GStrv) tokens = g_strsplit(opt, "=", 2); in qemu_plugin_install()
108 if (g_strcmp0(tokens[0], "inline") == 0) { in qemu_plugin_install()
109 if (!qemu_plugin_bool_parse(tokens[0], tokens[1], &do_inline)) { in qemu_plugin_install()
113 } else if (g_strcmp0(tokens[0], "idle") == 0) { in qemu_plugin_install()
114 if (!qemu_plugin_bool_parse(tokens[0], tokens[1], &idle_report)) { in qemu_plugin_install()
H A Dinsn.c192 g_auto(GStrv) tokens = g_strsplit(opt, "=", 2); in qemu_plugin_install()
193 if (g_strcmp0(tokens[0], "inline") == 0) { in qemu_plugin_install()
194 if (!qemu_plugin_bool_parse(tokens[0], tokens[1], &do_inline)) { in qemu_plugin_install()
198 } else if (g_strcmp0(tokens[0], "sizes") == 0) { in qemu_plugin_install()
199 if (!qemu_plugin_bool_parse(tokens[0], tokens[1], &do_size)) { in qemu_plugin_install()
203 } else if (g_strcmp0(tokens[0], "match") == 0) { in qemu_plugin_install()
204 parse_match(tokens[1]); in qemu_plugin_install()
/openbmc/linux/rust/macros/
H A Dquote.rs6 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()
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()
43 let mut tokens; localVariable
46 tokens = ::std::vec::Vec::new();
[all …]
H A Dpaste.rs5 fn concat(tokens: &[TokenTree], group_span: Span) -> TokenTree { in concat()
6 let mut tokens = tokens.iter(); in concat() localVariable
10 match tokens.next() { in concat()
49 pub(crate) fn expand(tokens: &mut Vec<TokenTree>) { in expand()
50 for token in tokens.iter_mut() { in expand()
74 for i in (0..tokens.len().saturating_sub(3)).rev() { in expand()
77 (&tokens[i + 1], &tokens[i + 2]), in expand()
81 match &tokens[i + 3] { in expand()
83 tokens.splice(i + 3..i + 4, group.stream()); in expand()
88 match &tokens[i] { in expand()
[all …]
H A Dvtable.rs8 let mut tokens: Vec<_> = ts.into_iter().collect(); in vtable() localVariable
11 let is_trait = tokens in vtable()
24 let body = match tokens.pop() { in vtable()
94 tokens.push(TokenTree::Group(Group::new(Delimiter::Brace, new_body))); in vtable()
95 tokens.into_iter().collect() in vtable()
H A Dlib.rs331 let mut tokens = input.into_iter().collect(); in paste() localVariable
332 paste::expand(&mut tokens); in paste()
333 tokens.into_iter().collect() in paste()
/openbmc/openbmc/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))
71 tokens = line.split('\t')
78 self.assertEqual(tokens[0], str(sample.time))
79 self.assert_(floatEq(float(tokens[1]), sample.read))
81 self.assert_(floatEq(float(tokens[3]), sample.util))
91 tokens = line.split('\t')
99 self.assert_(floatEq(float(tokens[2]), sample.sys))
[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))
/openbmc/qemu/contrib/plugins/
H A Dhotpages.c172 g_auto(GStrv) tokens = g_strsplit(opt, "=", -1); in qemu_plugin_install()
174 if (g_strcmp0(tokens[0], "sortby") == 0) { in qemu_plugin_install()
175 if (g_strcmp0(tokens[1], "reads") == 0) { in qemu_plugin_install()
177 } else if (g_strcmp0(tokens[1], "writes") == 0) { in qemu_plugin_install()
179 } else if (g_strcmp0(tokens[1], "address") == 0) { in qemu_plugin_install()
182 fprintf(stderr, "invalid value to sortby: %s\n", tokens[1]); in qemu_plugin_install()
185 } else if (g_strcmp0(tokens[0], "io") == 0) { in qemu_plugin_install()
186 if (!qemu_plugin_bool_parse(tokens[0], tokens[1], &track_io)) { in qemu_plugin_install()
190 } else if (g_strcmp0(tokens[0], "pagesize") == 0) { in qemu_plugin_install()
191 page_size = g_ascii_strtoull(tokens[1], NULL, 10); in qemu_plugin_install()
H A Dcache.c777 l1_iblksize = STRTOLL(tokens[1]); in qemu_plugin_install()
779 l1_iassoc = STRTOLL(tokens[1]); in qemu_plugin_install()
781 l1_icachesize = STRTOLL(tokens[1]); in qemu_plugin_install()
783 l1_dblksize = STRTOLL(tokens[1]); in qemu_plugin_install()
785 l1_dassoc = STRTOLL(tokens[1]); in qemu_plugin_install()
789 limit = STRTOLL(tokens[1]); in qemu_plugin_install()
791 cores = STRTOLL(tokens[1]); in qemu_plugin_install()
794 l2_cachesize = STRTOLL(tokens[1]); in qemu_plugin_install()
797 l2_blksize = STRTOLL(tokens[1]); in qemu_plugin_install()
800 l2_assoc = STRTOLL(tokens[1]); in qemu_plugin_install()
[all …]
H A Dhwprofile.c266 g_auto(GStrv) tokens = g_strsplit(opt, "=", 2); in qemu_plugin_install()
268 if (g_strcmp0(tokens[0], "track") == 0) { in qemu_plugin_install()
269 if (g_strcmp0(tokens[1], "read") == 0) { in qemu_plugin_install()
271 } else if (g_strcmp0(tokens[1], "write") == 0) { in qemu_plugin_install()
274 fprintf(stderr, "invalid value for track: %s\n", tokens[1]); in qemu_plugin_install()
277 } else if (g_strcmp0(tokens[0], "pattern") == 0) { in qemu_plugin_install()
278 if (!qemu_plugin_bool_parse(tokens[0], tokens[1], &pattern)) { in qemu_plugin_install()
282 } else if (g_strcmp0(tokens[0], "source") == 0) { in qemu_plugin_install()
283 if (!qemu_plugin_bool_parse(tokens[0], tokens[1], &source)) { in qemu_plugin_install()
287 } else if (g_strcmp0(tokens[0], "match") == 0) { in qemu_plugin_install()
[all …]
H A Dhowvec.c338 g_auto(GStrv) tokens = g_strsplit(p, "=", -1); in qemu_plugin_install()
339 if (g_strcmp0(tokens[0], "inline") == 0) { in qemu_plugin_install()
340 if (!qemu_plugin_bool_parse(tokens[0], tokens[1], &do_inline)) { in qemu_plugin_install()
344 } else if (g_strcmp0(tokens[0], "verbose") == 0) { in qemu_plugin_install()
345 if (!qemu_plugin_bool_parse(tokens[0], tokens[1], &verbose)) { in qemu_plugin_install()
349 } else if (g_strcmp0(tokens[0], "count") == 0) { in qemu_plugin_install()
350 char *value = tokens[1]; in qemu_plugin_install()
/openbmc/qemu/qobject/
H A Djson-streamer.c26 while ((token = g_queue_pop_head(&parser->tokens))) { in json_message_free_tokens()
56 if (g_queue_is_empty(&parser->tokens)) { in json_message_process_token()
59 json = json_parser_parse(&parser->tokens, parser->ap, &err); in json_message_process_token()
73 if (g_queue_get_length(&parser->tokens) + 1 > MAX_TOKEN_COUNT) { in json_message_process_token()
85 g_queue_push_tail(&parser->tokens, token); in json_message_process_token()
92 json = json_parser_parse(&parser->tokens, parser->ap, &err); in json_message_process_token()
112 g_queue_init(&parser->tokens); in json_message_parser_init()
127 assert(g_queue_is_empty(&parser->tokens)); in json_message_parser_flush()
/openbmc/linux/scripts/
H 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 …]
/openbmc/qemu/scripts/
H A Dundefsym.py17 tokens = line.split(b' ')
18 if len(tokens) >= 2:
19 if from_staticlib and tokens[1] == b'U':
21 if not from_staticlib and tokens[1] != b'U':
23 new_line = b'-Wl,-u,' + tokens[0]
/openbmc/slpd-lite/
H A Dslp_service_info.hpp23 std::array<std::string, 3> tokens; in operator >>() local
30 tokens[count] = line.substr(delimtrPrevPos, in operator >>()
46 data.name = tokens[0]; in operator >>()
47 data.type = tokens[1]; in operator >>()
48 data.port = tokens[2]; in operator >>()
/openbmc/linux/net/netfilter/
H A 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, rate_with_burst; in nft_limit_init() local
100 tokens = div64_u64(tmp, priv->rate); in nft_limit_init()
[all …]
/openbmc/linux/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()
/openbmc/openbmc/poky/meta/lib/
H A Dbuildstats.py106 for tokens in relevant_tokens:
108 diskdata[0] += int(tokens[5])
110 diskdata[1] += int(tokens[9])
112 diskdata[2] += int(tokens[12])
138 tokens = data.split(b'\n', 1)[0].split()
139 times = [ int(token) for token in tokens[1:] ]
161 tokens = data.split(b'\n', 1)[0].split()
162 avg10 = float(tokens[1].split(b'=')[1])
163 avg60 = float(tokens[2].split(b'=')[1])
164 avg300 = float(tokens[3].split(b'=')[1])
[all …]
/openbmc/openbmc/poky/scripts/pybootchartgui/pybootchartgui/
H A Dparsing.py304 tokens = line.split(' ')
305 if len(tokens) < 21:
309 …pid, cmd, state, ppid = int(tokens[0]), ' '.join(tokens[1:2+offset]), tokens[2+offset], int(tokens
310 … userCpu, sysCpu, stime = int(tokens[13+offset]), int(tokens[14+offset]), int(tokens[21+offset])
359 tokens = line.split(' ')
360 if len(tokens) != 6:
363 opid, ppid, cmd = int(tokens[0]), int(tokens[1]), tokens[2]
364 … cpu_ns, blkio_delay_ns, swapin_delay_ns = long(tokens[-3]), long(tokens[-2]), long(tokens[-1]),
433 tokens = lines[0].split()
476 disk, rsect, wsect, use = tokens[2], int(tokens[5]), int(tokens[9]), int(tokens[12])
[all …]
/openbmc/linux/sound/soc/sof/
H A Dtopology.c76 tokens = token_list[token_id].tokens; in sof_update_ipc_object()
77 if (!tokens) { in sof_update_ipc_object()
88 switch (tokens[i].type) { in sof_update_ipc_object()
108 if (!tokens[i].get_token) { in sof_update_ipc_object()
116 tokens[i].offset + offset); in sof_update_ipc_object()
470 tokens[j].get_token(elem, object, in sof_parse_uuid_tokens()
471 offset + tokens[j].offset); in sof_parse_uuid_tokens()
515 tokens = token_list[token_id].tokens; in sof_copy_tuples()
518 if (!tokens) { in sof_copy_tuples()
637 ret = tokens[j].get_token(elem->string, object, offset + tokens[j].offset); in sof_parse_string_tokens()
[all …]
/openbmc/u-boot/tools/buildman/
H A Dkconfiglib.py653 tokens.unget_all()
668 t0 = tokens.get_next()
679 sym = tokens.get_next()
854 t0 = tokens.get_next()
951 low = tokens.get_next()
968 if tokens.check(T_ENV) and tokens.check(T_EQUAL):
1233 tokens = []
1256 tokens = [keyword]
1263 append = tokens.append
1372 previous = tokens[-1]
[all …]
/openbmc/linux/tools/arch/x86/kcpuid/
H A Dkcpuid.c311 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[4]); in parse_line()
[all …]
/openbmc/linux/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

123456