/Zephyr-Core-3.7.0/lib/utils/ |
D | json.c | 26 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/ |
D | dtlib.py | 1086 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/ |
D | shell.c | 262 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/ |
D | main.c | 86 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/ |
D | expr_parser.py | 333 for tok in iter(lex.token, None): 334 print(tok.type, tok.value)
|
/Zephyr-Core-3.7.0/tests/lib/c_lib/common/src/ |
D | main.c | 1036 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/ |
D | osdp_cp.c | 100 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/ |
D | json.h | 63 struct json_token tok; member
|