Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 781) sorted by relevance

12345678910>>...32

/Zephyr-latest/tests/drivers/gnss/gnss_parse/src/
Dmain.c12 const char *str; member
18 {.str = "10", .base = 10, .value = 10},
19 {.str = "1", .base = 10, .value = 1},
20 {.str = "002", .base = 10, .value = 2},
21 {.str = "-10", .base = 10, .value = -10},
22 {.str = "-1", .base = 10, .value = -1},
23 {.str = "-002", .base = 10, .value = -2},
24 {.str = "30000000", .base = 10, .value = 30000000},
25 {.str = "-30000000", .base = 10, .value = -30000000},
26 {.str = "00", .base = 16, .value = 0},
[all …]
/Zephyr-latest/drivers/gnss/
Dgnss_parse.c20 int gnss_parse_dec_to_nano(const char *str, int64_t *nano) in gnss_parse_dec_to_nano() argument
28 __ASSERT(str != NULL, "str argument must be provided"); in gnss_parse_dec_to_nano()
32 while (str[pos] != '\0') { in gnss_parse_dec_to_nano()
34 if (str[pos] == '.') { in gnss_parse_dec_to_nano()
47 start = str[0] == '-' ? 1 : 0; in gnss_parse_dec_to_nano()
53 if (str[pos] < '0' || str[pos] > '9') { in gnss_parse_dec_to_nano()
58 sum += (str[pos] - '0') * increment; in gnss_parse_dec_to_nano()
79 while (str[pos] != '\0') { in gnss_parse_dec_to_nano()
81 if (str[pos] < '0' || str[pos] > '9') { in gnss_parse_dec_to_nano()
86 sum += (str[pos] - '0') * increment; in gnss_parse_dec_to_nano()
[all …]
/Zephyr-latest/tests/kernel/threads/thread_apis/src/
Dtest_kthread_for_each.c36 char *str = (char *)user_data; in thread_callback() local
39 TC_PRINT("%s: Newly added thread found\n", str); in thread_callback()
41 str, thread, thread->base.prio); in thread_callback()
50 char *str = (char *)user_data; in thread_callback_unlocked() local
62 TC_PRINT("%s: Newly added thread found\n", str); in thread_callback_unlocked()
64 str, thread, thread->base.prio); in thread_callback_unlocked()
69 TC_PRINT("%s: Newly added thread in callback found\n", str); in thread_callback_unlocked()
71 str, thread, thread->base.prio); in thread_callback_unlocked()
226 const char *str; in ZTEST() local
230 str = k_thread_state_str(tid, state_str, sizeof(state_str)); in ZTEST()
[all …]
/Zephyr-latest/include/zephyr/sys/
Dhash_function.h41 typedef uint32_t (*sys_hash_func32_t)(const void *str, size_t n);
58 static inline uint32_t sys_hash32_identity(const void *str, size_t n) in sys_hash32_identity() argument
62 return *(uint8_t *)str; in sys_hash32_identity()
64 return *(uint16_t *)str; in sys_hash32_identity()
66 return *(uint32_t *)str; in sys_hash32_identity()
68 return (uint32_t)(*(uint64_t *)str); in sys_hash32_identity()
95 uint32_t sys_hash32_djb2(const void *str, size_t n);
109 uint32_t sys_hash32_murmur3(const void *str, size_t n);
119 static inline uint32_t sys_hash32(const void *str, size_t n) in sys_hash32() argument
122 return sys_hash32_identity(str, n); in sys_hash32()
[all …]
/Zephyr-latest/scripts/west_commands/tests/
Dtest_stm32cubeprogrammer.py25 "PROGRAMFILES(X86)": str(PROGRAMFILESX86_PATH),
75 "cli_path": str(CLI_PATH),
78 str(CLI_PATH),
99 "cli_path": str(CLI_PATH),
102 str(CLI_PATH),
124 "cli_path": str(CLI_PATH),
127 str(CLI_PATH),
148 "cli_path": str(CLI_PATH),
151 str(CLI_PATH),
172 "cli_path": str(CLI_PATH),
[all …]
/Zephyr-latest/tests/bluetooth/uuid/src/
Dtest_bt_uuid_to_str.c17 static bool is_null_terminated(char *str, size_t size) in is_null_terminated() argument
19 return strnlen(str, size) < size; in is_null_terminated()
24 char str[BT_UUID_STR_LEN]; in result_is_null_terminated() local
26 memset(str, 1, sizeof(str)); in result_is_null_terminated()
27 bt_uuid_to_str(uuid, str, sizeof(str)); in result_is_null_terminated()
28 zassert_true(is_null_terminated(str, sizeof(str)), "Result is not null-terminated."); in result_is_null_terminated()
33 char str[BT_UUID_STR_LEN] = {}; in result_str_is() local
35 bt_uuid_to_str(uuid, str, sizeof(str)); in result_str_is()
36 zassume_true(is_null_terminated(str, sizeof(str)), "Result is not a string."); in result_str_is()
37 zassert_true((strcmp(str, expected_str) == 0), in result_str_is()
[all …]
/Zephyr-latest/subsys/usb/device_next/
Dusbd_desc.c49 new_nd->str.idx = tmp_nd->str.idx + 1; in desc_add_and_update_idx()
51 LOG_DBG("Add %u behind %u", new_nd->str.idx, tmp_nd->str.idx); in desc_add_and_update_idx()
58 new_nd->str.idx = tmp_nd->str.idx + 1; in desc_add_and_update_idx()
60 LOG_DBG("Add %u before %u", new_nd->str.idx, next_nd->str.idx); in desc_add_and_update_idx()
65 if (tmp_nd->str.idx != (next_nd->str.idx - 1)) { in desc_add_and_update_idx()
67 new_nd->str.idx = tmp_nd->str.idx + 1; in desc_add_and_update_idx()
70 tmp_nd->str.idx, next_nd->str.idx, new_nd->str.idx); in desc_add_and_update_idx()
76 new_nd->str.idx = 0; in desc_add_and_update_idx()
78 LOG_DBG("Added first descriptor node (usage type %u)", new_nd->str.utype); in desc_add_and_update_idx()
91 if (desc_nd->str.idx == idx) { in usbd_get_descriptor()
[all …]
/Zephyr-latest/subsys/bluetooth/common/
Dbt_str.c22 static char str[129]; in bt_hex() local
26 len = MIN(len, (sizeof(str) - 1) / 2); in bt_hex()
29 str[i * 2] = hex[b[i] >> 4]; in bt_hex()
30 str[i * 2 + 1] = hex[b[i] & 0xf]; in bt_hex()
33 str[i * 2] = '\0'; in bt_hex()
35 return str; in bt_hex()
40 static char str[BT_ADDR_STR_LEN]; in bt_addr_str() local
42 bt_addr_to_str(addr, str, sizeof(str)); in bt_addr_str()
44 return str; in bt_addr_str()
49 static char str[BT_ADDR_LE_STR_LEN]; in bt_addr_le_str() local
[all …]
/Zephyr-latest/tests/net/lib/lwm2m/interop/pytest/
Dleshan.py22 def __init__(self, url: str): argument
57 def get(self, path: str): argument
65 …def put_raw(self, path: str, data: str | dict | None = None, headers: dict | None = None, params: … argument
70 def put(self, path: str, data: str | dict, uri_options: str = ''): argument
76 def post(self, path: str, data: str | dict | None = None): argument
89 def delete_raw(self, path: str): argument
94 def delete(self, endpoint: str, path: str): argument
98 def execute(self, endpoint: str, path: str): argument
102 def write(self, endpoint: str, path: str, value: bool | int | str): argument
111 def write_attributes(self, endpoint: str, path: str, attributes: dict): argument
[all …]
/Zephyr-latest/modules/mbedtls/
Ddebug.c13 void zephyr_mbedtls_debug(void *ctx, int level, const char *file, int line, const char *str) in zephyr_mbedtls_debug() argument
20 if (!file || !str) { in zephyr_mbedtls_debug()
33 str_len = strlen(str); in zephyr_mbedtls_debug()
37 if (str_len > 0 && str[str_len - 1] == '\n') { in zephyr_mbedtls_debug()
45 LOG_ERR("%s:%04d: %.*s", basename, line, str_len, str); in zephyr_mbedtls_debug()
48 LOG_WRN("%s:%04d: %.*s", basename, line, str_len, str); in zephyr_mbedtls_debug()
51 LOG_INF("%s:%04d: %.*s", basename, line, str_len, str); in zephyr_mbedtls_debug()
54 LOG_DBG("%s:%04d: %.*s", basename, line, str_len, str); in zephyr_mbedtls_debug()
/Zephyr-latest/subsys/bluetooth/
DKconfig.logging18 module-str = "Bluetooth"
33 module-str = "Bluetooth HCI driver"
37 module-str = "Bluetooth Resolvable Private Address (RPA)"
45 module-str = "Bluetooth Encrypted Advertising Data"
51 module-str = "Bluetooth Cryptographic Toolbox"
60 module-str = "Bluetooth Attribute Protocol (ATT)"
64 module-str = "Bluetooth Generic Attribute Profile (GATT)"
68 module-str = "Bluetooth L2CAP"
73 module-str = "Bluetooth Direction Finding"
79 module-str = "Bluetooth storage"
[all …]
/Zephyr-latest/scripts/west_commands/runners/
Dnxp_s32dbg.py28 conn_str: str = 's32dbg'
32 reset_type: str | None = 'default'
42 core_name: str, argument
43 soc_name: str, argument
44 soc_family_name: str, argument
46 s32ds_path: str | None = None,
47 tool_opt: list[str] | None = None) -> None:
49 self.elf_file: str = runner_cfg.elf_file or ''
51 self.core_name: str = core_name
52 self.soc_name: str = soc_name
[all …]
Dstm32cubeprogrammer.py24 _RESET_MODES: ClassVar[dict[str, str]] = {
34 port: str, argument
36 reset_mode: str | None,
38 conn_modifiers: str | None,
42 extload: str | None,
43 tool_opt: list[str], argument
63 self._extload = ['-el', str(p / extload)]
67 self._tool_opt: list[str] = list()
73 os.environ["LD_LIBRARY_PATH"] = str(self._cli.parent / ".." / "lib")
138 type=str,
[all …]
/Zephyr-latest/samples/subsys/logging/syst/
DREADME.rst99 [ 0.020000] <dbg> syst: s str static str c str
100 [ 0.020000] <dbg> syst: d str dynamic str
101 …[ 0.020000] <dbg> syst: mixed str dynamic str --- dynamic str --- another dynamic str --- anoth…
102 [ 0.020000] <dbg> syst: mixed c/s ! static str dynamic str static str !
160 s str static str c str
161 d str dynamic str
162 mixed str dynamic str --- dynamic str --- another dynamic str --- another dynamic str
163 mixed c/s ! static str dynamic str static str !
183 s str static str c str
184 d str dynamic str
[all …]
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/
Dtwister_harness_config.py19 type: str
23 platform: str = ''
24 serial: str = ''
26 runner: str = ''
27 runner_params: list[str] = field(default_factory=list, repr=False)
28 id: str = ''
29 product: str = ''
30 serial_pty: str = ''
32 west_flash_extra_args: list[str] = field(default_factory=list, repr=False)
33 name: str = ''
[all …]
/Zephyr-latest/scripts/release/
Dlist_devicetree_bindings_changes.py24 sys.path.insert(0, str(SCRIPTS / 'dts' / 'python-devicetree' / 'src'))
34 compatible: str
35 on_bus: Optional[str]
54 vnds: List[str]
55 vnd2added: Dict[str, Compat2Binding]
56 vnd2removed: Dict[str, Compat2Binding]
57 vnd2changes: Dict[str, Binding2Changes]
61 space: str
62 start: List[str]
63 end: List[str]
[all …]
/Zephyr-latest/tests/subsys/logging/log_api/src/
Dmain.c163 char str[128]; in ZTEST() local
180 snprintk(str, sizeof(str), in ZTEST()
183 snprintk(str, sizeof(str), TEST_MSG_0, ll, ull, i); in ZTEST()
186 mock_log_frontend_record(LOG_CURRENT_MODULE_ID(), LOG_LEVEL_DBG, str); in ZTEST()
189 exp_timestamp++, str); in ZTEST()
198 snprintk(str, sizeof(str), TEST_MSG_1, (double)f, 100, d); in ZTEST()
199 mock_log_frontend_record(LOG_CURRENT_MODULE_ID(), LOG_LEVEL_INF, str); in ZTEST()
202 exp_timestamp++, str); in ZTEST()
207 snprintk(str, sizeof(str), "wrn %s", dstr); in ZTEST()
208 mock_log_frontend_record(LOG_CURRENT_MODULE_ID(), LOG_LEVEL_WRN, str); in ZTEST()
[all …]
Dmock_frontend.c46 const char *str, in mock_log_frontend_generic_record() argument
55 (log_timestamp_t)UINT32_MAX, str, data, data_len); in mock_log_frontend_generic_record()
73 char *str; member
81 s->str[s->cnt++] = (char)c; in out()
129 char str[128]; in log_frontend_msg() local
130 struct test_str s = { .str = str }; in log_frontend_msg()
134 str[len] = '\0'; in log_frontend_msg()
137 zassert_equal(strcmp(str, exp_msg->str), 0, "Got \"%s\", Expected:\"%s\"", in log_frontend_msg()
138 str, exp_msg->str); in log_frontend_msg()
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/helpers/
Dutils.py15 def find_in_config(config_file: Path | str, config_key: str) -> str: argument
28 def match_lines(output_lines: list[str], searched_lines: list[str]) -> None: argument
34 def match_no_lines(output_lines: list[str], searched_lines: list[str]) -> None: argument
Dshell.py26 self, device: DeviceAdapter, prompt: str = 'uart:~$', timeout: float | None = None argument
29 self.prompt: str = prompt
54 self, command: str, timeout: float | None = None, print_output: bool = True argument
55 ) -> list[str]:
68 lines: list[str] = []
83 def get_filtered_output(self, command_lines: list[str]) -> list[str]: argument
112 name: str
113 version: str
114 image_size: str
115 magic: str = 'unset'
[all …]
/Zephyr-latest/lib/libc/minimal/source/stdout/
Dsprintf.c28 int snprintf(char *ZRESTRICT str, size_t len, in snprintf() argument
38 str = &dummy; /* write final NUL to dummy, can't change *s */ in snprintf()
41 p.ptr = str; in snprintf()
52 int sprintf(char *ZRESTRICT str, const char *ZRESTRICT format, ...) in sprintf() argument
59 p.ptr = str; in sprintf()
70 int vsnprintf(char *ZRESTRICT str, size_t len, in vsnprintf() argument
78 str = &dummy; /* write final NUL to dummy, can't change * *s */ in vsnprintf()
81 p.ptr = str; in vsnprintf()
90 int vsprintf(char *ZRESTRICT str, const char *ZRESTRICT format, in vsprintf() argument
96 p.ptr = str; in vsprintf()
/Zephyr-latest/subsys/net/lib/shell/
Dallocs.c25 const char *str; in allocs_cb() local
28 str = "used"; in allocs_cb()
31 str = "free"; in allocs_cb()
33 str = "avail"; in allocs_cb()
44 pkt, atomic_get(&pkt->atomic_ref), str, in allocs_cb()
49 pkt, str, net_pkt_slab2str(pkt->slab), in allocs_cb()
63 str, net_pkt_pool2str(pool), func_alloc, in allocs_cb()
67 buf, str, net_pkt_pool2str(pool), in allocs_cb()
/Zephyr-latest/subsys/shell/
Dshell_help.c19 static void formatted_text_print(const struct shell *sh, const char *str, in formatted_text_print() argument
25 if (str == NULL) { in formatted_text_print()
35 while (isspace((int) *(str + offset)) != 0) { in formatted_text_print()
42 length = z_shell_strlen(str) - offset; in formatted_text_print()
47 if (*(str + offset + idx) == '\n') { in formatted_text_print()
49 z_shell_write(sh, str + offset, idx); in formatted_text_print()
59 z_shell_raw_fprintf(sh->fprintf_ctx, str + offset); in formatted_text_print()
72 if (isspace((int) (*(str + offset + idx))) != 0) { in formatted_text_print()
74 if (*(str + offset + idx) == '\n') { in formatted_text_print()
92 z_shell_write(sh, str + offset, length); in formatted_text_print()
[all …]
/Zephyr-latest/tests/bluetooth/host/conn/mocks/
Dbt_str.c14 static char str[BT_ADDR_LE_STR_LEN]; in bt_addr_le_str() local
16 bt_addr_le_to_str(addr, str, sizeof(str)); in bt_addr_le_str()
18 return str; in bt_addr_le_str()
/Zephyr-latest/scripts/dts/python-devicetree/src/devicetree/
Dedtlib.py164 def __init__(self, path: Optional[str], fname2path: Dict[str, str], argument
195 self.path: Optional[str] = path
196 self._fname2path: Dict[str, str] = fname2path
228 self.prop2specs: Dict[str, 'PropertySpec'] = {}
231 self.specifier2cells: Dict[str, List[str]] = {}
236 def __repr__(self) -> str:
245 def description(self) -> Optional[str]:
250 def compatible(self) -> Optional[str]:
255 def bus(self) -> Union[None, str, List[str]]:
260 def buses(self) -> List[str]:
[all …]

12345678910>>...32