/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/gatt/ |
D | gatt_sr_hash.c | 11 static void attr_uuid_to_bt_uuid(void *p_attr, tBT_UUID *p_uuid) in attr_uuid_to_bt_uuid() argument 13 tGATT_ATTR16 *p_attr16 = (tGATT_ATTR16 *)p_attr; in attr_uuid_to_bt_uuid() 19 tGATT_ATTR32 *p_attr32 = (tGATT_ATTR32 *)p_attr; in attr_uuid_to_bt_uuid() 23 tGATT_ATTR128 *p_attr128 = (tGATT_ATTR128 *)p_attr; in attr_uuid_to_bt_uuid() 33 tGATT_ATTR16 *p_attr; in calculate_database_info_size() local 39 p_attr = (tGATT_ATTR16 *)p_db->p_attr_list; in calculate_database_info_size() 40 while (p_attr) { in calculate_database_info_size() 41 if (p_attr->uuid == GATT_UUID_PRI_SERVICE || in calculate_database_info_size() 42 p_attr->uuid == GATT_UUID_SEC_SERVICE) { in calculate_database_info_size() 44 len += 4 + p_attr->p_value->uuid.len; in calculate_database_info_size() [all …]
|
D | gatt_db.c | 46 static BOOLEAN deallocate_attr_in_db(tGATT_SVC_DB *p_db, void *p_attr); 120 static tGATT_STATUS gatts_check_attr_readability(tGATT_ATTR16 *p_attr, in gatts_check_attr_readability() argument 127 tGATT_PERM perm = p_attr->permission; in gatts_check_attr_readability() 167 switch (p_attr->uuid) { in gatts_check_attr_readability() 205 static tGATT_STATUS read_attr_value (void *p_attr, in read_attr_value() argument 217 tGATT_ATTR16 *p_attr16 = (tGATT_ATTR16 *)p_attr; in read_attr_value() 226 …status = gatts_check_attr_readability((tGATT_ATTR16 *)p_attr, offset, read_long, sec_flag, key_siz… in read_attr_value() 339 tGATT_ATTR16 *p_attr; in gatts_db_read_attr_value_by_type() local 350 p_attr = (tGATT_ATTR16 *)p_db->p_attr_list; in gatts_db_read_attr_value_by_type() 352 while (p_attr && p_attr->handle <= e_handle) { in gatts_db_read_attr_value_by_type() [all …]
|
D | gatt_auth.c | 46 tGATT_VALUE *p_attr = (tGATT_VALUE *)p_clcb->p_attr_buf; in gatt_sign_data() local 55 p_data = (UINT8 *)osi_malloc((UINT16)(p_attr->len + 3)); /* 3 = 2 byte handle + opcode */ in gatt_sign_data() 60 UINT16_TO_STREAM(p, p_attr->handle); in gatt_sign_data() 61 ARRAY_TO_STREAM(p, p_attr->value, p_attr->len); in gatt_sign_data() 64 if ((payload_size - GATT_AUTH_SIGN_LEN - 3) < p_attr->len) { in gatt_sign_data() 65 p_attr->len = payload_size - GATT_AUTH_SIGN_LEN - 3; in gatt_sign_data() 68 p_signature = p_attr->value + p_attr->len; in gatt_sign_data() 71 (UINT16)(p_attr->len + 3), /* 3 = 2 byte handle + opcode */ in gatt_sign_data() 73 p_attr->len += BTM_BLE_AUTH_SIGN_LEN; in gatt_sign_data()
|
D | gatt_sr.c | 538 …if((queue_data->p_attr->p_value != NULL) && (queue_data->p_attr->p_value->attr_val.attr_val != NUL… in gatt_process_exec_write_req() 541 queue_data->p_attr->p_value->attr_val.attr_len = 0; in gatt_process_exec_write_req() 544 …memcpy(queue_data->p_attr->p_value->attr_val.attr_val+queue_data->offset, queue_data->value, queue… in gatt_process_exec_write_req() 546 queue_data->p_attr->p_value->attr_val.attr_len += queue_data->len; in gatt_process_exec_write_req() 800 tGATT_ATTR16 *p_attr = NULL; in gatt_build_find_info_rsp() local 808 p_attr = (tGATT_ATTR16 *) p_rcb->p_db->p_attr_list; in gatt_build_find_info_rsp() 812 while (p_attr) { in gatt_build_find_info_rsp() 813 if (p_attr->handle > e_hdl) { in gatt_build_find_info_rsp() 817 if (p_attr->handle >= s_hdl) { in gatt_build_find_info_rsp() 819 …p_msg->offset = (p_attr->uuid_type == GATT_ATTR_UUID_TYPE_16) ? GATT_INFO_TYPE_PAIR_16 : GATT_INFO… in gatt_build_find_info_rsp() [all …]
|
D | gatt_cl.c | 229 tGATT_VALUE *p_attr = (tGATT_VALUE *)p_clcb->p_attr_buf; in gatt_act_write() local 231 if (p_attr) { in gatt_act_write() 235 p_clcb->s_handle = p_attr->handle; in gatt_act_write() 240 p_attr->handle, in gatt_act_write() 241 p_attr->len, in gatt_act_write() 243 p_attr->value); in gatt_act_write() 247 if (p_attr->len <= (p_tcb->payload_size - GATT_HDR_SIZE)) { in gatt_act_write() 248 p_clcb->s_handle = p_attr->handle; in gatt_act_write() 253 p_attr->handle, in gatt_act_write() 254 p_attr->len, in gatt_act_write() [all …]
|
D | gatt_utils.c | 445 tGATT_ATTR16 *p_attr = p_db->p_attr_list; in gatt_free_attr_value_buffer() local 448 while(p_attr){ in gatt_free_attr_value_buffer() 449 if (p_attr->mask & GATT_ATTR_VALUE_ALLOCATED){ in gatt_free_attr_value_buffer() 450 p_value = p_attr->p_value; in gatt_free_attr_value_buffer() 455 p_attr = p_attr->p_next; in gatt_free_attr_value_buffer()
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/sdp/ |
D | sdp_api.c | 267 tSDP_DISC_ATTR *p_attr; in SDP_FindAttributeInDb() local 281 p_attr = p_rec->p_first_attr; in SDP_FindAttributeInDb() 282 while (p_attr) { in SDP_FindAttributeInDb() 283 if (p_attr->attr_id == attr_id) { in SDP_FindAttributeInDb() 287 p_attr = p_attr->p_next_attr; in SDP_FindAttributeInDb() 311 tSDP_DISC_ATTR *p_attr; in SDP_FindAttributeInRec() local 313 p_attr = p_rec->p_first_attr; in SDP_FindAttributeInRec() 314 while (p_attr) { in SDP_FindAttributeInRec() 315 if (p_attr->attr_id == attr_id) { in SDP_FindAttributeInRec() 316 return (p_attr); in SDP_FindAttributeInRec() [all …]
|
D | sdp_utils.c | 177 UINT8 *sdpu_build_attrib_seq (UINT8 *p_out, UINT16 *p_attr, UINT16 num_attrs) in sdpu_build_attrib_seq() argument 183 if (!p_attr) { in sdpu_build_attrib_seq() 198 if (!p_attr) { in sdpu_build_attrib_seq() 204 for (xx = 0; xx < num_attrs; xx++, p_attr++) { in sdpu_build_attrib_seq() 206 UINT16_TO_BE_STREAM (p_out, *p_attr); in sdpu_build_attrib_seq() 225 UINT8 *sdpu_build_attrib_entry (UINT8 *p_out, tSDP_ATTRIBUTE *p_attr) in sdpu_build_attrib_entry() argument 229 UINT16_TO_BE_STREAM (p_out, p_attr->id); in sdpu_build_attrib_entry() 233 switch (p_attr->type) { in sdpu_build_attrib_entry() 239 if (p_attr->len > 0xFFFF) { in sdpu_build_attrib_entry() 240 UINT8_TO_BE_STREAM (p_out, (p_attr->type << 3) | SIZE_IN_NEXT_LONG); in sdpu_build_attrib_entry() [all …]
|
D | sdp_db.c | 66 tSDP_ATTRIBUTE *p_attr; in sdp_db_service_search() local 87 p_attr = &p_rec->attribute[0]; in sdp_db_service_search() 88 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++) { in sdp_db_service_search() 89 if (p_attr->type == UUID_DESC_TYPE) { in sdp_db_service_search() 90 if (sdpu_compare_uuid_arrays (p_attr->value_ptr, p_attr->len, in sdp_db_service_search() 95 } else if (p_attr->type == DATA_ELE_SEQ_DESC_TYPE) { in sdp_db_service_search() 96 if (find_uuid_in_seq (p_attr->value_ptr, p_attr->len, in sdp_db_service_search() 443 tSDP_ATTRIBUTE *p_attr = &p_rec->attribute[0]; in SDP_AddAttribute() local 446 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++) { in SDP_AddAttribute() 448 if (p_attr->id == attr_id) { in SDP_AddAttribute() [all …]
|
D | sdp_discovery.c | 814 tSDP_DISC_ATTR *p_attr; in add_attr() local 846 p_attr = (tSDP_DISC_ATTR *) p_db->p_free_mem; in add_attr() 847 p_attr->attr_id = attr_id; in add_attr() 848 p_attr->attr_len_type = (UINT16)attr_len | (attr_type << 12); in add_attr() 849 p_attr->p_next_attr = NULL; in add_attr() 872 … p = add_attr (p, p_db, p_rec, ATTR_ID_PROTOCOL_DESC_LIST, p_attr, (UINT8)(nest_level + 1)); in add_attr() 882 p_attr->attr_value.v.u8 = *p++; in add_attr() 885 BE_STREAM_TO_UINT16 (p_attr->attr_value.v.u16, p); in add_attr() 888 BE_STREAM_TO_UINT32 (p_attr->attr_value.v.u32, p); in add_attr() 891 BE_STREAM_TO_ARRAY (p, p_attr->attr_value.v.array, (INT32)attr_len); in add_attr() [all …]
|
D | sdp_server.c | 317 tSDP_ATTRIBUTE *p_attr; in process_service_attr_req() local 408 …p_attr = sdp_db_find_attr_in_rec (p_rec, attr_seq.attr_entry[xx].start, attr_seq.attr_entry[xx].en… in process_service_attr_req() 410 if (p_attr) { in process_service_attr_req() 417 p_ccb->cont_info.next_attr_start_id = p_attr->id; in process_service_attr_req() 421 attr_len = sdpu_get_attrib_entry_len(p_attr); in process_service_attr_req() 424 p_rsp = sdpu_build_partial_attrib_entry (p_rsp, p_attr, rem_len, in process_service_attr_req() 441 p_rsp = sdpu_build_partial_attrib_entry (p_rsp, p_attr, (UINT16)rem_len, in process_service_attr_req() 445 p_ccb->cont_info.next_attr_start_id = p_attr->id; in process_service_attr_req() 448 p_rsp = sdpu_build_attrib_entry (p_rsp, p_attr); in process_service_attr_req() 454 attr_seq.attr_entry[xx].start = p_attr->id + 1; in process_service_attr_req() [all …]
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/sdp/ |
D | bta_sdp_act.c | 110 tSDP_DISC_ATTR *p_attr; in bta_create_mns_sdp_record() local 121 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_MAP_SUPPORTED_FEATURES)) != NULL) { in bta_create_mns_sdp_record() 122 record->mns.supported_features = p_attr->attr_value.v.u32; in bta_create_mns_sdp_record() 125 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME)) != NULL) { in bta_create_mns_sdp_record() 126 record->mns.hdr.service_name_length = SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in bta_create_mns_sdp_record() 127 record->mns.hdr.service_name = (char *)p_attr->attr_value.v.array; in bta_create_mns_sdp_record() 138 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_GOEP_L2CAP_PSM)) != NULL) { in bta_create_mns_sdp_record() 139 record->mns.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_mns_sdp_record() 145 tSDP_DISC_ATTR *p_attr; in bta_create_mas_sdp_record() local 159 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_MAS_INSTANCE_ID)) != NULL) { in bta_create_mas_sdp_record() [all …]
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/hid/ |
D | hidh_api.c | 84 tSDP_DISC_ATTR *p_attr; in hidh_get_str_attr() local 87 if ((p_attr = SDP_FindAttributeInRec(p_rec, attr_id)) != NULL) { in hidh_get_str_attr() 88 if ((name_len = SDP_DISC_ATTR_LEN(p_attr->attr_len_type)) < max_len ) { in hidh_get_str_attr() 89 memcpy( str, (char *) p_attr->attr_value.v.array, name_len ); in hidh_get_str_attr() 92 memcpy( str, (char *) p_attr->attr_value.v.array, max_len - 1 ); in hidh_get_str_attr() 105 tSDP_DISC_ATTR *p_attr, *p_subattr1, *p_subattr2, *p_repdesc; in hidh_search_callback() local 128 if (((p_attr = SDP_FindAttributeInRec (p_rec, ATTR_ID_HID_DESCRIPTOR_LIST)) == NULL) in hidh_search_callback() 129 || (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) != DATA_ELE_SEQ_DESC_TYPE) in hidh_search_callback() 130 || ((p_subattr1 = p_attr->attr_value.v.p_sub_attr) == NULL) in hidh_search_callback() 143 if (((p_attr = SDP_FindAttributeInRec (p_rec, ATTR_ID_HID_VIRTUAL_CABLE)) != NULL) && in hidh_search_callback() [all …]
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/a2dp/ |
D | a2d_api.c | 62 tSDP_DISC_ATTR *p_attr; in a2d_sdp_cback() local 80 if ((p_attr = SDP_FindAttributeInRec(p_rec, in a2d_sdp_cback() 82 a2d_svc.p_service_name = (char *) p_attr->attr_value.v.array; in a2d_sdp_cback() 83 a2d_svc.service_len = SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in a2d_sdp_cback() 87 if ((p_attr = SDP_FindAttributeInRec(p_rec, in a2d_sdp_cback() 89 a2d_svc.p_provider_name = (char *) p_attr->attr_value.v.array; in a2d_sdp_cback() 90 a2d_svc.provider_len = SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in a2d_sdp_cback() 94 if ((p_attr = SDP_FindAttributeInRec(p_rec, in a2d_sdp_cback() 96 a2d_svc.features = p_attr->attr_value.v.u16; in a2d_sdp_cback()
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/gatt/ |
D | bta_gattc_cache.c | 57 void bta_gattc_fill_gatt_db_el(btgatt_db_element_t *p_attr, 1307 void bta_gattc_fill_gatt_db_el(btgatt_db_element_t *p_attr, in bta_gattc_fill_gatt_db_el() argument 1313 p_attr->type = type; in bta_gattc_fill_gatt_db_el() 1314 p_attr->attribute_handle = att_handle; in bta_gattc_fill_gatt_db_el() 1315 p_attr->start_handle = s_handle; in bta_gattc_fill_gatt_db_el() 1316 p_attr->end_handle = e_handle; in bta_gattc_fill_gatt_db_el() 1317 p_attr->id = id; in bta_gattc_fill_gatt_db_el() 1318 p_attr->properties = prop; in bta_gattc_fill_gatt_db_el() 1319 bta_to_btif_uuid(&p_attr->uuid, &uuid); in bta_gattc_fill_gatt_db_el() 1945 tBTA_GATTC_NV_ATTR *p_attr) in bta_gattc_rebuild_cache() argument [all …]
|
D | bta_gattc_ci.c | 84 tBTA_GATTC_NV_ATTR *p_attr, tBTA_GATT_STATUS status, in bta_gattc_ci_cache_load() argument 99 if (p_evt->num_attr > 0 && p_attr != NULL) { in bta_gattc_ci_cache_load() 100 memcpy(p_evt->attr, p_attr, p_evt->num_attr * sizeof(tBTA_GATTC_NV_ATTR)); in bta_gattc_ci_cache_load()
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/hf_client/ |
D | bta_hf_client_sdp.c | 226 tSDP_DISC_ATTR *p_attr; in bta_hf_client_sdp_find_attr() local 252 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_FEATURES)) != NULL) { in bta_hf_client_sdp_find_attr() 257 bta_hf_client_cb.scb.peer_features = p_attr->attr_value.v.u16; in bta_hf_client_sdp_find_attr() 266 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_NETWORK)) != NULL) { in bta_hf_client_sdp_find_attr() 267 if (p_attr->attr_value.v.u16 == 0x01) { in bta_hf_client_sdp_find_attr()
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/sdp/include/ |
D | sdpint.h | 270 extern UINT8 *sdpu_build_attrib_seq (UINT8 *p_out, UINT16 *p_attr, UINT16 num_attrs); 271 extern UINT8 *sdpu_build_attrib_entry (UINT8 *p_out, tSDP_ATTRIBUTE *p_attr); 281 extern BOOLEAN sdpu_compare_uuid_with_attr (tBT_UUID *p_btuuid, tSDP_DISC_ATTR *p_attr); 286 extern UINT16 sdpu_get_attrib_entry_len(tSDP_ATTRIBUTE *p_attr); 287 extern UINT8 *sdpu_build_partial_attrib_entry (UINT8 *p_out, tSDP_ATTRIBUTE *p_attr, UINT16 len, UI…
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/hf_ag/ |
D | bta_ag_sdp.c | 286 tSDP_DISC_ATTR *p_attr; in bta_ag_sdp_find_attr() local 329 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_FEATURES)) != NULL) { in bta_ag_sdp_find_attr() 334 p_scb->peer_features = p_attr->attr_value.v.u16; in bta_ag_sdp_find_attr() 338 … if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_REMOTE_AUDIO_VOLUME_CONTROL)) != NULL) { in bta_ag_sdp_find_attr() 340 if (p_attr->attr_value.v.u8) { in bta_ag_sdp_find_attr()
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/av/ |
D | bta_av_act.c | 1502 tSDP_DISC_ATTR *p_attr; in bta_av_check_peer_rc_features() local 1536 if ((p_attr = SDP_FindAttributeInRec(p_rec, in bta_av_check_peer_rc_features() 1538 categories = p_attr->attr_value.v.u16; in bta_av_check_peer_rc_features()
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/jv/ |
D | bta_jv_act.c | 964 tSDP_DISC_ATTR *p_attr = NULL; in bta_jv_start_discovery_cback() local 974 … if ((p_attr = SDP_FindAttributeInRec(p_sdp_rec, ATTR_ID_SERVICE_NAME)) != NULL) { in bta_jv_start_discovery_cback() 975 dcomp.service_name[dcomp.scn_num] = (char *)p_attr->attr_value.v.array; in bta_jv_start_discovery_cback()
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/gatt/include/ |
D | gatt_int.h | 352 tGATT_ATTR16 *p_attr; member
|