Home
last modified time | relevance | path

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

/system/bt/stack/avrc/
Davrc_sdp.cc109 tAVRC_SDP_DB_PARAMS* p_db, in AVRC_FindService() argument
116 p_db == NULL || p_db->p_db == NULL || find_cback.is_null()) in AVRC_FindService()
125 if (p_db->p_attrs == NULL || p_db->num_attr == 0) { in AVRC_FindService()
126 p_db->p_attrs = a2dp_attr_list_sdp; in AVRC_FindService()
127 p_db->num_attr = AVRC_NUM_ATTR; in AVRC_FindService()
131 result = SDP_InitDiscoveryDb(p_db->p_db, p_db->db_len, 1, &uuid_list, in AVRC_FindService()
132 p_db->num_attr, p_db->p_attrs); in AVRC_FindService()
136 avrc_cb.p_db = p_db->p_db; in AVRC_FindService()
142 SDP_ServiceSearchAttributeRequest(bd_addr, p_db->p_db, avrc_sdp_cback); in AVRC_FindService()
Davrc_int.h151 tSDP_DISCOVERY_DB* p_db; /* pointer to discovery database */ member
/system/bt/stack/a2dp/
Da2dp_api.cc80 a2dp_cb.find.p_db, a2dp_cb.find.service_uuid, p_rec)) == NULL) { in a2dp_sdp_cback()
120 osi_free_and_reset((void**)&a2dp_cb.find.p_db); in a2dp_sdp_cback()
274 tA2DP_SDP_DB_PARAMS* p_db, in A2DP_FindService() argument
282 p_db == NULL || p_cback == NULL) { in A2DP_FindService()
297 if (p_db->p_attrs == NULL || p_db->num_attr == 0) { in A2DP_FindService()
298 p_db->p_attrs = a2dp_attr_list; in A2DP_FindService()
299 p_db->num_attr = A2DP_NUM_ATTR; in A2DP_FindService()
302 if (a2dp_cb.find.p_db == NULL) in A2DP_FindService()
303 a2dp_cb.find.p_db = (tSDP_DISCOVERY_DB*)osi_malloc(p_db->db_len); in A2DP_FindService()
306 result = SDP_InitDiscoveryDb(a2dp_cb.find.p_db, p_db->db_len, 1, &uuid_list, in A2DP_FindService()
[all …]
Da2dp_int.h47 tSDP_DISCOVERY_DB* p_db; /* pointer to discovery database */ member
/system/bt/stack/sdp/
Dsdp_api.cc62 bool SDP_InitDiscoveryDb(tSDP_DISCOVERY_DB* p_db, uint32_t len, in SDP_InitDiscoveryDb() argument
68 if (p_db == NULL || (sizeof(tSDP_DISCOVERY_DB) > len) || in SDP_InitDiscoveryDb()
73 PTR_TO_UINT(p_db), len, num_uuid, num_attr); in SDP_InitDiscoveryDb()
78 memset(p_db, 0, (size_t)len); in SDP_InitDiscoveryDb()
80 p_db->mem_size = len - sizeof(tSDP_DISCOVERY_DB); in SDP_InitDiscoveryDb()
81 p_db->mem_free = p_db->mem_size; in SDP_InitDiscoveryDb()
82 p_db->p_first_rec = NULL; in SDP_InitDiscoveryDb()
83 p_db->p_free_mem = (uint8_t*)(p_db + 1); in SDP_InitDiscoveryDb()
85 for (xx = 0; xx < num_uuid; xx++) p_db->uuid_filters[xx] = *p_uuid_list++; in SDP_InitDiscoveryDb()
87 p_db->num_uuid_filters = num_uuid; in SDP_InitDiscoveryDb()
[all …]
Dsdp_discovery.cc52 static tSDP_DISC_REC* add_record(tSDP_DISCOVERY_DB* p_db,
54 static uint8_t* add_attr(uint8_t* p, uint8_t* p_end, tSDP_DISCOVERY_DB* p_db,
140 &p_ccb->p_db->uuid_filters[p_ccb->cur_uuid_idx]); in sdp_snd_service_search_req()
142 p = sdpu_build_uuid_seq(p, p_ccb->p_db->num_uuid_filters, in sdp_snd_service_search_req()
143 p_ccb->p_db->uuid_filters); in sdp_snd_service_search_req()
350 if (p_ccb->p_db->raw_data) { in sdp_copy_raw_data()
351 cpy_len = p_ccb->p_db->raw_size - p_ccb->p_db->raw_used; in sdp_copy_raw_data()
379 memcpy(&p_ccb->p_db->raw_data[p_ccb->p_db->raw_used], p, cpy_len); in sdp_copy_raw_data()
380 p_ccb->p_db->raw_used += cpy_len; in sdp_copy_raw_data()
478 if (p_ccb->p_db->num_attr_filters) in process_service_attr_rsp()
[all …]
Dsdp_db.cc253 tSDP_DB* p_db = &sdp_cb.server_db; in SDP_CreateRecord() local
256 if (p_db->num_records < SDP_MAX_RECORDS) { in SDP_CreateRecord()
257 memset(&p_db->record[p_db->num_records], 0, sizeof(tSDP_RECORD)); in SDP_CreateRecord()
261 if (p_db->num_records) in SDP_CreateRecord()
262 handle = p_db->record[p_db->num_records - 1].record_handle + 1; in SDP_CreateRecord()
266 p_db->record[p_db->num_records].record_handle = handle; in SDP_CreateRecord()
268 p_db->num_records++; in SDP_CreateRecord()
269 SDP_TRACE_DEBUG("SDP_CreateRecord ok, num_records:%d", p_db->num_records); in SDP_CreateRecord()
275 return (p_db->record[p_db->num_records - 1].record_handle); in SDP_CreateRecord()
Dsdp_main.cc546 if ((p_ccb->cur_uuid_idx == 0) && (p_ccb->p_db->p_first_rec)) in sdp_disconnect()
547 p_ccb->cur_uuid_idx = p_ccb->p_db->num_uuid_filters; in sdp_disconnect()
549 while (++p_ccb->cur_uuid_idx < p_ccb->p_db->num_uuid_filters) { in sdp_disconnect()
551 if ((p_ccb->p_db->uuid_filters[p_ccb->cur_uuid_idx].len == 2) && in sdp_disconnect()
553 p_ccb->p_db, in sdp_disconnect()
554 p_ccb->p_db->uuid_filters[p_ccb->cur_uuid_idx].uu.uuid16, NULL))) in sdp_disconnect()
557 if ((p_ccb->p_db->uuid_filters[p_ccb->cur_uuid_idx].len > 2) && in sdp_disconnect()
559 p_ccb->p_db, &p_ccb->p_db->uuid_filters[p_ccb->cur_uuid_idx], in sdp_disconnect()
573 if ((reason == SDP_NO_RECS_MATCH) && (p_ccb->p_db->p_first_rec)) in sdp_disconnect()
Dsdp_utils.cc156 tSDP_DISCOVERY_DB* p_db) { in sdpu_log_attribute_metrics() argument
157 CHECK_NE(p_db, nullptr); in sdpu_log_attribute_metrics()
159 for (tSDP_DISC_REC* p_rec = p_db->p_first_rec; p_rec != nullptr; in sdpu_log_attribute_metrics()
266 if (SDP_GetDiRecord(1, &di_record, p_db) == SDP_SUCCESS) { in sdpu_log_attribute_metrics()
327 tCONN_CB* sdpu_find_ccb_by_db(tSDP_DISCOVERY_DB* p_db) { in sdpu_find_ccb_by_db() argument
331 if (p_db) { in sdpu_find_ccb_by_db()
334 if ((p_ccb->con_state != SDP_STATE_IDLE) && (p_ccb->p_db == p_db)) in sdpu_find_ccb_by_db()
970 void sdpu_sort_attr_list(uint16_t num_attr, tSDP_DISCOVERY_DB* p_db) { in sdpu_sort_attr_list() argument
983 if (p_db->attr_filters[i] > p_db->attr_filters[i + 1]) { in sdpu_sort_attr_list()
985 x = p_db->attr_filters[i]; in sdpu_sort_attr_list()
[all …]
Dsdpint.h144 tSDP_DISCOVERY_DB* p_db; /* Database to save info into */ member
204 tSDP_DISCOVERY_DB* p_db);
206 extern tCONN_CB* sdpu_find_ccb_by_db(tSDP_DISCOVERY_DB* p_db);
229 extern void sdpu_sort_attr_list(uint16_t num_attr, tSDP_DISCOVERY_DB* p_db);
/system/bt/stack/include/
Dsdp_api.h172 bool SDP_InitDiscoveryDb(tSDP_DISCOVERY_DB* p_db, uint32_t len,
186 bool SDP_CancelServiceSearch(tSDP_DISCOVERY_DB* p_db);
198 tSDP_DISCOVERY_DB* p_db, tSDP_DISC_CMPL_CB* p_cb);
214 tSDP_DISCOVERY_DB* p_db,
232 tSDP_DISCOVERY_DB* p_db,
262 tSDP_DISC_REC* SDP_FindServiceInDb(tSDP_DISCOVERY_DB* p_db,
282 tSDP_DISC_REC* SDP_FindServiceUUIDInDb(tSDP_DISCOVERY_DB* p_db,
314 tSDP_DISC_REC* SDP_FindServiceInDb_128bit(tSDP_DISCOVERY_DB* p_db,
538 tSDP_DISCOVERY_DB* p_db, uint32_t len,
550 uint8_t SDP_GetNumDiRecords(tSDP_DISCOVERY_DB* p_db);
[all …]
Da2dp_api.h162 tA2DP_SDP_DB_PARAMS* p_db,
Davrc_api.h151 tSDP_DISCOVERY_DB* p_db; /* Pointer to the discovery database */ member
280 tAVRC_SDP_DB_PARAMS* p_db,
Dhidh_api.h103 tSDP_DISCOVERY_DB* p_db,
/system/bt/stack/gatt/
Dgatt_db.cc71 Uuid* gatts_get_service_uuid(tGATT_SVC_DB* p_db) { in gatts_get_service_uuid() argument
72 if (!p_db || p_db->attr_list.empty()) { in gatts_get_service_uuid()
76 return &p_db->attr_list[0].p_value->uuid; in gatts_get_service_uuid()
255 tGATT_TCB& tcb, tGATT_SVC_DB* p_db, uint8_t op_code, BT_HDR* p_rsp, in gatts_db_read_attr_value_by_type() argument
263 if (p_db) { in gatts_db_read_attr_value_by_type()
264 for (tGATT_ATTR& attr : p_db->attr_list) { in gatts_db_read_attr_value_by_type()
412 tGATT_ATTR* find_attr_by_handle(tGATT_SVC_DB* p_db, uint16_t handle) { in find_attr_by_handle() argument
413 if (!p_db) return nullptr; in find_attr_by_handle()
415 for (auto& attr : p_db->attr_list) { in find_attr_by_handle()
443 tGATT_TCB& tcb, tGATT_SVC_DB* p_db, uint8_t op_code, uint16_t handle, in gatts_read_attr_value_by_handle() argument
[all …]
Dgatt_int.h257 tGATT_SVC_DB* p_db; /* pointer to the service database */ member
575 tGATT_TCB& tcb, tGATT_SVC_DB* p_db, uint8_t op_code, BT_HDR* p_rsp,
580 tGATT_TCB& tcb, tGATT_SVC_DB* p_db, uint8_t op_code, uint16_t handle,
584 tGATT_SVC_DB* p_db, uint8_t op_code, uint16_t handle, uint16_t offset,
586 extern tGATT_STATUS gatts_read_attr_perm_check(tGATT_SVC_DB* p_db, bool is_long,
590 extern bluetooth::Uuid* gatts_get_service_uuid(tGATT_SVC_DB* p_db);
Dgatt_sr.cc389 err = gatts_read_attr_perm_check(it->p_db, false, handle, sec_flag, in gatt_process_read_multi_req()
422 tcb, it->p_db, op_code, handle, 0, p_msg->attr_value.value, in gatt_process_read_multi_req()
467 Uuid* p_uuid = gatts_get_service_uuid(el.p_db); in gatt_build_primary_service_rsp()
525 if (!el.p_db) return GATT_NOT_FOUND; in gatt_build_find_info_rsp()
531 for (auto& attr : el.p_db->attr_list) { in gatt_build_find_info_rsp()
831 tcb, el.p_db, op_code, p_msg, s_hdl, e_hdl, uuid, &buf_len, sec_flag, in gatts_process_read_by_type_req()
909 status = gatts_write_attr_perm_check(el.p_db, op_code, handle, in gatts_process_write_req()
981 tcb, el.p_db, op_code, handle, offset, p, &value_len, (uint16_t)buf_len, in gatts_process_read_req()
1039 for (const auto& attr : el.p_db->attr_list) { in gatts_process_attribute_req()
Dgatt_api.cc280 elem.p_db = &list.svc_db; in GATTS_AddService()
288 Uuid* p_uuid = gatts_get_service_uuid(elem.p_db); in GATTS_AddService()
308 Uuid* p_this_uuid = gatts_get_service_uuid(info.p_db); in is_active_service()
/system/bt/stack/hid/
Dhidh_api.cc54 tSDP_DISCOVERY_DB* p_db, uint32_t db_len, in HID_HostGetSDPRecord() argument
59 hh_cb.p_sdp_db = p_db; in HID_HostGetSDPRecord()
61 SDP_InitDiscoveryDb(p_db, db_len, 1, &uuid_list, 0, NULL); in HID_HostGetSDPRecord()
63 if (SDP_ServiceSearchRequest(addr, p_db, hidh_search_callback)) { in HID_HostGetSDPRecord()
91 tSDP_DISCOVERY_DB* p_db = hh_cb.p_sdp_db; in hidh_search_callback() local
106 p_rec = SDP_FindServiceUUIDInDb(p_db, hid_uuid, NULL); in hidh_search_callback()
/system/bt/profile/avrcp/
Davrcp_internal.h39 tAVRC_SDP_DB_PARAMS* p_db,
Dconnection_handler.cc173 db_params.p_db = disc_db; in SdpLookup()
/system/bt/stack/btm/
Dbtm_pm.cc383 tBTM_PM_MCB* p_db = &btm_cb.pm_mode_db[ind]; /* per ACL link */ in btm_pm_sm_alloc() local
384 memset(p_db, 0, sizeof(tBTM_PM_MCB)); in btm_pm_sm_alloc()
385 p_db->state = BTM_PM_ST_ACTIVE; in btm_pm_sm_alloc()
387 BTM_TRACE_DEBUG("btm_pm_sm_alloc ind:%d st:%d", ind, p_db->state); in btm_pm_sm_alloc()
Dbtm_inq.cc1179 tINQ_BDADDR* p_db = &p_inq->p_bd_db[0]; in btm_inq_find_bdaddr() local
1183 if ((p_inq->inq_active & BTM_PERIODIC_INQUIRY_ACTIVE) || !p_db) in btm_inq_find_bdaddr()
1186 for (xx = 0; xx < p_inq->num_bd_entries; xx++, p_db++) { in btm_inq_find_bdaddr()
1187 if (p_db->bd_addr == p_bda && p_db->inq_count == p_inq->inq_counter) in btm_inq_find_bdaddr()
1192 p_db->inq_count = p_inq->inq_counter; in btm_inq_find_bdaddr()
1193 p_db->bd_addr = p_bda; in btm_inq_find_bdaddr()
/system/bt/btif/avrcp/
Davrcp_service.cc73 tAVRC_SDP_DB_PARAMS* p_db, in FindService() argument
75 return AVRC_FindService(service_uuid, bd_addr, p_db, p_cback); in FindService()
/system/bt/bta/av/
Dbta_av_act.cc2221 db_params.p_db = p_cb->p_disc_db; in bta_av_rc_disc()