/Zephyr-latest/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-latest/scripts/dts/python-devicetree/src/devicetree/ |
D | dtlib.py | 1088 tok = self._next_token() 1090 if tok.val == "/": 1096 elif tok.id in (_T.LABEL, _T.REF): 1100 if tok.id == _T.LABEL: 1101 label = tok.val 1102 tok = self._next_token() 1103 if tok.id != _T.REF: 1109 node = self._ref2node(tok.val) 1117 elif tok.id == _T.DEL_NODE: 1121 elif tok.id == _T.OMIT_IF_NO_REF: [all …]
|
/Zephyr-latest/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-latest/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-latest/scripts/pylib/twister/ |
D | expr_parser.py | 315 for tok in iter(lex.token, None): 316 print(tok.type, tok.value)
|
/Zephyr-latest/tests/lib/c_lib/common/src/ |
D | main.c | 1035 char *state, *tok, buf[64+1] = {0}; in test_strtok_r_do() local 1039 tok = strtok_r(buf, sep, &state); in test_strtok_r_do() 1040 while (tok && len < tlen) { in test_strtok_r_do() 1041 if (strcmp(tok, toks[len]) != 0) { in test_strtok_r_do() 1044 tok = strtok_r(NULL, sep, &state); in test_strtok_r_do()
|
/Zephyr-latest/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-latest/include/zephyr/data/ |
D | json.h | 65 struct json_token tok; member
|