Home
last modified time | relevance | path

Searched refs:name_len (Results 1 – 24 of 24) sorted by relevance

/hal_espressif-2.7.6/examples/bluetooth/esp_hid_device/main/
Desp_hid_gap.c138 …p_bd_addr_t bda, esp_bt_cod_t *cod, esp_bt_uuid_t *uuid, uint8_t *name, uint8_t name_len, int rssi) in add_bt_scan_result() argument
143 if (r->name == NULL && name && name_len) { in add_bt_scan_result()
144 char *name_s = (char *)malloc(name_len + 1); in add_bt_scan_result()
149 memcpy(name_s, name, name_len); in add_bt_scan_result()
150 name_s[name_len] = 0; in add_bt_scan_result()
174 if (name_len && name) { in add_bt_scan_result()
175 char *name_s = (char *)malloc(name_len + 1); in add_bt_scan_result()
181 memcpy(name_s, name, name_len); in add_bt_scan_result()
182 name_s[name_len] = 0; in add_bt_scan_result()
190 …bda, esp_ble_addr_type_t addr_type, uint16_t appearance, uint8_t *name, uint8_t name_len, int rssi) in add_ble_scan_result() argument
[all …]
/hal_espressif-2.7.6/examples/bluetooth/esp_hid_host/main/
Desp_hid_gap.c138 …p_bd_addr_t bda, esp_bt_cod_t *cod, esp_bt_uuid_t *uuid, uint8_t *name, uint8_t name_len, int rssi) in add_bt_scan_result() argument
143 if (r->name == NULL && name && name_len) { in add_bt_scan_result()
144 char *name_s = (char *)malloc(name_len + 1); in add_bt_scan_result()
149 memcpy(name_s, name, name_len); in add_bt_scan_result()
150 name_s[name_len] = 0; in add_bt_scan_result()
174 if (name_len && name) { in add_bt_scan_result()
175 char *name_s = (char *)malloc(name_len + 1); in add_bt_scan_result()
181 memcpy(name_s, name, name_len); in add_bt_scan_result()
182 name_s[name_len] = 0; in add_bt_scan_result()
190 …bda, esp_ble_addr_type_t addr_type, uint16_t appearance, uint8_t *name, uint8_t name_len, int rssi) in add_ble_scan_result() argument
[all …]
/hal_espressif-2.7.6/components/mbedtls/esp_crt_bundle/
Desp_crt_bundle.c115 size_t name_len = 0; in esp_crt_verify_callback() local
125 name_len = s_crt_bundle.crts[middle][0] << 8 | s_crt_bundle.crts[middle][1]; in esp_crt_verify_callback()
128 int cmp_res = memcmp(child->issuer_raw.p, crt_name, name_len ); in esp_crt_verify_callback()
143 … esp_crt_check_signature(child, s_crt_bundle.crts[middle] + CRT_HEADER_OFFSET + name_len, key_len); in esp_crt_verify_callback()
176 size_t name_len = cur_crt[0] << 8 | cur_crt[1]; in esp_crt_bundle_init() local
178 cur_crt = cur_crt + CRT_HEADER_OFFSET + name_len + key_len; in esp_crt_bundle_init()
Dgen_crt_bundle.py144 name_len = len(sub_name_der)
146 len_data = struct.pack('>HH', name_len, key_len)
/hal_espressif-2.7.6/examples/bluetooth/hci/controller_vhci_ble_adv/main/
Dapp_bt.c87 uint8_t name_len = (uint8_t)strlen(adv_name); in hci_cmd_send_ble_set_adv_data() local
91 adv_data[3] = name_len + 1; in hci_cmd_send_ble_set_adv_data()
92 for (int i = 0; i < name_len; i++) { in hci_cmd_send_ble_set_adv_data()
95 adv_data_len = 5 + name_len; in hci_cmd_send_ble_set_adv_data()
/hal_espressif-2.7.6/examples/bluetooth/hci/ble_adv_scan_combined/main/
Dapp_bt.c23 uint8_t name_len; member
175 uint8_t name_len = (uint8_t)strlen(adv_name); in hci_cmd_send_ble_set_adv_data() local
179 adv_data[3] = name_len + 1; in hci_cmd_send_ble_set_adv_data()
180 for (int i = 0; i < name_len; i++) { in hci_cmd_send_ble_set_adv_data()
183 adv_data_len = 5 + name_len; in hci_cmd_send_ble_set_adv_data()
205 scanned_packet->name_len = curr_len - 1; in get_local_name()
344 for (int k = 0; k < scanned_name->name_len; k += 1 ) { in hci_evt_process()
/hal_espressif-2.7.6/components/espcoredump/src/
Dcore_dump_elf.c207 uint32_t name_len = strlen(name) + 1; // get name length including terminator in elf_write_note() local
212 ELF_CHECK_ERR((name_len <= ELF_NOTE_NAME_MAX_SIZE), 0, in elf_write_note()
213 "Segment note name is too long %d.", name_len); in elf_write_note()
216 ALIGN(4, name_len); in elf_write_note()
217 uint32_t note_size = name_len + data_len + sizeof(elf_note); in elf_write_note()
222 memcpy((void*)name_buffer, (void*)name, name_len); in elf_write_note()
223 note_hdr.n_namesz = name_len; in elf_write_note()
231 err = self->write_cfg->write(self->write_cfg->priv, (void*)name_buffer, name_len); in elf_write_note()
/hal_espressif-2.7.6/components/coap/port/
Dcoap_mbedtls.c232 const unsigned char *name, size_t name_len ) in psk_server_callback() argument
244 (int)name_len, name); in psk_server_callback()
256 lidentity.length = name_len; in psk_server_callback()
274 name_len, in psk_server_callback()
700 const unsigned char *uname, size_t name_len) in pki_sni_callback() argument
712 if (name_len == strlen(m_context->pki_sni_entry_list[i].sni) && in pki_sni_callback()
713 memcmp(uname, m_context->pki_sni_entry_list[i].sni, name_len) == 0) { in pki_sni_callback()
724 name = mbedtls_malloc(name_len+1); in pki_sni_callback()
725 memcpy(name, uname, name_len); in pki_sni_callback()
726 name[name_len] = '\000'; in pki_sni_callback()
[all …]
/hal_espressif-2.7.6/examples/bluetooth/nimble/blecent/main/
Dmisc.c147 assert(fields->name_len < sizeof s - 1); in print_adv_fields()
148 memcpy(s, fields->name, fields->name_len); in print_adv_fields()
149 s[fields->name_len] = '\0'; in print_adv_fields()
/hal_espressif-2.7.6/components/bt/host/bluedroid/btc/profile/std/hid/
Dhidh_api.c83 UINT16 name_len; in hidh_get_str_attr() local
86 if ((name_len = SDP_DISC_ATTR_LEN(p_attr->attr_len_type)) < max_len ) { in hidh_get_str_attr()
87 memcpy( str, (char *) p_attr->attr_value.v.array, name_len ); in hidh_get_str_attr()
88 str[name_len] = '\0'; in hidh_get_str_attr()
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/mesh_core/
Dproxy_server.c1108 size_t name_len = strlen(name); in gatt_proxy_adv_create() local
1112 if (name_len > sd_space) { in gatt_proxy_adv_create()
1117 proxy_sd->data_len = name_len; in gatt_proxy_adv_create()
1310 size_t name_len = strlen(name); in gatt_prov_adv_create() local
1332 if (sd_space > 2 && name_len > 0) { in gatt_prov_adv_create()
1335 if (sd_space < name_len) { in gatt_prov_adv_create()
1340 prov_sd[prov_sd_len].data_len = name_len; in gatt_prov_adv_create()
/hal_espressif-2.7.6/components/esp_hid/src/
Dble_hidd.c272 size_t name_len = strlen(dev->config.manufacturer_name); in create_info_db() local
274 …, (uint8_t *)&s_device_info_manufacturer_uuid, ESP_GATT_PERM_READ, name_len, name_len, (uint8_t *)… in create_info_db()
278 size_t name_len = strlen(dev->config.serial_number); in create_info_db() local
280 …++, (uint8_t *)&s_device_info_serial_num_uuid, ESP_GATT_PERM_READ, name_len, name_len, (uint8_t *)… in create_info_db()
/hal_espressif-2.7.6/components/bt/host/bluedroid/api/include/api/
Desp_blufi_api.h231 int name_len; /*!< Username length */ member
/hal_espressif-2.7.6/examples/bluetooth/nimble/blehr/main/
Dmain.c110 fields.name_len = strlen(device_name); in blehr_advertise()
/hal_espressif-2.7.6/components/wpa_supplicant/src/ap/
Dap_config.h153 u8 name_len;
/hal_espressif-2.7.6/examples/bluetooth/nimble/bleprph/main/
Dmain.c104 fields.name_len = strlen(name); in bleprph_advertise()
/hal_espressif-2.7.6/components/bt/host/bluedroid/btc/profile/esp/blufi/
Dblufi_protocol.c204 param.username.name_len = len; in btc_blufi_protocol_handler()
Dblufi_prf.c755 dst->username.name = osi_malloc(src->username.name_len); in btc_blufi_cb_deep_copy()
759 memcpy(dst->username.name, src->username.name, src->username.name_len); in btc_blufi_cb_deep_copy()
/hal_espressif-2.7.6/examples/bluetooth/nimble/bleprph_wifi_coex/main/
Dmain.c349 fields.name_len = strlen(name); in bleprph_advertise()
/hal_espressif-2.7.6/components/mdns/
Dmdns.c2570 int name_len = _mdns_txt_item_name_get_len(data+i, partLen); in _mdns_result_txt_create() local
2571 if (name_len < 0) {//invalid item (no name) in _mdns_result_txt_create()
2575 char * key = (char *)malloc(name_len + 1); in _mdns_result_txt_create()
2583 memcpy(key, data + i, name_len); in _mdns_result_txt_create()
2584 key[name_len] = 0; in _mdns_result_txt_create()
2585 i += name_len + 1; in _mdns_result_txt_create()
2588 int value_len = partLen - name_len - 1; in _mdns_result_txt_create()
/hal_espressif-2.7.6/components/protocomm/src/transports/
Dprotocomm_nimble.c508 resp_data.name_len = strlen(ble_svc_gap_device_name()); in simple_ble_start()
/hal_espressif-2.7.6/components/wpa_supplicant/src/common/
Ddpp.c1817 size_t len, name_len; in dpp_build_conf_req_helper() local
1832 name_len = os_strlen(dpp_name); in dpp_build_conf_req_helper()
1834 len = 100 + name_len * 6 + 1 + int_array_len(opclasses) * 4; in dpp_build_conf_req_helper()
1842 if (json_add_string_escape(json, "name", dpp_name, name_len) < 0) { in dpp_build_conf_req_helper()
/hal_espressif-2.7.6/components/bt/host/bluedroid/stack/include/stack/
Dbtm_api.h3698 BT_OCTET16 r, UINT8 name_len);
/hal_espressif-2.7.6/components/bt/host/bluedroid/stack/btm/
Dbtm_sec.c1736 BT_OCTET16 r, UINT8 name_len) in BTM_BuildOobData() argument
1785 name_size = name_len; in BTM_BuildOobData()