Home
last modified time | relevance | path

Searched refs:str_len (Results 1 – 24 of 24) sorted by relevance

/Zephyr-latest/modules/mbedtls/
Ddebug.c16 int str_len; in zephyr_mbedtls_debug() local
33 str_len = strlen(str); in zephyr_mbedtls_debug()
37 if (str_len > 0 && str[str_len - 1] == '\n') { in zephyr_mbedtls_debug()
38 str_len--; 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/tests/bsim/bluetooth/host/iso/cis/src/
Dcis_peripheral.c44 size_t str_len; in iso_print_data() local
46 str_len = bin2hex(data, MIN(max_octets, data_len), data_str, sizeof(data_str)); in iso_print_data()
51 strcat(&data_str[str_len], dots); in iso_print_data()
52 str_len += strlen(dots); in iso_print_data()
55 str_len += bin2hex(data + (data_len - MIN(max_octets, data_len - max_octets)), in iso_print_data()
56 MIN(max_octets, data_len - max_octets), data_str + str_len, in iso_print_data()
57 sizeof(data_str) - str_len); in iso_print_data()
/Zephyr-latest/samples/bluetooth/iso_peripheral/src/
Dmain.c76 size_t str_len; in iso_print_data() local
78 str_len = bin2hex(data, MIN(max_octets, data_len), data_str, sizeof(data_str)); in iso_print_data()
83 strcat(&data_str[str_len], dots); in iso_print_data()
84 str_len += strlen(dots); in iso_print_data()
87 str_len += bin2hex(data + (data_len - MIN(max_octets, data_len - max_octets)), in iso_print_data()
89 data_str + str_len, in iso_print_data()
90 sizeof(data_str) - str_len); in iso_print_data()
/Zephyr-latest/subsys/net/lib/http/
Dhttp_hpack.c242 uint32_t str_len; in hpack_string_decode() local
256 &str_len); in hpack_string_decode()
265 if (str_len > datalen) { in hpack_string_decode()
270 ret = hpack_huffman_decode(buf, str_len, type, header); in hpack_string_decode()
277 header->name_len = str_len; in hpack_string_decode()
280 header->value_len = str_len; in hpack_string_decode()
284 len += str_len; in hpack_string_decode()
494 size_t str_len; in hpack_string_encode() local
499 str_len = header->name_len; in hpack_string_encode()
502 str_len = header->value_len; in hpack_string_encode()
[all …]
Dhttp_huffman.c418 int http_hpack_huffman_encode(const uint8_t *str, size_t str_len, in http_hpack_huffman_encode() argument
426 if (str == NULL || buf == NULL || str_len == 0) { in http_hpack_huffman_encode()
430 while (str_len > 0) { in http_hpack_huffman_encode()
469 str_len--; in http_hpack_huffman_encode()
/Zephyr-latest/subsys/net/lib/shell/
Dcapture.c22 char *str, int str_len) in get_address_str() argument
25 snprintk(str, str_len, "[%s]:%u", in get_address_str()
30 snprintk(str, str_len, "%s:%d", in get_address_str()
36 snprintk(str, str_len, "AF_PACKET"); in get_address_str()
39 snprintk(str, str_len, "AF_CAN"); in get_address_str()
41 snprintk(str, str_len, "AF_UNSPEC"); in get_address_str()
43 snprintk(str, str_len, "AF_UNK(%d)", addr->sa_family); in get_address_str()
/Zephyr-latest/tests/bsim/bluetooth/host/iso/bis/src/
Dbis_receiver.c55 size_t str_len; in iso_log_data() local
57 str_len = bin2hex(data, MIN(max_octets, data_len), data_str, sizeof(data_str)); in iso_log_data()
62 strcat(&data_str[str_len], dots); in iso_log_data()
63 str_len += strlen(dots); in iso_log_data()
66 str_len += bin2hex(data + (data_len - MIN(max_octets, data_len - max_octets)), in iso_log_data()
67 MIN(max_octets, data_len - max_octets), data_str + str_len, in iso_log_data()
68 sizeof(data_str) - str_len); in iso_log_data()
/Zephyr-latest/subsys/net/ip/
Dutils.c729 static bool parse_ipv6(const char *str, size_t str_len, in parse_ipv6() argument
738 len = MIN(INET6_ADDRSTRLEN, str_len); in parse_ipv6()
776 if ((ptr + 1) < (str + str_len) && *(ptr + 1) == ':') { in parse_ipv6()
780 len = str_len - end - 1 - 2; in parse_ipv6()
813 static inline bool parse_ipv6(const char *str, size_t str_len, in parse_ipv6() argument
821 static bool parse_ipv4(const char *str, size_t str_len, in parse_ipv4() argument
830 len = MIN(NET_IPV4_ADDR_LEN, str_len); in parse_ipv4()
867 memcpy(ipaddr, ptr + 1, str_len - end - 1); in parse_ipv4()
868 ipaddr[str_len - end - 1] = '\0'; in parse_ipv4()
883 static inline bool parse_ipv4(const char *str, size_t str_len, in parse_ipv4() argument
[all …]
/Zephyr-latest/tests/subsys/settings/file/include/
Dsettings_test_file.h42 size_t str_len);
/Zephyr-latest/subsys/shell/
Dshell_wildcard.c108 uint16_t str_len = z_shell_strlen(str); in z_shell_has_wildcard() local
110 for (size_t i = 0; i < str_len; i++) { in z_shell_has_wildcard()
Dshell.c430 size_t str_len = z_shell_strlen(str); in tab_options_print() local
444 !is_completion_candidate(match->syntax, str, str_len)) { in tab_options_print()
/Zephyr-latest/tests/bsim/bluetooth/ll/cis/src/
Dmain.c250 size_t str_len; in iso_print_data() local
252 str_len = bin2hex(data, MIN(max_octets, data_len), data_str, sizeof(data_str)); in iso_print_data()
257 strcat(&data_str[str_len], dots); in iso_print_data()
258 str_len += strlen(dots); in iso_print_data()
261 str_len += bin2hex(data + (data_len - MIN(max_octets, data_len - max_octets)), in iso_print_data()
263 data_str + str_len, in iso_print_data()
264 sizeof(data_str) - str_len); in iso_print_data()
/Zephyr-latest/include/zephyr/net/http/
Dhpack.h134 int http_hpack_huffman_encode(const uint8_t *str, size_t str_len,
/Zephyr-latest/tests/subsys/settings/file/src/
Dsettings_test_file.c207 size_t str_len) in settings_test_file_strstr() argument
229 if (memmem(buf, len, string, str_len)) { in settings_test_file_strstr()
/Zephyr-latest/tests/bsim/bluetooth/ll/bis/src/
Dtest_bis.c526 size_t str_len; in iso_print_data() local
528 str_len = bin2hex(data, MIN(max_octets, data_len), data_str, sizeof(data_str)); in iso_print_data()
533 strcat(&data_str[str_len], dots); in iso_print_data()
534 str_len += strlen(dots); in iso_print_data()
537 str_len += bin2hex(data + (data_len - MIN(max_octets, data_len - max_octets)), in iso_print_data()
539 data_str + str_len, in iso_print_data()
540 sizeof(data_str) - str_len); in iso_print_data()
/Zephyr-latest/samples/bluetooth/bap_broadcast_assistant/src/
Dmain.c235 const size_t str_len = strlen(str); in is_substring() local
238 if (sub_str_len > str_len) { in is_substring()
242 for (size_t pos = 0; pos < str_len; pos++) { in is_substring()
243 if (pos + sub_str_len > str_len) { in is_substring()
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/
Dcap_acceptor_broadcast.c640 const size_t str_len = strlen(str); in is_substring() local
643 if (sub_str_len > str_len) { in is_substring()
647 for (size_t pos = 0; pos < str_len; pos++) { in is_substring()
648 if (pos + sub_str_len > str_len) { in is_substring()
/Zephyr-latest/samples/bluetooth/iso_receive/src/
Dmain.c214 size_t str_len; in iso_recv() local
225 str_len = bin2hex(buf->data, buf->len, data_str, sizeof(data_str)); in iso_recv()
/Zephyr-latest/samples/bluetooth/bap_broadcast_sink/src/
Dmain.c1151 const size_t str_len = strlen(str); in is_substring() local
1154 if (sub_str_len > str_len) { in is_substring()
1158 for (size_t pos = 0; pos < str_len; pos++) { in is_substring()
1159 if (pos + sub_str_len > str_len) { in is_substring()
/Zephyr-latest/lib/os/
Dcbprintf_packaged.c1151 uint16_t str_len = (strl && (i < strl_len)) ? strl[i] : 0; in cbprintf_package_convert() local
1159 rv = append_string(cb, ctx, str, str_len); in cbprintf_package_convert()
/Zephyr-latest/subsys/bluetooth/audio/
Dtbs.c1568 size_t str_len; in valid_register_param() local
1582 str_len = strlen(param->provider_name); in valid_register_param()
1583 if (str_len > CONFIG_BT_TBS_MAX_PROVIDER_NAME_LENGTH) { in valid_register_param()
1586 str_len, CONFIG_BT_TBS_MAX_PROVIDER_NAME_LENGTH); in valid_register_param()
/Zephyr-latest/include/zephyr/net/
Dnet_ip.h1679 bool net_ipaddr_parse(const char *str, size_t str_len,
/Zephyr-latest/drivers/modem/
Dhl7800.c3573 size_t str_len = sizeof(TIME_STRING_FORMAT) - 1; in on_cmd_rtc_query() local
3587 if (len != str_len) { in on_cmd_rtc_query()
3589 len, str_len); in on_cmd_rtc_query()
3591 net_buf_linearize(rtc_string, str_len, *buf, 0, str_len); in on_cmd_rtc_query()
/Zephyr-latest/subsys/bluetooth/host/shell/
Dbt.c286 const size_t str_len = strlen(str); in is_substring() local
289 if (sub_str_len > str_len) { in is_substring()
293 for (size_t pos = 0; pos < str_len; pos++) { in is_substring()
294 if (pos + sub_str_len > str_len) { in is_substring()