Home
last modified time | relevance | path

Searched refs:tok (Results 1 – 8 of 8) sorted by relevance

/Zephyr-Core-3.7.0/lib/utils/
Djson.c26 static bool lexer_consume(struct json_lexer *lex, struct json_token *tok, in lexer_consume() argument
29 if (lex->tok.type == empty_token) { in lexer_consume()
33 *tok = lex->tok; in lexer_consume()
34 lex->tok.type = empty_token; in lexer_consume()
39 static bool lexer_next(struct json_lexer *lex, struct json_token *tok) in lexer_next() argument
42 if (lexer_consume(lex, tok, JSON_TOK_NONE)) { in lexer_next()
49 return lexer_consume(lex, tok, JSON_TOK_EOF); in lexer_next()
56 lex->tok.type = token; in emit()
57 lex->tok.start = lex->start; in emit()
58 lex->tok.end = lex->pos; in emit()
[all …]
/Zephyr-Core-3.7.0/scripts/dts/python-devicetree/src/devicetree/
Ddtlib.py1086 tok = self._next_token()
1088 if tok.val == "/":
1094 elif tok.id in (_T.LABEL, _T.REF):
1098 if tok.id == _T.LABEL:
1099 label = tok.val
1100 tok = self._next_token()
1101 if tok.id != _T.REF:
1107 node = self._ref2node(tok.val)
1115 elif tok.id == _T.DEL_NODE:
1119 elif tok.id == _T.OMIT_IF_NO_REF:
[all …]
/Zephyr-Core-3.7.0/drivers/pcie/host/
Dshell.c262 char *tok, *state; in get_bdf() local
264 tok = strtok_r(str, ":", &state); in get_bdf()
265 if (tok == NULL) { in get_bdf()
269 bus = strtoul(tok, NULL, 16); in get_bdf()
271 tok = strtok_r(NULL, ".", &state); in get_bdf()
272 if (tok == NULL) { in get_bdf()
276 dev = strtoul(tok, NULL, 16); in get_bdf()
278 tok = strtok_r(NULL, ".", &state); in get_bdf()
279 if (tok == NULL) { in get_bdf()
283 func = strtoul(tok, NULL, 16); in get_bdf()
/Zephyr-Core-3.7.0/tests/lib/heap/src/
Dmain.c86 size_t tok = fill_token(p, sz); in fill_block() local
91 ((size_t *)p)[1] = tok; in fill_block()
95 ((size_t *)p)[sz / sizeof(size_t) - 1] = tok; in fill_block()
103 size_t tok = fill_token(p, sz); in check_fill() local
108 zassert_true(((size_t *)p)[1] == tok, ""); in check_fill()
112 zassert_true(((size_t *)p)[sz / sizeof(size_t) - 1] == tok, ""); in check_fill()
/Zephyr-Core-3.7.0/scripts/pylib/twister/
Dexpr_parser.py333 for tok in iter(lex.token, None):
334 print(tok.type, tok.value)
/Zephyr-Core-3.7.0/tests/lib/c_lib/common/src/
Dmain.c1036 char *state, *tok, buf[64+1] = {0}; in test_strtok_r_do() local
1040 tok = strtok_r(buf, sep, &state); in test_strtok_r_do()
1041 while (tok && len < tlen) { in test_strtok_r_do()
1042 if (strcmp(tok, toks[len]) != 0) { in test_strtok_r_do()
1045 tok = strtok_r(NULL, sep, &state); in test_strtok_r_do()
/Zephyr-Core-3.7.0/subsys/mgmt/osdp/src/
Dosdp_cp.c100 char *tok, *s1, *s2, addr_buf[32 * CONFIG_OSDP_NUM_CONNECTED_PD]; in osdp_extract_address() local
104 tok = strtok_r(addr_buf, ", ", &s1); in osdp_extract_address()
105 while (tok && pd_offset < CONFIG_OSDP_NUM_CONNECTED_PD) { in osdp_extract_address()
106 addr = strtoul(tok, &s2, 10); in osdp_extract_address()
112 tok = strtok_r(NULL, ", ", &s1); in osdp_extract_address()
/Zephyr-Core-3.7.0/include/zephyr/data/
Djson.h63 struct json_token tok; member