Home
last modified time | relevance | path

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

/hal_espressif-3.7.0/components/bt/host/bluedroid/btc/core/
Dbtc_config.c194 size_t value_len = strlen(value_str); in btc_config_get_bin() local
195 if ((value_len % 2) != 0 || *length < (value_len / 2)) { in btc_config_get_bin()
199 for (size_t i = 0; i < value_len; ++i) in btc_config_get_bin()
225 size_t value_len = strlen(value_str); in btc_config_get_bin_length() local
226 return ((value_len % 2) != 0) ? 0 : (value_len / 2); in btc_config_get_bin_length()
/hal_espressif-3.7.0/components/bt/host/bluedroid/api/
Desp_gattc_api.c483 uint16_t value_len, in esp_ble_gattc_write_char() argument
509 … arg.write_char.value_len = value_len > ESP_GATT_MAX_ATTR_LEN ? ESP_GATT_MAX_ATTR_LEN : value_len; in esp_ble_gattc_write_char()
522 uint16_t value_len, in esp_ble_gattc_write_char_descr() argument
548 … arg.write_descr.value_len = value_len > ESP_GATT_MAX_ATTR_LEN ? ESP_GATT_MAX_ATTR_LEN : value_len; in esp_ble_gattc_write_char_descr()
562 uint16_t value_len, in esp_ble_gattc_prepare_write() argument
588 …arg.prep_write.value_len = value_len > ESP_GATT_MAX_ATTR_LEN ? ESP_GATT_MAX_ATTR_LEN : value_len; … in esp_ble_gattc_prepare_write()
599 uint16_t value_len, in esp_ble_gattc_prepare_write_char_descr() argument
625 …arg.prep_write_descr.value_len = value_len > ESP_GATT_MAX_ATTR_LEN ? ESP_GATT_MAX_ATTR_LEN : value… in esp_ble_gattc_prepare_write_char_descr()
Desp_gatts_api.c256 uint16_t value_len, uint8_t *value, bool need_confirm) in esp_ble_gatts_send_indicate() argument
280 arg.send_ind.value_len = value_len; in esp_ble_gatts_send_indicate()
/hal_espressif-3.7.0/components/bt/host/bluedroid/api/include/api/
Desp_gattc_api.h136 uint16_t value_len; /*!< Characteristic value length */ member
164 uint16_t value_len; /*!< Notify attribute value */ member
693 uint16_t value_len,
718 uint16_t value_len,
744 uint16_t value_len,
769 uint16_t value_len,
Desp_gatts_api.h482 uint16_t value_len, uint8_t *value, bool need_confirm);
/hal_espressif-3.7.0/components/bt/host/bluedroid/btc/profile/std/include/
Dbtc_gattc.h124 uint16_t value_len; member
133 uint16_t value_len; member
144 uint16_t value_len; member
153 uint16_t value_len; member
Dbtc_gatts.h107 uint16_t value_len; member
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/gatt/
Dgatt_cl.c103 cl_req.find_type_value.value_len = p_clcb->uuid.len; in gatt_act_discovery()
106 cl_req.find_type_value.value_len = LEN_UUID_128; in gatt_act_discovery()
774 UINT8 *p = p_data, value_len, handle_len = 2; in gatt_process_read_by_type_rsp() local
788 STREAM_TO_UINT8(value_len, p); in gatt_process_read_by_type_rsp()
790 if ((value_len > (p_tcb->payload_size - 2)) || (value_len > (len - 1)) ) { in gatt_process_read_by_type_rsp()
794 op_code, value_len, (p_tcb->payload_size - 2), (len - 1)); in gatt_process_read_by_type_rsp()
803 value_len -= handle_len; /* substract the handle pairs bytes */ in gatt_process_read_by_type_rsp()
806 while (len >= (handle_len + value_len)) { in gatt_process_read_by_type_rsp()
833 … if (!gatt_parse_uuid_from_cmd(&record_value.group_value.service_type, value_len, &p)) { in gatt_process_read_by_type_rsp()
851 if (value_len == 6) { in gatt_process_read_by_type_rsp()
[all …]
Datt_protocol.c167 UINT16 len = p_value_type->value_len; in attp_build_read_by_type_value_cmd()
181 if (p_value_type->value_len + p_buf->len > payload_size ) { in attp_build_read_by_type_value_cmd()
Dgatt_sr.c1474 UINT16 offset = 0, value_len = 0; in gatts_process_read_req() local
1502 &value_len, in gatts_process_read_req()
1508 p_msg->len += value_len; in gatts_process_read_req()
/hal_espressif-3.7.0/components/bt/host/bluedroid/btc/profile/std/gatt/
Dbtc_gattc.c35 dst->write_char.value = (uint8_t *)osi_malloc(src->write_char.value_len); in btc_gattc_arg_deep_copy()
37 memcpy(dst->write_char.value, src->write_char.value, src->write_char.value_len); in btc_gattc_arg_deep_copy()
44 dst->write_descr.value = (uint8_t *)osi_malloc(src->write_descr.value_len); in btc_gattc_arg_deep_copy()
46 memcpy(dst->write_descr.value, src->write_descr.value, src->write_descr.value_len); in btc_gattc_arg_deep_copy()
53 dst->prep_write.value = (uint8_t *)osi_malloc(src->prep_write.value_len); in btc_gattc_arg_deep_copy()
55 memcpy(dst->prep_write.value, src->prep_write.value, src->prep_write.value_len); in btc_gattc_arg_deep_copy()
62 dst->prep_write_descr.value = (uint8_t *)osi_malloc(src->prep_write_descr.value_len); in btc_gattc_arg_deep_copy()
64 … memcpy(dst->prep_write_descr.value, src->prep_write_descr.value, src->prep_write_descr.value_len); in btc_gattc_arg_deep_copy()
624 arg->write_char.value_len, in btc_gattc_write_char()
633 descr_val.len = arg->write_descr.value_len; in btc_gattc_write_char_descr()
[all …]
Dbtc_gatt_util.c183 p_dest->read.value_len = p_src->p_value->len; in set_read_value()
189 p_dest->read.value_len = 0; in set_read_value()
Dbtc_gatts.c68 if (src->send_ind.value && (src->send_ind.value_len > 0)) { in btc_gatts_arg_deep_copy()
69 dst->send_ind.value = (uint8_t *) osi_malloc(src->send_ind.value_len); in btc_gatts_arg_deep_copy()
71 memcpy(dst->send_ind.value, src->send_ind.value, src->send_ind.value_len); in btc_gatts_arg_deep_copy()
672 … arg->send_ind.value_len, arg->send_ind.value, arg->send_ind.need_confirm); in btc_gatts_call_handler()
/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/gatt/
Dbta_gatts_api.c278 UINT16 value_len = 0; in BTA_GATTS_AddCharDescriptor() local
298 value_len = attr_val->attr_len; in BTA_GATTS_AddCharDescriptor()
299 if (value_len != 0){ in BTA_GATTS_AddCharDescriptor()
300 p_buf->attr_val.attr_val = (uint8_t*)osi_malloc(value_len); in BTA_GATTS_AddCharDescriptor()
302 memcpy(p_buf->attr_val.attr_val, attr_val->attr_val, value_len); in BTA_GATTS_AddCharDescriptor()
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_core/nimble_host/
Dmesh_bearer_adapt.c1066 const void *value, uint16_t value_len) in bt_mesh_gatts_attr_read() argument
1070 if (offset > value_len) { in bt_mesh_gatts_attr_read()
1074 len = MIN(buf_len, value_len - offset); in bt_mesh_gatts_attr_read()
1096 uint8_t value_len; in bt_mesh_gatts_attr_read_included() local
1100 value_len = sizeof(pdu.start_handle) + sizeof(pdu.end_handle); in bt_mesh_gatts_attr_read_included()
1108 value_len += sizeof(pdu.uuid16); in bt_mesh_gatts_attr_read_included()
1111 return bt_mesh_gatts_attr_read(conn, attr, buf, len, offset, &pdu, value_len); in bt_mesh_gatts_attr_read_included()
1146 uint8_t value_len; in bt_mesh_gatts_attr_read_chrc() local
1163 value_len = sizeof(pdu.properties) + sizeof(pdu.value_handle); in bt_mesh_gatts_attr_read_chrc()
1167 value_len += 2; in bt_mesh_gatts_attr_read_chrc()
[all …]
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_core/bluedroid_host/
Dmesh_bearer_adapt.c722 const void *value, uint16_t value_len) in bt_mesh_gatts_attr_read() argument
726 if (offset > value_len) { in bt_mesh_gatts_attr_read()
730 len = MIN(buf_len, value_len - offset); in bt_mesh_gatts_attr_read()
752 uint8_t value_len = 0U; in bt_mesh_gatts_attr_read_included() local
756 value_len = sizeof(pdu.start_handle) + sizeof(pdu.end_handle); in bt_mesh_gatts_attr_read_included()
764 value_len += sizeof(pdu.uuid16); in bt_mesh_gatts_attr_read_included()
767 return bt_mesh_gatts_attr_read(conn, attr, buf, len, offset, &pdu, value_len); in bt_mesh_gatts_attr_read_included()
802 uint8_t value_len = 0U; in bt_mesh_gatts_attr_read_chrc() local
819 value_len = sizeof(pdu.properties) + sizeof(pdu.value_handle); in bt_mesh_gatts_attr_read_chrc()
823 value_len += 2; in bt_mesh_gatts_attr_read_chrc()
[all …]
/hal_espressif-3.7.0/components/wpa_supplicant/src/tls/
Dtlsv1_cred.c614 size_t value_len; in pkcs12_safebag() local
635 value_len = hdr.length; in pkcs12_safebag()
636 wpa_hexdump_key(MSG_MSGDUMP, "PKCS #12: bagValue", value, value_len); in pkcs12_safebag()
667 return pkcs12_keybag(cred, value, value_len); in pkcs12_safebag()
669 return pkcs12_pkcs8_keybag(cred, value, value_len, passwd); in pkcs12_safebag()
671 return pkcs12_certbag(cred, value, value_len); in pkcs12_safebag()
/hal_espressif-3.7.0/components/bt/common/btc/profile/esp/blufi/
Dblufi_prf.c429 static void btc_blufi_send_custom_data(uint8_t *value, uint32_t value_len) in btc_blufi_send_custom_data() argument
431 if(value == NULL || value_len == 0) { in btc_blufi_send_custom_data()
435 uint8_t *data = osi_malloc(value_len); in btc_blufi_send_custom_data()
441 memcpy(data, value, value_len); in btc_blufi_send_custom_data()
442 btc_blufi_send_encap(type, data, value_len); in btc_blufi_send_custom_data()
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_models/client/
Dsensor_client.c353 void *value, uint16_t value_len, bool need_ack) in sensor_act_state() argument
358 msg = bt_mesh_alloc_buf(value_len); in sensor_act_state()
Dtime_scene_client.c393 void *value, uint16_t value_len, bool need_ack) in time_scene_set_state() argument
398 msg = bt_mesh_alloc_buf(value_len); in time_scene_set_state()
Dgeneric_client.c728 void *value, uint16_t value_len, bool need_ack) in gen_set_state() argument
733 msg = bt_mesh_alloc_buf(value_len); in gen_set_state()
Dlighting_client.c793 void *value, uint16_t value_len, bool need_ack) in light_set_state() argument
798 msg = bt_mesh_alloc_buf(value_len); in light_set_state()
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_core/include/
Dmesh_bearer_adapt.h712 const void *value, uint16_t value_len);
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/gatt/include/
Dgatt_int.h114 UINT16 value_len; /* length of the attribute value */ member