/Zephyr-Core-3.5.0/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/ |
D | storage.c | 125 if (!strncmp(key, "rc", key_len)) { in ps_set() 130 if (!strncmp(key, "gdtt", key_len)) { in ps_set() 134 if (!strncmp(key, "gpo", key_len)) { in ps_set() 139 if (!strncmp(key, "ld", key_len)) { in ps_set() 144 if (!strncmp(key, "td", key_len)) { in ps_set() 149 if (!strncmp(key, "dd", key_len)) { in ps_set() 154 if (!strncmp(key, "ll", key_len)) { in ps_set() 159 if (!strncmp(key, "llt", key_len)) { in ps_set() 164 if (!strncmp(key, "tlt", key_len)) { in ps_set() 169 if (!strncmp(key, "dlt", key_len)) { in ps_set() [all …]
|
/Zephyr-Core-3.5.0/tests/posix/common/src/ |
D | uname.c | 15 zassert_ok(strncmp(info.sysname, "Zephyr", sizeof(info.sysname))); in ZTEST() 16 zassert_ok(strncmp(info.machine, CONFIG_ARCH, sizeof(info.machine))); in ZTEST()
|
/Zephyr-Core-3.5.0/subsys/bluetooth/controller/ll_sw/ |
D | ll_settings.c | 54 if (!strncmp(name, "company", nlen)) { in ctlr_set() 64 if (!strncmp(name, "subver", nlen)) { in ctlr_set() 77 if (!strncmp(name, "smi_tx", nlen)) { in ctlr_set()
|
/Zephyr-Core-3.5.0/subsys/bluetooth/services/ |
D | dis.c | 153 if (!strncmp(name, "manuf", nlen)) { in dis_set() 165 if (!strncmp(name, "model", nlen)) { in dis_set() 178 if (!strncmp(name, "serial", nlen)) { in dis_set() 193 if (!strncmp(name, "fw", nlen)) { in dis_set() 207 if (!strncmp(name, "hw", nlen)) { in dis_set() 221 if (!strncmp(name, "sw", nlen)) { in dis_set()
|
/Zephyr-Core-3.5.0/tests/net/socket/socketpair/src/ |
D | happy_path.c | 49 zassert_true(strncmp(expected_msg, actual_msg, in happy_path() 74 zassert_true(strncmp(expected_msg, actual_msg, in happy_path() 102 zassert_true(strncmp(expected_msg, actual_msg, in happy_path()
|
/Zephyr-Core-3.5.0/tests/unit/winstream/ |
D | main.c | 71 zassert_true(strncmp(readback, msg, ws->len / 2) == 0, ""); in ZTEST() 80 zassert_true(strncmp(readback, msg, ws->len / 2) == 0, ""); in ZTEST() 96 zassert_true(strncmp(readback, msg2, n) == 0, ""); in ZTEST()
|
/Zephyr-Core-3.5.0/samples/subsys/settings/src/ |
D | main.c | 86 if (!strncmp(name, "length", next_len)) { in alpha_handle_set() 95 if (!strncmp(next, "1", next_len)) { in alpha_handle_set() 102 if (!strncmp(next, "2", next_len)) { in alpha_handle_set() 125 if (!strncmp(name, "voltage", name_len)) { in beta_handle_set() 131 if (!strncmp(name, "source", name_len)) { in beta_handle_set() 294 if (!strncmp(name, "1", name_len)) { in direct_loader() 300 if (!strncmp(name, "2", name_len)) { in direct_loader()
|
/Zephyr-Core-3.5.0/tests/lib/c_lib/src/ |
D | test_strerror.c | 72 zassert_equal(0, strncmp(expected, actual, n), in ZTEST() 78 zassert_equal(0, strncmp(expected, actual, n), in ZTEST()
|
D | main.c | 244 zassert_true((strncmp(buffer, "fffff", 0) == 0), "strncmp 0"); in ZTEST() 245 zassert_true((strncmp(buffer, "eeeff", 3) == 0), "strncmp 3"); in ZTEST() 246 zassert_true((strncmp(buffer, "eeeff", 4) != 0), "strncmp 4"); in ZTEST() 247 zassert_true((strncmp(buffer, "eeeeeeeeeeeff", BUFSIZE) == 0), in ZTEST() 252 zassert_true((strncmp(buffer, buffer, BUFSIZE) == 0), in ZTEST() 285 ret = strncmp(buffer, "This is over 20 characters", BUFSIZE); in ZTEST() 309 ret = strncmp(rs, "10", 2); in ZTEST()
|
/Zephyr-Core-3.5.0/lib/libc/minimal/source/string/ |
D | strstr.c | 56 } while (strncmp(s, find, len) != 0); in strstr()
|
/Zephyr-Core-3.5.0/subsys/tracing/ |
D | tracing_core.c | 145 if (strncmp(buf, TRACING_CMD_ENABLE, length) == 0) { in tracing_cmd_handle() 147 } else if (strncmp(buf, TRACING_CMD_DISABLE, length) == 0) { in tracing_cmd_handle()
|
/Zephyr-Core-3.5.0/subsys/llext/ |
D | llext.c | 48 if (strncmp(ext->name, name, sizeof(ext->name)) == 0) { in llext_by_name() 194 if (strncmp(name, ".text", sizeof(name)) == 0) { in llext_map_sections() 196 } else if (strncmp(name, ".data", sizeof(name)) == 0) { in llext_map_sections() 198 } else if (strncmp(name, ".rodata", sizeof(name)) == 0) { in llext_map_sections() 200 } else if (strncmp(name, ".bss", sizeof(name)) == 0) { in llext_map_sections() 454 if (strncmp(name, ".rel.text", sizeof(name)) == 0 || in llext_link() 455 strncmp(name, ".rela.text", sizeof(name)) == 0) { in llext_link() 457 } else if (strncmp(name, ".rel.bss", sizeof(name)) == 0) { in llext_link() 459 } else if (strncmp(name, ".rel.rodata", sizeof(name)) == 0) { in llext_link() 461 } else if (strncmp(name, ".rel.data", sizeof(name)) == 0) { in llext_link()
|
/Zephyr-Core-3.5.0/tests/unit/cbprintf/ |
D | main.c | 122 int rv = strncmp(str, expected, len); 532 zassert_equal(strncmp("/%Ld/", buf, rc), 0); in ZTEST() 577 zassert_equal(strncmp("/123/+123/123 / 0123/", in ZTEST() 671 zassert_equal(strncmp("/123/123/", buf, rc), 0); in ZTEST() 921 zassert_equal(strncmp("/%hf/", buf, rc), 0); in ZTEST() 953 zassert_equal(strncmp(buf, " 0.000", 6), 0); in ZTEST() 954 zassert_equal(strncmp(&buf[119], "00003872", 8), 0); in ZTEST() 1067 zassert_equal(strncmp("/ 0xcafe21/", buf, rc), 0); in ZTEST() 1072 zassert_equal(strncmp("/ (nil)/", buf, rc), 0); in ZTEST() 1077 zassert_equal(strncmp("/0xcafe21 /", buf, rc), 0); in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/tests/subsys/logging/log_backend_fs/src/ |
D | log_fs_test.c | 77 strncmp(ent.name, log_prefix, strlen(log_prefix)) == 0) { in ZTEST() 109 rc = strncmp(log_read, to_log, sizeof(log_read)); in ZTEST() 126 rc = strncmp(log_read, to_log, sizeof(log_read)); in ZTEST()
|
/Zephyr-Core-3.5.0/subsys/bluetooth/host/ |
D | at.c | 68 if (strncmp(str, prefix, strlen(prefix)) != 0) { in str_has_prefix() 79 if ((!strncmp(str, "OK", 2)) && (at_check_byte(buf, '\n') == 0)) { in at_parse_result() 84 if ((!strncmp(str, "ERROR", 5)) && (at_check_byte(buf, '\n')) == 0) { in at_parse_result() 205 if (strncmp(at->buf, "CME ERROR", 9) == 0) { in is_cmer() 235 if (strncmp(at->buf, "RING", 4) == 0) { in is_ring()
|
D | settings.c | 142 if (!strncmp(name, "id", len)) { in set_setting() 174 if (!strncmp(name, "name", len)) { in set_setting() 189 if (!strncmp(name, "appearance", len)) { in set_setting() 205 if (!strncmp(name, "irk", len)) { in set_setting()
|
/Zephyr-Core-3.5.0/tests/drivers/dma/chan_link_transfer/src/ |
D | test_dma.c | 133 if (strncmp(tx_data, rx_data2, dma_cfg.source_burst_length) != 0) { in test_task() 138 if (strncmp(tx_data, rx_data2, in test_task()
|
/Zephyr-Core-3.5.0/modules/canopennode/ |
D | canopen_storage.c | 134 if (!strncmp(key, "eeprom", nlen)) { in canopen_settings_set() 157 } else if (!strncmp(key, "rom", nlen)) { in canopen_settings_set()
|
/Zephyr-Core-3.5.0/subsys/bluetooth/mesh/ |
D | sar_cfg_srv.c | 181 if (!strncmp(name, "sar_rx", 5)) { in sar_cfg_srv_settings_set() 186 if (!strncmp(name, "sar_tx", 5)) { in sar_cfg_srv_settings_set()
|
D | dfu_slot.c | 349 if (!strncmp(prop, PROP_HEADER, len)) { in slot_data_load() 374 if (!strncmp(prop, PROP_FWID, len)) { in slot_data_load() 386 if (!strncmp(prop, PROP_METADATA, len)) { in slot_data_load()
|
/Zephyr-Core-3.5.0/lib/libc/minimal/include/ |
D | string.h | 29 extern int strncmp(const char *s1, const char *s2, size_t n);
|
/Zephyr-Core-3.5.0/samples/net/sockets/socketpair/src/ |
D | main.c | 61 if (strncmp(buf, name, sizeof(buf)) != 0) { in hello() 201 if (strncmp(ctx[idx].name, buf, sizeof(buf)) != 0) { in handle_poll_events()
|
/Zephyr-Core-3.5.0/subsys/logging/ |
D | log_cmds.c | 48 if (strncmp(name, backend->name, slen) == 0) { in backend_find() 150 if (strncmp(tmp_name, name, 64) == 0) { in module_id_get() 197 if (strncmp(str, severity_lvls[i], 4) == 0) { in severity_level_get()
|
/Zephyr-Core-3.5.0/tests/subsys/settings/fcb/src/ |
D | settings_test_compress_deleted.c | 82 rc = strncmp(buf, NAME_DELETABLE, sizeof(NAME_DELETABLE)-1); in check_compressed_cb()
|
/Zephyr-Core-3.5.0/subsys/testsuite/ztest/src/ |
D | ztest_posix.c | 61 if (cwd && strlen(file) > strlen(cwd) && !strncmp(file, cwd, strlen(cwd))) { in ztest_relative_filename()
|