Home
last modified time | relevance | path

Searched refs:out_len (Results 1 – 25 of 41) sorted by relevance

12

/Zephyr-latest/subsys/mgmt/mcumgr/grp/fs_mgmt/src/
Dfs_mgmt_hash_checksum_crc32.c20 size_t *out_len, size_t len) in fs_mgmt_hash_checksum_crc32() argument
29 *out_len = 0; in fs_mgmt_hash_checksum_crc32()
32 if ((read_size + *out_len) >= len) { in fs_mgmt_hash_checksum_crc32()
34 read_size = len - *out_len; in fs_mgmt_hash_checksum_crc32()
44 *out_len += bytes_read; in fs_mgmt_hash_checksum_crc32()
46 } while (bytes_read > 0 && *out_len < len); in fs_mgmt_hash_checksum_crc32()
Dfs_mgmt_hash_checksum_sha256.c37 size_t *out_len, size_t len) in fs_mgmt_hash_checksum_sha256() argument
46 *out_len = 0; in fs_mgmt_hash_checksum_sha256()
55 if ((read_size + *out_len) >= len) { in fs_mgmt_hash_checksum_sha256()
57 read_size = len - *out_len; in fs_mgmt_hash_checksum_sha256()
70 *out_len += bytes_read; in fs_mgmt_hash_checksum_sha256()
72 } while (bytes_read > 0 && *out_len < len); in fs_mgmt_hash_checksum_sha256()
/Zephyr-latest/tests/subsys/shell/shell_history/src/
Dshell_history_test.c35 uint16_t out_len; in test_get() local
37 out_len = sizeof(out_buf); in test_get()
39 res = z_shell_history_get(&history, up, out_buf, &out_len); in test_get()
44 zassert_equal(out_len, exp_len, "Unexpected entry length.\n"); in test_get()
45 if (out_len) { in test_get()
46 zassert_equal(memcmp(out_buf, exp_buf, out_len), 0, in test_get()
144 uint16_t out_len; in get_max_buffer_len() local
150 out_len = sizeof(out_buf); in get_max_buffer_len()
151 if (z_shell_history_get(&history, true, out_buf, &out_len)) { in get_max_buffer_len()
/Zephyr-latest/samples/net/sockets/echo/src/
Dsocket_echo.c93 int out_len; in main() local
104 out_len = send(client, p, len, 0); in main()
105 if (out_len < 0) { in main()
109 p += out_len; in main()
110 len -= out_len; in main()
/Zephyr-latest/drivers/crypto/
Dcrypto_ataes132a.c194 uint8_t out_len; in ataes132a_aes_ccm_decrypt() local
211 expected_out_len = aead_op->pkt->out_len; in ataes132a_aes_ccm_decrypt()
273 param_buffer, &out_len); in ataes132a_aes_ccm_decrypt()
348 &out_len); in ataes132a_aes_ccm_decrypt()
356 if (!IN_RANGE(out_len, 2, 33)) { in ataes132a_aes_ccm_decrypt()
358 " size %d", out_len); in ataes132a_aes_ccm_decrypt()
370 if (expected_out_len != out_len - 1) { in ataes132a_aes_ccm_decrypt()
372 " size %d are different", out_len - 1, in ataes132a_aes_ccm_decrypt()
378 memcpy(aead_op->pkt->out_buf, param_buffer + 1, out_len - 1); in ataes132a_aes_ccm_decrypt()
395 uint8_t out_len; in ataes132a_aes_ccm_encrypt() local
[all …]
Dcrypto_mtls_shim.c92 pkt->out_len = 16; in mtls_ecb_encrypt()
117 pkt->out_len = 16; in mtls_ecb_decrypt()
148 pkt->out_len = pkt->in_len + iv_bytes; in mtls_cbc_encrypt()
175 pkt->out_len = pkt->in_len - iv_bytes; in mtls_cbc_decrypt()
203 apkt->pkt->out_len = apkt->pkt->in_len; in mtls_ccm_encrypt_auth()
204 apkt->pkt->out_len += ctx->mode_params.ccm_info.tag_len; in mtls_ccm_encrypt_auth()
234 apkt->pkt->out_len = apkt->pkt->in_len; in mtls_ccm_decrypt_auth()
235 apkt->pkt->out_len += ctx->mode_params.ccm_info.tag_len; in mtls_ccm_decrypt_auth()
263 apkt->pkt->out_len = apkt->pkt->in_len; in mtls_gcm_encrypt_auth()
264 apkt->pkt->out_len += ctx->mode_params.gcm_info.tag_len; in mtls_gcm_encrypt_auth()
[all …]
Dcrypto_tc_shim.c43 op->out_len = op->in_len; in do_cbc_encrypt()
71 op->out_len = op->in_len; in do_cbc_decrypt()
96 op->out_len = op->in_len; in do_ctr_op()
136 op->out_len = op->in_len + ccm.mlen; in do_ccm_encrypt_mac()
174 op->out_len = op->in_len + ccm_param->tag_len; in do_ccm_decrypt_auth()
/Zephyr-latest/samples/drivers/video/tcpserversink/src/
Dmain.c25 ssize_t out_len = send(sock, buf, len, 0); in sendall() local
27 if (out_len < 0) { in sendall()
28 return out_len; in sendall()
30 buf = (const char *)buf + out_len; in sendall()
31 len -= out_len; in sendall()
/Zephyr-latest/samples/net/sockets/echo_service/src/
Dmain.c66 int len, out_len; in receive_data() local
96 out_len = sendto(client, p, len, 0, in receive_data()
99 out_len = send(client, p, len, 0); in receive_data()
102 if (out_len < 0) { in receive_data()
107 p += out_len; in receive_data()
108 len -= out_len; in receive_data()
/Zephyr-latest/subsys/bluetooth/host/
Dcrypto_psa.c66 size_t out_len; in bt_encrypt_le() local
90 enc_data, 16, &out_len); in bt_encrypt_le()
117 size_t out_len; in bt_encrypt_be() local
136 plaintext, 16, enc_data, 16, &out_len); in bt_encrypt_be()
/Zephyr-latest/samples/net/sockets/echo_async/src/
Dsocket_echo.c237 int out_len; in main() local
248 for (p = buf; len; len -= out_len) { in main()
249 out_len = send(fd, p, len, 0); in main()
250 if (out_len < 0) { in main()
256 p += out_len; in main()
/Zephyr-latest/samples/net/sockets/echo_async_select/src/
Dsocket_echo_select.c220 int out_len; local
231 for (p = buf; len; len -= out_len) {
232 out_len = WRITE(fd, p, len);
233 if (out_len < 0) {
239 p += out_len;
/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_tcp_uploader.c26 ssize_t out_len = zsock_send(sock, buf, len, 0); in sendall() local
28 if (out_len < 0) { in sendall()
29 return out_len; in sendall()
32 buf = (const char *)buf + out_len; in sendall()
33 len -= out_len; in sendall()
/Zephyr-latest/drivers/modem/
Dwncm14a2a.c527 size_t out_len; in on_cmd_atcmdinfo_manufacturer() local
529 out_len = net_buf_linearize(ictx.mdm_manufacturer, in on_cmd_atcmdinfo_manufacturer()
532 ictx.mdm_manufacturer[out_len] = 0; in on_cmd_atcmdinfo_manufacturer()
538 size_t out_len; in on_cmd_atcmdinfo_model() local
540 out_len = net_buf_linearize(ictx.mdm_model, in on_cmd_atcmdinfo_model()
543 ictx.mdm_model[out_len] = 0; in on_cmd_atcmdinfo_model()
549 size_t out_len; in on_cmd_atcmdinfo_revision() local
551 out_len = net_buf_linearize(ictx.mdm_revision, in on_cmd_atcmdinfo_revision()
554 ictx.mdm_revision[out_len] = 0; in on_cmd_atcmdinfo_revision()
562 size_t out_len; in on_cmd_atcmdecho_nosock_imei() local
[all …]
Dhl7800.c1680 size_t out_len; in on_cmd_atcmdinfo_manufacturer() local
1702 out_len = net_buf_linearize(iface_ctx.mdm_manufacturer, in on_cmd_atcmdinfo_manufacturer()
1705 iface_ctx.mdm_manufacturer[out_len] = 0; in on_cmd_atcmdinfo_manufacturer()
1715 size_t out_len; in on_cmd_atcmdinfo_model() local
1737 out_len = net_buf_linearize(iface_ctx.mdm_model, sizeof(iface_ctx.mdm_model) - 1, in on_cmd_atcmdinfo_model()
1739 iface_ctx.mdm_model[out_len] = 0; in on_cmd_atcmdinfo_model()
1749 size_t out_len; in on_cmd_atcmdinfo_revision() local
1770 out_len = net_buf_linearize( in on_cmd_atcmdinfo_revision()
1772 iface_ctx.mdm_revision[out_len] = 0; in on_cmd_atcmdinfo_revision()
1783 size_t out_len; in on_cmd_atcmdinfo_imei() local
[all …]
Dsimcom-sim7080.c651 size_t out_len; in MODEM_CMD_DEFINE() local
661 out_len = net_buf_linearize(ips, sizeof(ips) - 1, data->rx_buf, 1, len); in MODEM_CMD_DEFINE()
662 ips[out_len] = '\0'; in MODEM_CMD_DEFINE()
965 size_t out_len = net_buf_linearize( in MODEM_CMD_DEFINE() local
967 mdata.mdm_manufacturer[out_len] = '\0'; in MODEM_CMD_DEFINE()
977 size_t out_len = net_buf_linearize(mdata.mdm_model, sizeof(mdata.mdm_model) - 1, in MODEM_CMD_DEFINE() local
979 mdata.mdm_model[out_len] = '\0'; in MODEM_CMD_DEFINE()
991 size_t out_len; in MODEM_CMD_DEFINE() local
994 out_len = net_buf_linearize(mdata.mdm_revision, sizeof(mdata.mdm_revision) - 1, in MODEM_CMD_DEFINE()
996 mdata.mdm_revision[out_len] = '\0'; in MODEM_CMD_DEFINE()
[all …]
Dquectel-bg9x.c272 size_t out_len = net_buf_linearize(mdata.mdm_manufacturer, in MODEM_CMD_DEFINE() local
275 mdata.mdm_manufacturer[out_len] = '\0'; in MODEM_CMD_DEFINE()
283 size_t out_len = net_buf_linearize(mdata.mdm_model, in MODEM_CMD_DEFINE() local
286 mdata.mdm_model[out_len] = '\0'; in MODEM_CMD_DEFINE()
296 size_t out_len = net_buf_linearize(mdata.mdm_revision, in MODEM_CMD_DEFINE() local
299 mdata.mdm_revision[out_len] = '\0'; in MODEM_CMD_DEFINE()
309 size_t out_len = net_buf_linearize(mdata.mdm_imei, in MODEM_CMD_DEFINE() local
312 mdata.mdm_imei[out_len] = '\0'; in MODEM_CMD_DEFINE()
323 size_t out_len = net_buf_linearize(mdata.mdm_imsi, in MODEM_CMD_DEFINE() local
326 mdata.mdm_imsi[out_len] = '\0'; in MODEM_CMD_DEFINE()
[all …]
/Zephyr-latest/samples/drivers/crypto/src/
Dmain.c160 LOG_INF("Output length (encryption): %d", encrypt.out_len); in ecb_mode()
184 LOG_INF("Output length (decryption): %d", decrypt.out_len); in ecb_mode()
247 LOG_INF("Output length (encryption): %d", encrypt.out_len); in cbc_mode()
272 LOG_INF("Output length (decryption): %d", decrypt.out_len); in cbc_mode()
337 LOG_INF("Output length (encryption): %d", encrypt.out_len); in ctr_mode()
361 LOG_INF("Output length (decryption): %d", decrypt.out_len); in ctr_mode()
446 LOG_INF("Output length (encryption): %d", encrypt.out_len); in ccm_mode()
471 LOG_INF("Output length (decryption): %d", decrypt.out_len); in ccm_mode()
558 LOG_INF("Output length (encryption): %d", encrypt.out_len); in gcm_mode()
583 LOG_INF("Output length (decryption): %d", decrypt.out_len); in gcm_mode()
/Zephyr-latest/lib/os/
Dcbprintf_packaged.c965 int out_len; in cbprintf_package_convert() local
976 out_len = (int)in_len; in cbprintf_package_convert()
986 out_len += len; in cbprintf_package_convert()
1014 out_len -= 2; in cbprintf_package_convert()
1022 out_len -= drop_ro_str_pos ? 2 : 1; in cbprintf_package_convert()
1035 out_len += (len - 1); in cbprintf_package_convert()
1039 return out_len; in cbprintf_package_convert()
1127 out_len = rv; in cbprintf_package_convert()
1136 out_len += rv; in cbprintf_package_convert()
1145 out_len += rv; in cbprintf_package_convert()
[all …]
/Zephyr-latest/samples/net/sockets/echo_client/src/
Dtcp.c38 ssize_t out_len = send(sock, buf, len, 0); in sendall() local
40 if (out_len < 0) { in sendall()
41 return out_len; in sendall()
43 buf = (const char *)buf + out_len; in sendall()
44 len -= out_len; in sendall()
/Zephyr-latest/samples/net/sockets/http_server/src/
Dws.c100 ssize_t out_len = send(sock, buf, len, 0); in sendall() local
102 if (out_len < 0) { in sendall()
103 return out_len; in sendall()
105 buf = (const char *)buf + out_len; in sendall()
106 len -= out_len; in sendall()
/Zephyr-latest/samples/net/sockets/dumb_http_server_mt/src/
Dmain.c138 ssize_t out_len = send(sock, buf, len, 0); in sendall() local
140 if (out_len < 0) { in sendall()
141 return out_len; in sendall()
144 buf = (const char *)buf + out_len; in sendall()
145 len -= out_len; in sendall()
/Zephyr-latest/samples/net/sockets/big_http_download/src/
Dbig_http_download.c104 ssize_t out_len = send(sock, buf, len, 0); in sendall() local
105 if (out_len < 0) { in sendall()
106 return out_len; in sendall()
108 buf = (const char *)buf + out_len; in sendall()
109 len -= out_len; in sendall()
/Zephyr-latest/include/zephyr/mgmt/mcumgr/grp/fs_mgmt/
Dfs_mgmt_hash_checksum.h30 size_t *out_len, size_t len);
/Zephyr-latest/tests/subsys/settings/file/include/
Dsettings_test_file.h39 size_t *out_len);

12