/Zephyr-Core-3.4.0/lib/os/ |
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.4.0/drivers/pcie/host/ |
D | shell.c | 117 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/ |
D | dtlib.py | 1080 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/ |
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.4.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.4.0/tests/lib/c_lib/src/ |
D | main.c | 1020 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/ |
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.4.0/include/zephyr/data/ |
D | json.h | 66 struct json_token tok; member
|