Home
last modified time | relevance | path

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

/Zephyr-Core-3.4.0/lib/os/
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.4.0/drivers/pcie/host/
Dshell.c117 char *tok, *state; in get_bdf() local
119 tok = strtok_r(str, ":", &state); in get_bdf()
120 if (tok == NULL) { in get_bdf()
124 bus = strtoul(tok, NULL, 16); in get_bdf()
126 tok = strtok_r(NULL, ".", &state); in get_bdf()
127 if (tok == NULL) { in get_bdf()
131 dev = strtoul(tok, NULL, 16); in get_bdf()
133 tok = strtok_r(NULL, ".", &state); in get_bdf()
134 if (tok == NULL) { in get_bdf()
138 func = strtoul(tok, NULL, 16); in get_bdf()
/Zephyr-Core-3.4.0/scripts/dts/python-devicetree/src/devicetree/
Ddtlib.py1080 tok = self._next_token()
1082 if tok.val == "/":
1088 elif tok.id in (_T.LABEL, _T.REF):
1092 if tok.id == _T.LABEL:
1093 label = tok.val
1094 tok = self._next_token()
1095 if tok.id != _T.REF:
1101 node = self._ref2node(tok.val)
1109 elif tok.id == _T.DEL_NODE:
1113 elif tok.id == _T.OMIT_IF_NO_REF:
[all …]
/Zephyr-Core-3.4.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.4.0/scripts/pylib/twister/
Dexpr_parser.py333 for tok in iter(lex.token, None):
334 print(tok.type, tok.value)
/Zephyr-Core-3.4.0/tests/lib/c_lib/src/
Dmain.c1020 char *state, *tok, buf[64+1] = {0}; in test_strtok_r_do() local
1024 tok = strtok_r(buf, sep, &state); in test_strtok_r_do()
1025 while (tok && len < tlen) { in test_strtok_r_do()
1026 if (strcmp(tok, toks[len]) != 0) { in test_strtok_r_do()
1029 tok = strtok_r(NULL, sep, &state); in test_strtok_r_do()
/Zephyr-Core-3.4.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.4.0/include/zephyr/data/
Djson.h66 struct json_token tok; member