Home
last modified time | relevance | path

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

/hal_espressif-2.7.6/components/bt/host/bluedroid/btc/profile/std/gatt/
Dbtc_gatt_util.c31 int uuidType(unsigned char *p_uuid) in uuidType() argument
42 if (p_uuid[i] == BASE_UUID[i]) { in uuidType()
46 if (p_uuid[i] != 0) { in uuidType()
164 uint16_t get_uuid16(tBT_UUID *p_uuid) in get_uuid16() argument
166 if (p_uuid->len == LEN_UUID_16) { in get_uuid16()
167 return p_uuid->uu.uuid16; in get_uuid16()
168 } else if (p_uuid->len == LEN_UUID_128) { in get_uuid16()
170 UINT8 *p = &p_uuid->uu.uuid128[LEN_UUID_128 - 4]; in get_uuid16()
174 return (UINT16) p_uuid->uu.uuid32; in get_uuid16()
/hal_espressif-2.7.6/components/bt/host/bluedroid/btc/core/
Dbtc_util.c254 void uuid_to_string_legacy(bt_uuid_t *p_uuid, char *str) in uuid_to_string_legacy() argument
259 memcpy(&uuid0, &(p_uuid->uu[0]), 4); in uuid_to_string_legacy()
260 memcpy(&uuid1, &(p_uuid->uu[4]), 2); in uuid_to_string_legacy()
261 memcpy(&uuid2, &(p_uuid->uu[6]), 2); in uuid_to_string_legacy()
262 memcpy(&uuid3, &(p_uuid->uu[8]), 2); in uuid_to_string_legacy()
263 memcpy(&uuid4, &(p_uuid->uu[10]), 4); in uuid_to_string_legacy()
264 memcpy(&uuid5, &(p_uuid->uu[14]), 2); in uuid_to_string_legacy()
/hal_espressif-2.7.6/components/bt/host/bluedroid/stack/sdp/
Dsdp_api.c339 BOOLEAN SDP_FindServiceUUIDInRec(tSDP_DISC_REC *p_rec, tBT_UUID *p_uuid) in SDP_FindServiceUUIDInRec() argument
352 p_uuid->len = LEN_UUID_16; in SDP_FindServiceUUIDInRec()
353 p_uuid->uu.uuid16 = p_sattr->attr_value.v.u16; in SDP_FindServiceUUIDInRec()
355 p_uuid->len = LEN_UUID_128; in SDP_FindServiceUUIDInRec()
357p_uuid->uu.uuid128[i] = p_sattr->attr_value.v.array[LEN_UUID_128 - i - 1]; in SDP_FindServiceUUIDInRec()
360 p_uuid->len = LEN_UUID_32; in SDP_FindServiceUUIDInRec()
361 p_uuid->uu.uuid32 = p_sattr->attr_value.v.u32; in SDP_FindServiceUUIDInRec()
379 p_uuid->len = 2; in SDP_FindServiceUUIDInRec()
380 p_uuid->uu.uuid16 = p_extra_sattr->attr_value.v.u16; in SDP_FindServiceUUIDInRec()
392 p_uuid->len = 2; in SDP_FindServiceUUIDInRec()
[all …]
Dsdp_db.c128 static BOOLEAN find_uuid_in_seq (UINT8 *p , UINT32 seq_len, UINT8 *p_uuid, in find_uuid_in_seq() argument
145 if (sdpu_compare_uuid_arrays (p, len, p_uuid, uuid_len)) { in find_uuid_in_seq()
149 if (find_uuid_in_seq (p, len, p_uuid, uuid_len, nest_level + 1)) { in find_uuid_in_seq()
Dsdp_utils.c628 BOOLEAN sdpu_is_base_uuid (UINT8 *p_uuid) in sdpu_is_base_uuid() argument
633 if (p_uuid[xx] != sdp_base_uuid[xx]) { in sdpu_is_base_uuid()
/hal_espressif-2.7.6/components/bt/host/bluedroid/stack/gatt/
Dgatt_db.c43 static void *allocate_attr_in_db(tGATT_SVC_DB *p_db, tBT_UUID *p_uuid, tGATT_PERM perm);
1218 static void *allocate_attr_in_db(tGATT_SVC_DB *p_db, tBT_UUID *p_uuid, tGATT_PERM perm) in allocate_attr_in_db() argument
1225 if (p_uuid == NULL) { in allocate_attr_in_db()
1230 if (p_uuid->len == LEN_UUID_16) { in allocate_attr_in_db()
1232 } else if (p_uuid->len == LEN_UUID_32) { in allocate_attr_in_db()
1253 if (p_uuid->len == LEN_UUID_16 && p_uuid->uu.uuid16 != GATT_ILLEGAL_UUID) { in allocate_attr_in_db()
1255 p_attr16->uuid = p_uuid->uu.uuid16; in allocate_attr_in_db()
1256 } else if (p_uuid->len == LEN_UUID_32) { in allocate_attr_in_db()
1259 p_attr32->uuid = p_uuid->uu.uuid32; in allocate_attr_in_db()
1260 } else if (p_uuid->len == LEN_UUID_128) { in allocate_attr_in_db()
[all …]
Dgatt_utils.c1210 UINT8 *p_uuid = *p_data; in gatt_parse_uuid_from_cmd() local
1217 STREAM_TO_UINT16 (p_uuid_rec->uu.uuid16, p_uuid); in gatt_parse_uuid_from_cmd()
1225 if (p_uuid[xx] != base_uuid[xx]) { in gatt_parse_uuid_from_cmd()
1231 if ((p_uuid[LEN_UUID_128 - 1] == 0) && (p_uuid[LEN_UUID_128 - 2] == 0)) { in gatt_parse_uuid_from_cmd()
1232 p_uuid += (LEN_UUID_128 - 4); in gatt_parse_uuid_from_cmd()
1234 STREAM_TO_UINT16(p_uuid_rec->uu.uuid16, p_uuid); in gatt_parse_uuid_from_cmd()
1236 p_uuid += (LEN_UUID_128 - LEN_UUID_32); in gatt_parse_uuid_from_cmd()
1238 STREAM_TO_UINT32(p_uuid_rec->uu.uuid32, p_uuid); in gatt_parse_uuid_from_cmd()
1243 memcpy(p_uuid_rec->uu.uuid128, p_uuid, LEN_UUID_128); in gatt_parse_uuid_from_cmd()
1561 UINT32 gatt_add_sdp_record (tBT_UUID *p_uuid, UINT16 start_hdl, UINT16 end_hdl) in gatt_add_sdp_record() argument
[all …]
Dgatt_sr.c601 tBT_UUID *p_uuid; in gatt_build_primary_service_rsp() local
616 if ((p_uuid = gatts_get_service_uuid (p_rcb->p_db)) != NULL) { in gatt_build_primary_service_rsp()
618 handle_len = 4 + p_uuid->len; in gatt_build_primary_service_rsp()
636 gatt_uuid_compare(value, *p_uuid)) { in gatt_build_primary_service_rsp()
648 gatt_build_uuid_to_stream(&p, *p_uuid); in gatt_build_primary_service_rsp()
Dgatt_api.c447 tBT_UUID *p_uuid; in GATTS_StartService() local
488 p_uuid = gatts_get_service_uuid (p_sreg->p_db); in GATTS_StartService()
489 p_sreg->sdp_handle = gatt_add_sdp_record(p_uuid, p_sreg->s_hdl, p_sreg->e_hdl); in GATTS_StartService()
/hal_espressif-2.7.6/components/bt/host/bluedroid/stack/include/stack/
Dsdp_api.h320 tBT_UUID *p_uuid,
336 extern BOOLEAN SDP_FindServiceUUIDInRec_128bit(tSDP_DISC_REC *p_rec, tBT_UUID *p_uuid);
718 BOOLEAN SDP_FindServiceUUIDInRec(tSDP_DISC_REC *p_rec, tBT_UUID *p_uuid);
Dbtm_ble_api.h414 UINT16 *p_uuid; member
421 UINT32 *p_uuid; member
/hal_espressif-2.7.6/components/bt/host/bluedroid/btc/include/btc/
Dbtc_util.h55 void uuid_to_string_legacy(bt_uuid_t *p_uuid, char *str);
/hal_espressif-2.7.6/components/bt/host/bluedroid/bta/gatt/
Dbta_gattc_cache.c262 tBT_UUID *p_uuid, in bta_gattc_add_srvc_to_cache() argument
279 memcpy(&p_new_srvc->uuid, p_uuid, sizeof(tBT_UUID)); in bta_gattc_add_srvc_to_cache()
300 tBT_UUID *p_uuid, in bta_gattc_add_char_to_cache() argument
306 value_handle, p_uuid->uu.uuid16, property); in bta_gattc_add_char_to_cache()
330 memcpy(&characteristic->uuid, p_uuid, sizeof(tBT_UUID)); in bta_gattc_add_char_to_cache()
348 tBT_UUID *p_uuid, in bta_gattc_add_attr_to_cache() argument
357 handle, p_uuid->uu.uuid16, property, type); in bta_gattc_add_attr_to_cache()
374 memcpy(&isvc->uuid, p_uuid, sizeof(tBT_UUID)); in bta_gattc_add_attr_to_cache()
394 memcpy(&descriptor->uuid, p_uuid, sizeof(tBT_UUID)); in bta_gattc_add_attr_to_cache()
1081 void bta_gattc_search_service(tBTA_GATTC_CLCB *p_clcb, tBT_UUID *p_uuid) in bta_gattc_search_service() argument
[all …]
/hal_espressif-2.7.6/components/bt/host/bluedroid/stack/btm/
Dbtm_inq.c143 static UINT16 btm_convert_uuid_to_uuid16( UINT8 *p_uuid, UINT8 uuid_size );
2729 static UINT16 btm_convert_uuid_to_uuid16( UINT8 *p_uuid, UINT8 uuid_size ) in btm_convert_uuid_to_uuid16() argument
2741 STREAM_TO_UINT16 (uuid16, p_uuid); in btm_convert_uuid_to_uuid16()
2744 STREAM_TO_UINT32 (uuid32, p_uuid); in btm_convert_uuid_to_uuid16()
2753 if (p_uuid[xx] != base_uuid[xx]) { in btm_convert_uuid_to_uuid16()
2759 if ((p_uuid[LEN_UUID_128 - 1] == 0) && (p_uuid[LEN_UUID_128 - 2] == 0)) { in btm_convert_uuid_to_uuid16()
2760 p_uuid += (LEN_UUID_128 - 4); in btm_convert_uuid_to_uuid16()
2761 STREAM_TO_UINT16(uuid16, p_uuid); in btm_convert_uuid_to_uuid16()
Dbtm_ble_gap.c2256 p_data->p_services->p_uuid) { in btm_ble_build_adv_data()
2267 UINT16_TO_STREAM(p, *(p_data->p_services->p_uuid + i)); in btm_ble_build_adv_data()
2277 p_data->p_service_32b->p_uuid) { in btm_ble_build_adv_data()
2288 UINT32_TO_STREAM(p, *(p_data->p_service_32b->p_uuid + i)); in btm_ble_build_adv_data()
2313 p_data->p_sol_service_32b->p_uuid) { in btm_ble_build_adv_data()
2324 UINT32_TO_STREAM(p, *(p_data->p_sol_service_32b->p_uuid + i)); in btm_ble_build_adv_data()
/hal_espressif-2.7.6/components/bt/host/bluedroid/btc/profile/std/gap/
Dbtc_gap_ble.c105 btc_gap_adv_point_cleanup((void **) &bta_adv_data->p_services->p_uuid); in btc_cleanup_adv_data()
118 btc_gap_adv_point_cleanup((void **) &bta_adv_data->p_service_32b->p_uuid); in btc_cleanup_adv_data()
123 btc_gap_adv_point_cleanup((void **) &bta_adv_data->p_sol_services->p_uuid); in btc_cleanup_adv_data()
128 btc_gap_adv_point_cleanup((void **) &bta_adv_data->p_sol_service_32b->p_uuid); in btc_cleanup_adv_data()
234 …bta_adv_data->p_services->p_uuid = osi_malloc(p_adv_data->service_uuid_len / LEN_UUID_128 * LEN_UU… in btc_to_bta_adv_data()
235 p_uuid_out16 = bta_adv_data->p_services->p_uuid; in btc_to_bta_adv_data()
238 if (NULL != bta_adv_data->p_services->p_uuid) { in btc_to_bta_adv_data()
253 bta_adv_data->p_service_32b->p_uuid = in btc_to_bta_adv_data()
255 p_uuid_out32 = bta_adv_data->p_service_32b->p_uuid; in btc_to_bta_adv_data()
258 if (NULL != bta_adv_data->p_service_32b->p_uuid) { in btc_to_bta_adv_data()
/hal_espressif-2.7.6/components/bt/host/bluedroid/bta/dm/
Dbta_dm_api.c490 p_msg->p_uuid = NULL; in BTA_DmDiscoverUUID()
1741 p_msg->p_uuid = (tBT_UUID *)(p_msg + 1); in bta_dm_discover_send_msg()
1742 memcpy(p_msg->p_uuid, p_services->p_uuid, sizeof(tBT_UUID) * p_services->num_uuid); in bta_dm_discover_send_msg()
1841 p_msg->p_uuid = (tBT_UUID *)(p_msg + 1); in BTA_DmSearchExt()
1842 memcpy(p_msg->p_uuid, p_services->p_uuid, sizeof(tBT_UUID) * p_services->num_uuid); in BTA_DmSearchExt()
1844 p_msg->p_uuid = NULL; in BTA_DmSearchExt()
Dbta_dm_act.c1505 p_data->search.p_uuid != NULL) { in bta_dm_search_start()
1515 memcpy(bta_dm_search_cb.p_srvc_uuid, p_data->search.p_uuid, len); in bta_dm_search_start()
1609 p_data->discover.p_uuid != NULL) { in bta_dm_discover()
1614 memcpy(bta_dm_search_cb.p_srvc_uuid, p_data->discover.p_uuid, len); in bta_dm_discover()
1858 tBT_UUID *p_uuid = bta_dm_search_cb.p_srvc_uuid; in bta_dm_sdp_result() local
1885 if (bta_dm_search_cb.uuid_to_search != 0 && p_uuid != NULL) { in bta_dm_sdp_result()
1886 p_uuid += (bta_dm_search_cb.num_uuid - bta_dm_search_cb.uuid_to_search); in bta_dm_sdp_result()
1888 service = p_uuid->uu.uuid16; in bta_dm_sdp_result()
6105 tBT_UUID *p_uuid = bta_dm_search_cb.p_srvc_uuid + in btm_dm_start_disc_gatt_services() local
6108 p_uuid = bta_dm_search_cb.p_srvc_uuid + in btm_dm_start_disc_gatt_services()
[all …]
/hal_espressif-2.7.6/components/bt/host/bluedroid/stack/gap/
Dgap_ble.c191 BOOLEAN gap_ble_dequeue_request (tGAP_CLCB *p_clcb, UINT16 *p_uuid, tGAP_BLE_CMPL_CBACK **p_cback) in gap_ble_dequeue_request() argument
197 *p_uuid = p_q->uuid; in gap_ble_dequeue_request()
/hal_espressif-2.7.6/components/bt/host/bluedroid/stack/sdp/include/
Dsdpint.h278 extern BOOLEAN sdpu_is_base_uuid (UINT8 *p_uuid);
/hal_espressif-2.7.6/components/bt/host/bluedroid/stack/gatt/include/
Dgatt_int.h606 extern UINT32 gatt_add_sdp_record (tBT_UUID *p_uuid, UINT16 start_hdl, UINT16 end_hdl);
608 extern BOOLEAN gatt_parse_uuid_from_cmd(tBT_UUID *p_uuid, UINT16 len, UINT8 **p_data);
/hal_espressif-2.7.6/components/bt/host/bluedroid/bta/dm/include/
Dbta_dm_int.h322 tBT_UUID *p_uuid; member
337 tBT_UUID *p_uuid; member
/hal_espressif-2.7.6/components/bt/host/bluedroid/bta/gatt/include/
Dbta_gattc_int.h519 extern void bta_gattc_search_service(tBTA_GATTC_CLCB *p_clcb, tBT_UUID *p_uuid);
/hal_espressif-2.7.6/components/bt/host/bluedroid/bta/include/bta/
Dbta_api.h165 tBT_UUID *p_uuid; member
367 UINT16 *p_uuid; member
/hal_espressif-2.7.6/components/bt/host/bluedroid/bta/jv/
Dbta_jv_act.c101 extern void uuid_to_string_legacy(bt_uuid_t *p_uuid, char *str);
102 static inline void logu(const char *title, const uint8_t *p_uuid) in logu() argument
105 uuid_to_string_legacy((bt_uuid_t *)p_uuid, uuids); in logu()