/Zephyr-latest/lib/utils/ |
D | hex.c | 40 size_t bin2hex(const uint8_t *buf, size_t buflen, char *hex, size_t hexlen) in bin2hex() argument 42 if (hexlen < ((buflen * 2U) + 1U)) { in bin2hex() 46 for (size_t i = 0; i < buflen; i++) { in bin2hex() 55 hex[2U * buflen] = '\0'; in bin2hex() 56 return 2U * buflen; in bin2hex() 59 size_t hex2bin(const char *hex, size_t hexlen, uint8_t *buf, size_t buflen) in hex2bin() argument 63 if (buflen < (hexlen / 2U + hexlen % 2U)) { in hex2bin()
|
D | dec.c | 9 uint8_t u8_to_dec(char *buf, uint8_t buflen, uint8_t value) in u8_to_dec() argument 15 while ((buflen > 0) && (divisor > 0)) { in u8_to_dec() 20 buflen--; in u8_to_dec() 28 if (buflen != 0) { in u8_to_dec()
|
/Zephyr-latest/subsys/net/lib/http/ |
D | http_hpack.c | 215 size_t buflen = sizeof(header->buf) - header->datalen; in hpack_huffman_decode() local 220 ret = http_hpack_huffman_decode(encoded_buf, encoded_len, buf, buflen); in hpack_huffman_decode() 447 static int hpack_integer_encode(uint8_t *buf, size_t buflen, int value, in hpack_integer_encode() argument 453 if (buflen == 0) { in hpack_integer_encode() 469 if (len >= buflen) { in hpack_integer_encode() 478 if (len >= buflen) { in hpack_integer_encode() 488 static int hpack_string_encode(uint8_t *buf, size_t buflen, in hpack_string_encode() argument 516 ret = hpack_integer_encode(buf, buflen, str_len, prefix, in hpack_string_encode() 523 buflen -= ret; in hpack_string_encode() 527 if (str_len > buflen) { in hpack_string_encode() [all …]
|
D | http_parser_url.c | 386 size_t buflen; in http_parse_host() local 389 buflen = u->field_data[UF_HOST].off + u->field_data[UF_HOST].len; in http_parse_host() 396 for (p = buf + u->field_data[UF_HOST].off; p < buf + buflen; p++) { in http_parse_host() 472 http_parser_parse_url(const char *buf, size_t buflen, int is_connect, in http_parser_parse_url() argument 485 for (p = buf; p < buf + buflen; p++) { in http_parser_parse_url()
|
/Zephyr-latest/subsys/net/lib/dhcpv4/ |
D | dhcpv4_server.c | 293 static uint8_t *dhcpv4_encode_magic_cookie(uint8_t *buf, size_t *buflen) in dhcpv4_encode_magic_cookie() argument 295 if (buf == NULL || *buflen < SIZE_OF_MAGIC_COOKIE) { in dhcpv4_encode_magic_cookie() 301 *buflen -= SIZE_OF_MAGIC_COOKIE; in dhcpv4_encode_magic_cookie() 306 static uint8_t *dhcpv4_encode_ip_lease_time_option(uint8_t *buf, size_t *buflen, in dhcpv4_encode_ip_lease_time_option() argument 309 if (buf == NULL || *buflen < DHCPV4_OPTIONS_IP_LEASE_TIME_SIZE) { in dhcpv4_encode_ip_lease_time_option() 317 *buflen -= DHCPV4_OPTIONS_IP_LEASE_TIME_SIZE; in dhcpv4_encode_ip_lease_time_option() 322 static uint8_t *dhcpv4_encode_message_type_option(uint8_t *buf, size_t *buflen, in dhcpv4_encode_message_type_option() argument 325 if (buf == NULL || *buflen < DHCPV4_OPTIONS_MSG_TYPE_SIZE) { in dhcpv4_encode_message_type_option() 333 *buflen -= DHCPV4_OPTIONS_MSG_TYPE_SIZE; in dhcpv4_encode_message_type_option() 338 static uint8_t *dhcpv4_encode_server_id_option(uint8_t *buf, size_t *buflen, in dhcpv4_encode_server_id_option() argument [all …]
|
/Zephyr-latest/tests/net/lib/http_header_fields/src/ |
D | main.c | 649 size_t buflen; in test_invalid_header_content() local 660 buflen = strlen(buf); in test_invalid_header_content() 661 parsed = http_parser_execute(&parser, &settings_null, buf, buflen); in test_invalid_header_content() 662 if (parsed != buflen) { in test_invalid_header_content() 694 size_t buflen; in test_invalid_header_field() local 704 buflen = strlen(buf); in test_invalid_header_field() 705 parsed = http_parser_execute(&parser, &settings_null, buf, buflen); in test_invalid_header_field() 706 if (parsed != buflen) { in test_invalid_header_field() 737 size_t buflen; in test_double_content_length_error() local 748 buflen = strlen(buf); in test_double_content_length_error() [all …]
|
/Zephyr-latest/subsys/net/lib/mqtt/ |
D | mqtt_transport.h | 34 uint32_t buflen, bool shall_block); 107 int mqtt_transport_read(struct mqtt_client *client, uint8_t *data, uint32_t buflen, 125 uint32_t buflen, bool shall_block); 136 uint32_t buflen, bool shall_block); 147 uint32_t buflen, bool shall_block); 158 uint32_t buflen, bool shall_block);
|
D | mqtt_transport.c | 79 int mqtt_transport_read(struct mqtt_client *client, uint8_t *data, uint32_t buflen, in mqtt_transport_read() argument 82 return transport_fn[client->transport.type].read(client, data, buflen, in mqtt_transport_read()
|
/Zephyr-latest/include/zephyr/sys/ |
D | winstream.h | 48 static inline struct sys_winstream *sys_winstream_init(void *buf, int buflen) in sys_winstream_init() argument 50 struct sys_winstream *ws = buf, tmp = { .len = buflen - sizeof(*ws) }; in sys_winstream_init() 93 uint32_t *seq, char *buf, uint32_t buflen);
|
D | util.h | 564 size_t bin2hex(const uint8_t *buf, size_t buflen, char *hex, size_t hexlen); 576 size_t hex2bin(const char *hex, size_t hexlen, uint8_t *buf, size_t buflen); 615 uint8_t u8_to_dec(char *buf, uint8_t buflen, uint8_t value); 743 #define Z_DETECT_POINTER_OVERFLOW(addr, buflen) \ argument 744 (((buflen) != 0) && \ 745 ((UINTPTR_MAX - (uintptr_t)(addr)) <= ((uintptr_t)((buflen) - 1))))
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_rw_link_format.c | 103 uint8_t *buf, uint16_t buflen) in put_corelink_version() argument 107 len = snprintk(buf, buflen, ";ver=%u.%u", obj->version_major, in put_corelink_version() 109 if (len < 0 || len >= buflen) { in put_corelink_version() 123 uint8_t *buf, uint16_t buflen) in put_corelink_dimension() argument 135 len = snprintk(buf, buflen, ";dim=%d", inst_count); in put_corelink_dimension() 136 if (len < 0 || len >= buflen) { in put_corelink_dimension() 151 uint16_t buflen) in put_attribute() argument 162 used = snprintk(buf, buflen, ";%s=%d", name, attr->int_val); in put_attribute() 172 used = snprintk(buf, buflen, ";%s=%s", name, float_buf); in put_attribute() 175 if (used < 0 || used >= buflen) { in put_attribute() [all …]
|
D | lwm2m_rw_opaque.c | 55 size_t buflen, struct lwm2m_opaque_context *opaque, in get_opaque() argument 93 return lwm2m_engine_get_opaque_more(in, value, buflen, in get_opaque() 99 size_t buflen) in put_opaque() argument 103 ret = buf_append(CPKT_BUF_WRITE(out->out_cpkt), buf, buflen); in put_opaque() 108 return buflen; in put_opaque()
|
D | lwm2m_rw_plain_text.c | 150 struct lwm2m_obj_path *path, char *buf, size_t buflen) in put_string() argument 154 ret = buf_append(CPKT_BUF_WRITE(out->out_cpkt), buf, buflen); in put_string() 159 return buflen; in put_string() 250 size_t buflen) in get_string() argument 256 if (in_len > buflen) { in get_string() 258 in_len = buflen - 1; in get_string()
|
D | lwm2m_rw_cbor.c | 168 char *buf, size_t buflen) in put_string() argument 175 ret = zcbor_tstr_encode_ptr(states, buf, buflen); in put_string() 188 char *buf, size_t buflen) in put_opaque() argument 195 ret = zcbor_bstr_encode_ptr(states, buf, buflen); in put_opaque() 285 static int get_string(struct lwm2m_input_context *in, uint8_t *value, size_t buflen) in get_string() argument 297 len = MIN(buflen-1, hndl.len); in get_string() 420 static int get_opaque(struct lwm2m_input_context *in, uint8_t *value, size_t buflen, in get_opaque() argument 445 return lwm2m_engine_get_opaque_more(in, value, buflen, opaque, last_block); in get_opaque()
|
D | lwm2m_object.h | 563 size_t buflen); 570 size_t buflen); 583 size_t buflen); 587 size_t buflen, struct lwm2m_opaque_context *opaque, 748 char *buf, size_t buflen) in engine_put_string() argument 751 return out->writer->put_string(out, path, buf, buflen); in engine_put_string() 784 char *buf, size_t buflen) in engine_put_opaque() argument 787 return out->writer->put_opaque(out, path, buf, buflen); in engine_put_opaque() 837 static inline int engine_get_string(struct lwm2m_input_context *in, uint8_t *buf, size_t buflen) in engine_get_string() argument 840 return in->reader->get_string(in, buf, buflen); in engine_get_string() [all …]
|
/Zephyr-latest/subsys/debug/coredump/ |
D | coredump_backend_intel_adsp_mem_window.c | 46 static void coredump_mem_window_backend_buffer_output(uint8_t *buf, size_t buflen) in coredump_mem_window_backend_buffer_output() argument 65 for (data_left = buflen; data_left > 0; data_left--) { in coredump_mem_window_backend_buffer_output() 71 mem_wptr += buflen; in coredump_mem_window_backend_buffer_output()
|
D | coredump_backend_logging.c | 50 static void coredump_logging_backend_buffer_output(uint8_t *buf, size_t buflen) in coredump_logging_backend_buffer_output() argument 53 size_t remaining = buflen; in coredump_logging_backend_buffer_output() 56 if ((buf == NULL) || (buflen == 0)) { in coredump_logging_backend_buffer_output()
|
D | coredump_core.c | 203 void coredump_buffer_output(uint8_t *buf, size_t buflen) in coredump_buffer_output() argument 205 if ((buf == NULL) || (buflen == 0)) { in coredump_buffer_output() 210 backend_api->buffer_output(buf, buflen); in coredump_buffer_output()
|
/Zephyr-latest/lib/libc/minimal/source/string/ |
D | strerror.c | 38 int strerror_r(int errnum, char *strerrbuf, size_t buflen) in strerror_r() argument 52 if (buflen < msg_len) { in strerror_r()
|
/Zephyr-latest/include/zephyr/debug/ |
D | coredump.h | 227 typedef void (*coredump_backend_buffer_output_t)(uint8_t *buf, size_t buflen); 253 void coredump_buffer_output(uint8_t *buf, size_t buflen); 274 static inline void coredump_buffer_output(uint8_t *buf, size_t buflen) in coredump_buffer_output() argument 277 ARG_UNUSED(buflen); in coredump_buffer_output()
|
/Zephyr-latest/include/zephyr/net/http/ |
D | hpack.h | 133 uint8_t *buf, size_t buflen); 135 uint8_t *buf, size_t buflen); 138 int http_hpack_encode_header(uint8_t *buf, size_t buflen,
|
D | parser_url.h | 71 int http_parser_parse_url(const char *buf, size_t buflen,
|
/Zephyr-latest/arch/arm/core/ |
D | gdbstub.c | 134 size_t arch_gdb_reg_readall(struct gdb_ctx *c, uint8_t *buf, size_t buflen) in arch_gdb_reg_readall() argument 138 memset(buf, 'x', buflen); in arch_gdb_reg_readall() 142 int r = bin2hex((const uint8_t *)(c->registers + i), 4, buf + pos, buflen - pos); in arch_gdb_reg_readall() 184 size_t arch_gdb_reg_readone(struct gdb_ctx *c, uint8_t *buf, size_t buflen, uint32_t regno) in arch_gdb_reg_readone() argument 192 ret = bin2hex((uint8_t *)(c->registers + GDB_NUM_REGS - 1), 4, buf, buflen); in arch_gdb_reg_readone() 197 ret = bin2hex((uint8_t *)(c->registers + i), 4, buf, buflen); in arch_gdb_reg_readone()
|
/Zephyr-latest/arch/x86/core/ia32/ |
D | gdbstub.c | 134 size_t arch_gdb_reg_readall(struct gdb_ctx *ctx, uint8_t *buf, size_t buflen) in arch_gdb_reg_readall() argument 138 if (buflen < (sizeof(ctx->registers) * 2)) { in arch_gdb_reg_readall() 142 sizeof(ctx->registers), buf, buflen); in arch_gdb_reg_readall() 163 size_t arch_gdb_reg_readone(struct gdb_ctx *ctx, uint8_t *buf, size_t buflen, in arch_gdb_reg_readone() argument 168 if (buflen < (sizeof(unsigned int) * 2)) { in arch_gdb_reg_readone() 182 buf, buflen); in arch_gdb_reg_readone()
|
/Zephyr-latest/samples/net/sockets/echo_service/src/ |
D | main.c | 35 char *buf, size_t buflen); 60 char *buf, size_t buflen) in receive_data() argument 69 len = recvfrom(client, buf, buflen, 0, in receive_data()
|