Home
last modified time | relevance | path

Searched refs:max_len (Results 1 – 25 of 36) sorted by relevance

12

/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/rfcomm/
Dport_api.c1225 int PORT_ReadData (UINT16 handle, char *p_data, UINT16 max_len, UINT16 *p_len) in PORT_ReadData() argument
1231 RFCOMM_TRACE_API ("PORT_ReadData() handle:%d max_len:%d", handle, max_len); in PORT_ReadData()
1257 while (max_len) in PORT_ReadData()
1264 if (p_buf->len > max_len) { in PORT_ReadData()
1265 memcpy (p_data, (UINT8 *)(p_buf + 1) + p_buf->offset, max_len); in PORT_ReadData()
1266 p_buf->offset += max_len; in PORT_ReadData()
1267 p_buf->len -= max_len; in PORT_ReadData()
1269 *p_len += max_len; in PORT_ReadData()
1273 p_port->rx.queue_size -= max_len; in PORT_ReadData()
1282 max_len -= p_buf->len; in PORT_ReadData()
[all …]
/hal_espressif-3.4.0/examples/protocols/mqtt/ssl_ds/
Dconfigure_ds.py114 max_len = max(supported_key_size[idf_target])
117 md_in = number_as_bytes(Y, max_len) + \
118 number_as_bytes(M, max_len) + \
119 number_as_bytes(rinv, max_len) + \
124 expected_len = (max_len / 8) * 3 + 8 + 16
131 p = number_as_bytes(Y, max_len) + \
132 number_as_bytes(M, max_len) + \
133 number_as_bytes(rinv, max_len) + \
139 expected_len = (max_len / 8) * 3 + 32 + 8 + 8
/hal_espressif-3.4.0/components/wpa_supplicant/src/utils/
Duuid.c49 int uuid_bin2str(const u8 *bin, char *str, size_t max_len) in uuid_bin2str() argument
52 len = snprintf(str, max_len, "%02x%02x%02x%02x-%02x%02x-%02x%02x-" in uuid_bin2str()
58 if (len < 0 || (size_t) len >= max_len) in uuid_bin2str()
Djson.c68 size_t max_len, buf_len; in json_parse_string() local
73 max_len = end - pos + 1; in json_parse_string()
74 buf_len = max_len > 10 ? 10 : max_len; in json_parse_string()
82 if (buf_len < max_len && s_end - spos < 3) { in json_parse_string()
88 if (buf_len > max_len) in json_parse_string()
89 buf_len = max_len; in json_parse_string()
Duuid.h15 int uuid_bin2str(const u8 *bin, char *str, size_t max_len);
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/gap/
Dgap_conn.c299 UINT16 GAP_ConnReadData (UINT16 gap_handle, UINT8 *p_data, UINT16 max_len, UINT16 *p_len) in GAP_ConnReadData() argument
316 while (max_len) { in GAP_ConnReadData()
322 copy_len = (p_buf->len > max_len)?max_len:p_buf->len; in GAP_ConnReadData()
323 max_len -= copy_len; in GAP_ConnReadData()
497 UINT16 GAP_ConnWriteData (UINT16 gap_handle, UINT8 *p_data, UINT16 max_len, UINT16 *p_len) in GAP_ConnWriteData() argument
512 while (max_len) { in GAP_ConnWriteData()
524 p_buf->len = (p_ccb->rem_mtu_size < max_len) ? p_ccb->rem_mtu_size : max_len; in GAP_ConnWriteData()
530 max_len -= p_buf->len; in GAP_ConnWriteData()
/hal_espressif-3.4.0/examples/bluetooth/nimble/bleprph/main/
Dgatt_svr.c89 gatt_svr_chr_write(struct os_mbuf *om, uint16_t min_len, uint16_t max_len, in gatt_svr_chr_write() argument
96 if (om_len < min_len || om_len > max_len) { in gatt_svr_chr_write()
100 rc = ble_hs_mbuf_to_flat(om, dst, max_len, len); in gatt_svr_chr_write()
/hal_espressif-3.4.0/examples/bluetooth/nimble/bleprph_wifi_coex/main/
Dgatt_svr.c90 gatt_svr_chr_write(struct os_mbuf *om, uint16_t min_len, uint16_t max_len, in gatt_svr_chr_write() argument
97 if (om_len < min_len || om_len > max_len) { in gatt_svr_chr_write()
101 rc = ble_hs_mbuf_to_flat(om, dst, max_len, len); in gatt_svr_chr_write()
/hal_espressif-3.4.0/examples/bluetooth/nimble/ble_spp/spp_server/main/
Dgatt_svr.c86 gatt_svr_chr_write(struct os_mbuf *om, uint16_t min_len, uint16_t max_len, in gatt_svr_chr_write() argument
93 if (om_len < min_len || om_len > max_len) { in gatt_svr_chr_write()
97 rc = ble_hs_mbuf_to_flat(om, dst, max_len, len); in gatt_svr_chr_write()
/hal_espressif-3.4.0/components/spi_flash/
Dmemspi_host_driver.c227 uint32_t max_len = MIN(end_bound - align_addr, SPI_FLASH_HAL_MAX_WRITE_BYTES); in memspi_host_write_data_slicer() local
229 return MIN(max_len, len); in memspi_host_write_data_slicer()
249 uint32_t max_len = SPI_FLASH_HAL_MAX_READ_BYTES; in memspi_host_read_data_slicer() local
251 return MIN(max_len, len); in memspi_host_read_data_slicer()
/hal_espressif-3.4.0/examples/bluetooth/nimble/throughput_app/bleprph_throughput/main/
Dgatt_svr.c97 struct os_mbuf *om, uint16_t min_len, uint16_t max_len, in gatt_svr_chr_write() argument
104 if (om_len < min_len || om_len > max_len) { in gatt_svr_chr_write()
108 rc = ble_hs_mbuf_to_flat(om, dst, max_len, len); in gatt_svr_chr_write()
/hal_espressif-3.4.0/components/esptool_py/esptool/flasher_stub/
Dslip.c80 uint32_t SLIP_recv(void *pkt, uint32_t max_len) { in SLIP_recv() argument
88 if(r >= 0 && len < max_len) { in SLIP_recv()
/hal_espressif-3.4.0/examples/peripherals/spi_slave_hd/segment_mode/seg_slave/main/
Dapp_main.c145 static bool get_tx_data(uint8_t *data, uint32_t max_len, uint32_t *out_len) in get_tx_data() argument
148 *out_len = (rand() % (max_len - min_len + 1)) + min_len; in get_tx_data()
149 if (*out_len < (max_len - min_len) / 2) { in get_tx_data()
/hal_espressif-3.4.0/examples/network/network_tests/main/
Dstdinout.c161 ssize_t netsuite_io_get_packet(char *packet, size_t max_len) in netsuite_io_get_packet() argument
174 if (size > max_len) { in netsuite_io_get_packet()
Dstdinout.h27 ssize_t netsuite_io_get_packet(char *packet, size_t max_len);
/hal_espressif-3.4.0/examples/system/ota/advanced_https_ota/main/ble_helper/
Dnimble_gatts.c68 gatt_svr_chr_write(struct os_mbuf *om, uint16_t min_len, uint16_t max_len, in gatt_svr_chr_write() argument
75 if (om_len < min_len || om_len > max_len) { in gatt_svr_chr_write()
79 rc = ble_hs_mbuf_to_flat(om, dst, max_len, len); in gatt_svr_chr_write()
/hal_espressif-3.4.0/components/esp_hid/include/
Desp_hidh.h206 …ture_get(esp_hidh_dev_t *dev, size_t map_index, size_t report_id, size_t max_len, uint8_t *data, s…
237 size_t max_len);
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/include/stack/
Dgap_api.h174 UINT16 max_len, UINT16 *p_len);
233 UINT16 max_len, UINT16 *p_len);
Dport_api.h580 extern int PORT_ReadData (UINT16 handle, char *p_data, UINT16 max_len,
611 extern int PORT_WriteData (UINT16 handle, char *p_data, UINT16 max_len,
/hal_espressif-3.4.0/components/wpa_supplicant/src/crypto/
Dms_funcs.c113 size_t len, max_len; in nt_password_hash() local
115 max_len = sizeof(buf); in nt_password_hash()
116 if (utf8_to_ucs2(password, password_len, buf, max_len, &len) < 0) in nt_password_hash()
/hal_espressif-3.4.0/components/bt/host/bluedroid/stack/hid/
Dhidh_api.c82 void hidh_get_str_attr( tSDP_DISC_REC *p_rec, UINT16 attr_id, UINT16 max_len, char *str ) in hidh_get_str_attr() argument
88 if ((name_len = SDP_DISC_ATTR_LEN(p_attr->attr_len_type)) < max_len ) { in hidh_get_str_attr()
92 memcpy( str, (char *) p_attr->attr_value.v.array, max_len - 1 ); in hidh_get_str_attr()
93 str[max_len - 1] = '\0'; in hidh_get_str_attr()
/hal_espressif-3.4.0/components/esptool_py/esptool/flasher_stub/include/
Dslip.h38 uint32_t SLIP_recv(void *pkt, uint32_t max_len);
/hal_espressif-3.4.0/components/esp_rom/include/
Desp_rom_uart.h89 int esp_rom_uart_rx_string(uint8_t *str, uint8_t max_len);
/hal_espressif-3.4.0/components/esp_http_server/src/
Dhttpd_ws.c245 esp_err_t httpd_ws_recv_frame(httpd_req_t *req, httpd_ws_frame_t *frame, size_t max_len) in httpd_ws_recv_frame() argument
325 if (frame->len > max_len) { in httpd_ws_recv_frame()
326 if (max_len == 0) { in httpd_ws_recv_frame()
/hal_espressif-3.4.0/components/wpa_supplicant/src/eap_peer/
Deap_fast_pac.h44 size_t max_len);

12