Home
last modified time | relevance | path

Searched refs:slen (Results 1 – 18 of 18) sorted by relevance

/Zephyr-latest/lib/utils/
Dbase64.c61 size_t slen) in base64_encode() argument
67 if (slen == 0) { in base64_encode()
72 n = slen / 3 + (slen % 3 != 0); in base64_encode()
86 n = (slen / 3) * 3; in base64_encode()
99 if (i < slen) { in base64_encode()
101 C2 = ((i + 1) < slen) ? *src++ : 0; in base64_encode()
106 if ((i + 1) < slen) { in base64_encode()
125 size_t slen) in base64_decode() argument
132 for (i = n = j = 0U; i < slen; i++) { in base64_decode()
135 while (i < slen && src[i] == ' ') { in base64_decode()
[all …]
/Zephyr-latest/tests/lib/cbprintf_package/src/
Dmain.c326 int slen; in ZTEST() local
328 CBPRINTF_STATIC_PACKAGE(NULL, 0, slen, ALIGN_OFFSET, flags, TEST_FMT); in ZTEST()
331 zassert_equal(len, slen, "Runtime length: %d, static length: %d", len, slen); in ZTEST()
334 uint8_t __aligned(CBPRINTF_PACKAGE_ALIGNMENT) spackage[slen]; in ZTEST()
343 memset(spackage, 0, slen); in ZTEST()
346 CBPRINTF_STATIC_PACKAGE(spackage, sizeof(spackage), slen, ALIGN_OFFSET, flags, TEST_FMT); in ZTEST()
349 zassert_equal(len, slen, "Runtime length: %d, static length: %d", len, slen); in ZTEST()
479 int slen; in ZTEST() local
481 CBPRINTF_STATIC_PACKAGE(NULL, 0, slen, ALIGN_OFFSET, flags, TEST_FMT); in ZTEST()
483 zassert_equal(len, slen); in ZTEST()
[all …]
/Zephyr-latest/tests/unit/base64/
Dmain.c69 int slen; in ZTEST() local
93 slen = ((-1 - 1) / 4) * 3 - 1; in ZTEST()
94 rc = base64_encode(buffer, sizeof(buffer), &len, src, slen); in ZTEST()
98 slen = 100; in ZTEST()
99 n = slen / 3 + (slen % 3 != 0); in ZTEST()
101 rc = base64_encode(buffer, sizeof(buffer), &len, src, slen); in ZTEST()
/Zephyr-latest/include/zephyr/sys/
Dbase64.h63 size_t slen);
82 size_t slen);
/Zephyr-latest/subsys/logging/
Dlog_multidomain_link.c56 size_t slen = MIN(len - 1, *link_remote->dst.name.len - 1); in log_multidomain_link_on_recv_cb() local
59 memcpy(link_remote->dst.name.dst, msg->data.domain_name.name, slen); in log_multidomain_link_on_recv_cb()
60 link_remote->dst.name.dst[slen] = '\0'; in log_multidomain_link_on_recv_cb()
65 size_t slen = MIN(len - 1, *link_remote->dst.name.len - 1); in log_multidomain_link_on_recv_cb() local
68 memcpy(link_remote->dst.name.dst, msg->data.source_name.name, slen); in log_multidomain_link_on_recv_cb()
69 link_remote->dst.name.dst[slen] = '\0'; in log_multidomain_link_on_recv_cb()
Dlog_cmds.c48 size_t slen = strlen(name); in backend_find() local
51 if (strncmp(name, backend->name, slen) == 0) { in backend_find()
82 size_t slen = sizeof(FRONTEND_STR); in shell_backend_cmd_execute() local
85 strncmp(name, FRONTEND_STR, slen) == 0) { in shell_backend_cmd_execute()
/Zephyr-latest/tests/subsys/logging/log_custom_header/src/
Dlog_custom_header.c38 int slen = cbpprintf(cbprintf_callback, &pstr, p); in backend_process() local
40 output[slen] = '\0'; in backend_process()
/Zephyr-latest/subsys/logging/backends/
Dlog_multidomain_backend.c98 size_t slen = strlen(name); in get_name_response() local
100 size_t msg_size = slen + 1 + msg_offset + in get_name_response()
113 memcpy(dst, name, slen); in get_name_response()
114 dst[slen] = '\0'; in get_name_response()
/Zephyr-latest/tests/subsys/logging/log_backend_init/src/
Dmain.c48 int slen = cbpprintf(cbprintf_callback, &pstr, p); in backend_process() local
50 str[slen] = '\0'; in backend_process()
/Zephyr-latest/tests/crypto/tinycrypt/src/
Dcmac_mode.c55 static void show(const char *label, const uint8_t *s, size_t slen) in show() argument
60 for (i = 0U; i < slen; ++i) { in show()
/Zephyr-latest/drivers/flash/
Dnrf_qspi_nor.c893 const void *sptr, size_t slen) in write_sub_word() argument
905 memcpy(buf, sptr, slen); in write_sub_word()
922 const void *sptr, size_t slen) in write_through_buffer() argument
930 while ((slen > 0) && (res == NRFX_SUCCESS)) { in write_through_buffer()
931 size_t len = MIN(slen, sizeof(buf)); in write_through_buffer()
938 slen -= len; in write_through_buffer()
/Zephyr-latest/subsys/bluetooth/host/classic/
Dsdp.c2616 ssize_t slen; in sdp_loop_seqs() local
2625 slen = -EINVAL; in sdp_loop_seqs()
2630 slen = sdp_get_seq_len_item(data, end - *data); in sdp_loop_seqs()
2631 if (slen < 0) { in sdp_loop_seqs()
2634 pre_slen = slen; in sdp_loop_seqs()
2639 return slen; in sdp_loop_seqs()
2652 ssize_t slen; in sdp_get_uuid_data() local
2664 slen = sdp_loop_seqs(&p, to_end); in sdp_get_uuid_data()
2666 if (slen < 0) { in sdp_get_uuid_data()
2667 return slen; in sdp_get_uuid_data()
[all …]
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_rw_senml_json.c864 static size_t base64_encoded_length(size_t slen) in base64_encoded_length() argument
868 if (slen == 0) { in base64_encoded_length()
872 n = slen / 3 + (slen % 3 != 0); in base64_encoded_length()
/Zephyr-latest/modules/nrf_wifi/bus/
Dqspi_if.c909 size_t slen) in write_sub_word() argument
921 memcpy(buf, sptr, slen); in write_sub_word()
/Zephyr-latest/subsys/bluetooth/controller/hci/
Dhci_driver.c248 sdu_hdr->sdu.slen = sys_cpu_to_le16(slen_packed); in sink_sdu_emit_hci()
Dhci.c5947 sys_le16_to_cpu(bt_iso_pkt_len(iso_sdu_hdr->slen));
/Zephyr-latest/subsys/bluetooth/host/
Diso.c612 len = sys_le16_to_cpu(hdr->slen); in bt_iso_recv()
889 hdr->slen = sys_cpu_to_le16( in bt_iso_chan_send()
915 hdr->sdu.slen = sys_cpu_to_le16( in bt_iso_chan_send_ts()
/Zephyr-latest/include/zephyr/bluetooth/
Dhci_types.h114 uint16_t slen; /* 12 bit len, 2 bit RFU, 2 bit packet status */ member