Home
last modified time | relevance | path

Searched refs:datalen (Results 1 – 20 of 20) sorted by relevance

/Zephyr-latest/subsys/net/lib/http/
Dhttp_hpack.c164 static int hpack_integer_decode(const uint8_t *buf, size_t datalen, in hpack_integer_decode() argument
173 if (datalen == 0) { in hpack_integer_decode()
188 if (--datalen == 0) { in hpack_integer_decode()
214 uint8_t *buf = header->buf + header->datalen; in hpack_huffman_decode()
215 size_t buflen = sizeof(header->buf) - header->datalen; in hpack_huffman_decode()
233 header->datalen += ret; in hpack_huffman_decode()
238 static int hpack_string_decode(const uint8_t *buf, size_t datalen, in hpack_string_decode() argument
249 if (datalen == 0) { in hpack_string_decode()
255 ret = hpack_integer_decode(buf, datalen, HPACK_STRING_PREFIX_LEN, in hpack_string_decode()
262 datalen -= ret; in hpack_string_decode()
[all …]
Dhttp_server_http2.c1475 size_t datalen = MIN(client->data_len, frame->length); in handle_http_frame_headers() local
1477 ret = http_hpack_decode_header(client->cursor, datalen, header); in handle_http_frame_headers()
/Zephyr-latest/subsys/net/lib/mqtt/
Dmqtt_transport.h26 const uint8_t *data, uint32_t datalen);
84 uint32_t datalen);
121 uint32_t datalen);
132 uint32_t datalen);
143 uint32_t datalen);
154 uint32_t datalen);
Dmqtt_transport.c67 uint32_t datalen) in mqtt_transport_write() argument
70 datalen); in mqtt_transport_write()
Dmqtt_transport_socket_tcp.c67 uint32_t datalen) in mqtt_client_tcp_write() argument
72 while (offset < datalen) { in mqtt_client_tcp_write()
74 datalen - offset, 0); in mqtt_client_tcp_write()
Dmqtt_transport_websocket.c90 uint32_t datalen) in mqtt_client_websocket_write() argument
95 while (offset < datalen) { in mqtt_client_websocket_write()
97 data + offset, datalen - offset, in mqtt_client_websocket_write()
Dmqtt_transport_socket_tls.c124 uint32_t datalen) in mqtt_client_tls_write() argument
129 while (offset < datalen) { in mqtt_client_tls_write()
131 datalen - offset, 0); in mqtt_client_tls_write()
Dmqtt.c129 uint32_t datalen) in client_write() argument
133 NET_DBG("[%p]: Transport writing %d bytes.", client, datalen); in client_write()
135 err_code = mqtt_transport_write(client, data, datalen); in client_write()
/Zephyr-latest/subsys/net/lib/dhcpv4/
Ddhcpv4_server.c109 static uint8_t *dhcpv4_find_option(uint8_t *data, size_t datalen, in dhcpv4_find_option() argument
114 while (datalen > 0) { in dhcpv4_find_option()
123 datalen--; in dhcpv4_find_option()
132 if (datalen < 2) { in dhcpv4_find_option()
138 if (datalen < len + 2) { in dhcpv4_find_option()
150 datalen -= len + 2; in dhcpv4_find_option()
156 static int dhcpv4_find_message_type_option(uint8_t *data, size_t datalen, in dhcpv4_find_message_type_option() argument
162 opt = dhcpv4_find_option(data, datalen, &optlen, in dhcpv4_find_message_type_option()
177 static int dhcpv4_find_server_id_option(uint8_t *data, size_t datalen, in dhcpv4_find_server_id_option() argument
183 opt = dhcpv4_find_option(data, datalen, &optlen, in dhcpv4_find_server_id_option()
[all …]
/Zephyr-latest/include/zephyr/net/http/
Dhpack.h127 size_t datalen; member
136 int http_hpack_decode_header(const uint8_t *buf, size_t datalen,
/Zephyr-latest/tests/crypto/tinycrypt/src/
Dhmac.c46 size_t datalen, const uint8_t *expected, in do_hmac_test() argument
53 (void)tc_hmac_update(h, data, datalen); in do_hmac_test()
/Zephyr-latest/drivers/sdhc/
Dsdhc_esp32.c574 return cmd->datalen > 0 && in cmd_needs_auto_stop()
609 if ((cmd->datalen % cmd->blklen) != 0) { in make_hw_cmd()
641 if ((cmdinfo->datalen >= 4) && (cmdinfo->datalen % 4) != 0) { in sdmmc_host_do_transaction()
642 LOG_DBG("%s: invalid size: total=%d", __func__, cmdinfo->datalen); in sdmmc_host_do_transaction()
661 data->s_cur_transfer.size_remaining = cmdinfo->datalen; in sdmmc_host_do_transaction()
664 (cmdinfo->datalen + SDMMC_DMA_MAX_BUF_LEN - 1) / SDMMC_DMA_MAX_BUF_LEN; in sdmmc_host_do_transaction()
671 cmdinfo->datalen); in sdmmc_host_do_transaction()
1098 esp_cmd.datalen = (data->blocks * data->block_size); in sdhc_esp32_request()
1099 esp_cmd.buflen = esp_cmd.datalen; in sdhc_esp32_request()
1153 esp_cmd.datalen = 0; in sdhc_esp32_request()
[all …]
Dsdhc_esp32.h93 size_t datalen; /*!< length of data in the buffer */ member
/Zephyr-latest/scripts/build/
Duf2conv.py60 datalen = hd[4]
61 if datalen > 476:
82 outp.append(block[32 : 32 + datalen])
83 curraddr = newaddr + datalen
/Zephyr-latest/scripts/west_commands/
Dbindesc.py36 datalen = hd[4]
37 if datalen > 476:
52 outp.append(block[32 : 32 + datalen])
53 curraddr = newaddr + datalen
/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_tcp_receiver.c47 static void tcp_received(const struct sockaddr *addr, size_t datalen) in tcp_received() argument
75 session->length += datalen; in tcp_received()
77 if (datalen == 0) { /* EOF */ in tcp_received()
Dzperf_udp_receiver.c104 size_t datalen) in udp_received() argument
112 if (datalen < sizeof(struct zperf_udp_datagram)) { in udp_received()
195 session->length += datalen; in udp_received()
Dzperf_udp_uploader.c24 size_t datalen, in zperf_upload_decode_stat() argument
29 if (datalen < sizeof(struct zperf_udp_datagram) + in zperf_upload_decode_stat()
/Zephyr-latest/tests/net/socket/tls/src/
Dmain.c526 size_t datalen; member
535 test_send(test_data->sock, test_data->data, test_data->datalen, 0); in send_work_handler()
544 .datalen = sizeof(TEST_STR_SMALL) - 1 in test_msg_trunc()
1134 .datalen = sizeof(TEST_STR_SMALL) - 1 in ZTEST()
1234 size_t datalen; member
1245 while (off < test_data->datalen) { in recv_work_handler()
1246 size_t recvlen = MIN(sizeof(rx_buf), test_data->datalen - off); in recv_work_handler()
1254 zassert_true(off <= test_data->datalen, in recv_work_handler()
1266 .datalen = sizeof(TEST_STR_SMALL) - 1 in ZTEST()
1367 .datalen = sizeof(TEST_STR_SMALL) - 1 in ZTEST()
[all …]
/Zephyr-latest/subsys/net/lib/mqtt_sn/
Dmqtt_sn.c35 size_t datalen; member
192 pub->datalen = data->size; in mqtt_sn_publish_create()
517 p.params.publish.data.size = pub->datalen; in mqtt_sn_do_publish()
592 LOG_HEXDUMP_DBG(pub->pubdata, pub->datalen, "Processing publish data"); in process_pubs()