Home
last modified time | relevance | path

Searched refs:strncmp (Results 1 – 25 of 109) sorted by relevance

12345

/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/
Dstorage.c125 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-latest/subsys/bluetooth/services/
Ddis.c313 if (!strncmp(name, "manuf", nlen)) { in dis_set()
324 if (!strncmp(name, "model", nlen)) { in dis_set()
336 if (!strncmp(name, "serial", nlen)) { in dis_set()
349 if (!strncmp(name, "fw", nlen)) { in dis_set()
362 if (!strncmp(name, "hw", nlen)) { in dis_set()
375 if (!strncmp(name, "sw", nlen)) { in dis_set()
388 if (!strncmp(name, "udi_label", nlen)) { in dis_set()
393 if (!strncmp(name, "udi_di", nlen)) { in dis_set()
398 if (!strncmp(name, "udi_issuer", nlen)) { in dis_set()
403 if (!strncmp(name, "udi_authority", nlen)) { in dis_set()
[all …]
/Zephyr-latest/tests/posix/single_process/src/
Duname.c16 zassert_ok(strncmp(info.sysname, "Zephyr", sizeof(info.sysname))); in ZTEST()
17 zassert_ok(strncmp(info.machine, CONFIG_ARCH, sizeof(info.machine))); in ZTEST()
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dll_settings.c54 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-latest/subsys/net/lib/prometheus/
Dcollector.c53 if (strncmp(entry->base.name, name, strlen(entry->base.name)) == 0) { in prometheus_get_counter_metric()
69 if (strncmp(entry->base.name, name, strlen(entry->base.name)) == 0) { in prometheus_get_gauge_metric()
85 if (strncmp(entry->base.name, name, strlen(entry->base.name)) == 0) { in prometheus_get_histogram_metric()
101 if (strncmp(entry->base.name, name, strlen(entry->base.name)) == 0) { in prometheus_get_summary_metric()
128 if (strncmp(metric->name, name, strlen(metric->name)) == 0) { in prometheus_collector_get_metric()
/Zephyr-latest/tests/net/socket/socketpair/src/
Dhappy_path.c49 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-latest/tests/unit/winstream/
Dmain.c71 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-latest/tests/net/lib/wifi_credentials/src/
Dmain.c126 zassert_equal(strncmp(PSK1, psk_buf, ARRAY_SIZE(psk_buf)), 0, "PSK mismatch"); in ZTEST()
158 zassert_equal(strncmp(PSK1, psk_buf, ARRAY_SIZE(psk_buf)), 0, "PSK mismatch"); in ZTEST()
160 zassert_equal(strncmp(BSSID1, bssid_buf, ARRAY_SIZE(bssid_buf)), 0, "BSSID mismatch"); in ZTEST()
247 zassert_equal(strncmp(PSK4, psk_buf, ARRAY_SIZE(psk_buf)), 0, "PSK mismatch"); in ZTEST()
249 zassert_equal(strncmp(BSSID4, bssid_buf, ARRAY_SIZE(bssid_buf)), 0, "BSSID mismatch"); in ZTEST()
264 zassert_equal(strncmp(ssids[call_count++], ssid, ssid_len), 0, "SSID cache mismatch"); in verify_ssid_cache_cb()
295 zassert_equal(strncmp(PSK1, psk_buf, ARRAY_SIZE(psk_buf)), 0, "PSK mismatch"); in ZTEST()
297 zassert_equal(strncmp(BSSID1, bssid_buf, ARRAY_SIZE(bssid_buf)), 0, "BSSID mismatch"); in ZTEST()
327 zassert_equal(strncmp(PSK3, psk_buf, ARRAY_SIZE(psk_buf)), 0, "PSK mismatch"); in ZTEST()
/Zephyr-latest/samples/subsys/settings/src/
Dmain.c86 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-latest/tests/net/lib/http_server/common/src/
Dmain.c369 if (strncmp(ct->extension, "html", ct->extension_len) == 0) { in ZTEST()
371 } else if (strncmp(ct->extension, "css", ct->extension_len) == 0) { in ZTEST()
373 } else if (strncmp(ct->extension, "js", ct->extension_len) == 0) { in ZTEST()
375 } else if (strncmp(ct->extension, "jpg", ct->extension_len) == 0) { in ZTEST()
377 } else if (strncmp(ct->extension, "png", ct->extension_len) == 0) { in ZTEST()
379 } else if (strncmp(ct->extension, "svg", ct->extension_len) == 0) { in ZTEST()
381 } else if (strncmp(ct->extension, "mpg", ct->extension_len) == 0) { in ZTEST()
/Zephyr-latest/subsys/llext/
Dllext_export.c14 EXPORT_SYMBOL(strncmp);
/Zephyr-latest/lib/libc/minimal/source/string/
Dstrstr.c56 } while (strncmp(s, find, len) != 0); in strstr()
/Zephyr-latest/subsys/tracing/
Dtracing_core.c147 if (strncmp(buf, TRACING_CMD_ENABLE, length) == 0) { in tracing_cmd_handle()
149 } else if (strncmp(buf, TRACING_CMD_DISABLE, length) == 0) { in tracing_cmd_handle()
/Zephyr-latest/tests/unit/cbprintf/
Dmain.c122 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-latest/tests/subsys/logging/log_backend_fs/src/
Dlog_fs_test.c77 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-latest/subsys/bluetooth/host/classic/
Dat.c68 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()
/Zephyr-latest/tests/drivers/dma/chan_link_transfer/src/
Dtest_dma.c133 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-latest/tests/lib/c_lib/common/src/
Dmain.c255 zassert_true((strncmp(buffer, "fffff", 0) == 0), "strncmp 0"); in ZTEST()
256 zassert_true((strncmp(buffer, "eeeff", 3) == 0), "strncmp 3"); in ZTEST()
257 zassert_true((strncmp(buffer, "eeeff", 4) != 0), "strncmp 4"); in ZTEST()
258 zassert_true((strncmp(buffer, "eeeeeeeeeeeff", BUFSIZE) == 0), in ZTEST()
263 zassert_true((strncmp(buffer, buffer, BUFSIZE) == 0), in ZTEST()
296 ret = strncmp(buffer, "This is over 20 characters", BUFSIZE); in ZTEST()
320 ret = strncmp(rs, "10", 2); in ZTEST()
1113 zassert_equal(strncmp("Fri Jun 1 14:30:10 2024\n", buf, sizeof(buf)), 0); in ZTEST()
1116 zassert_equal(strncmp("Fri Jun 1 14:30:10 2024\n", asctime(&tp), sizeof(buf)), 0); in ZTEST()
1166 zassert_equal(strncmp("Thu Jun 13 06:26:40 2024\n", buf, sizeof(buf)), 0); in ZTEST()
[all …]
/Zephyr-latest/modules/canopennode/
Dcanopen_storage.c134 if (!strncmp(key, "eeprom", nlen)) { in canopen_settings_set()
157 } else if (!strncmp(key, "rom", nlen)) { in canopen_settings_set()
/Zephyr-latest/subsys/bluetooth/host/
Dsettings.c142 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-latest/subsys/bluetooth/mesh/
Dsar_cfg_srv.c182 if (!strncmp(name, "sar_rx", 5)) { in sar_cfg_srv_settings_set()
187 if (!strncmp(name, "sar_tx", 5)) { in sar_cfg_srv_settings_set()
/Zephyr-latest/lib/libc/minimal/include/
Dstring.h29 extern int strncmp(const char *s1, const char *s2, size_t n);
/Zephyr-latest/subsys/net/lib/wifi_credentials/
Dwifi_credentials_shell.c223 if (strncmp("favorite", argv[arg_idx], strlen("favorite")) == 0) { in cmd_add_network()
231 if (strncmp("mfp_disabled", argv[arg_idx], strlen("mfp_disabled")) == 0) { in cmd_add_network()
234 } else if (strncmp("mfp_required", argv[arg_idx], strlen("mfp_required")) == 0) { in cmd_add_network()
/Zephyr-latest/subsys/logging/
Dlog_cmds.c51 if (strncmp(name, backend->name, slen) == 0) { in backend_find()
85 strncmp(name, FRONTEND_STR, slen) == 0) { in shell_backend_cmd_execute()
164 if (strncmp(tmp_name, name, 64) == 0) { in module_id_get()
215 if (strncmp(str, severity_lvls[i], 4) == 0) { in severity_level_get()
/Zephyr-latest/modules/hostap/src/
Dsupp_events.c102 if (strncmp(supplicant_status, wpa_supp_event_info[i].event_str, in supplicant_process_status()
483 if (!strncmp(buf, DPP_EVENT_CONNECTOR, sizeof(DPP_EVENT_CONNECTOR) - 1)) { in hostapd_handle_dpp_event()
489 } else if (!strncmp(buf, DPP_EVENT_C_SIGN_KEY, sizeof(DPP_EVENT_C_SIGN_KEY) - 1)) { in hostapd_handle_dpp_event()
495 } else if (!strncmp(buf, DPP_EVENT_NET_ACCESS_KEY, sizeof(DPP_EVENT_NET_ACCESS_KEY) - 1)) { in hostapd_handle_dpp_event()

12345