Lines Matching full:p_db
56 ** Parameters: p_db - (input) address of an area of memory where the
71 BOOLEAN SDP_InitDiscoveryDb (tSDP_DISCOVERY_DB *p_db, UINT32 len, UINT16 num_uuid,
78 if (p_db == NULL || (sizeof (tSDP_DISCOVERY_DB) > len) ||
81 SDP_TRACE_ERROR4("SDP_InitDiscoveryDb Illegal param: p_db 0x%x, len %d, num_uuid %d, num_attr %d",
82 (UINT32)p_db, len, num_uuid, num_attr);
87 memset (p_db, 0, (size_t)len);
89 p_db->mem_size = len - sizeof (tSDP_DISCOVERY_DB);
90 p_db->mem_free = p_db->mem_size;
91 p_db->p_first_rec = NULL;
92 p_db->p_free_mem = (UINT8 *)(p_db + 1);
95 p_db->uuid_filters[xx] = *p_uuid_list++;
97 p_db->num_uuid_filters = num_uuid;
100 p_db->attr_filters[xx] = *p_attr_list++;
103 sdpu_sort_attr_list( num_attr, p_db );
105 p_db->num_attr_filters = num_attr;
121 BOOLEAN SDP_CancelServiceSearch (tSDP_DISCOVERY_DB *p_db)
124 tCONN_CB *p_ccb = sdpu_find_ccb_by_db (p_db);
145 BOOLEAN SDP_ServiceSearchRequest (UINT8 *p_bd_addr, tSDP_DISCOVERY_DB *p_db,
158 p_ccb->p_db = p_db;
182 BOOLEAN SDP_ServiceSearchAttributeRequest (UINT8 *p_bd_addr, tSDP_DISCOVERY_DB *p_db,
195 p_ccb->p_db = p_db;
219 BOOLEAN SDP_ServiceSearchAttributeRequest2 (UINT8 *p_bd_addr, tSDP_DISCOVERY_DB *p_db,
232 p_ccb->p_db = p_db;
262 tSDP_DISC_REC *SDP_FindAttributeInDb (tSDP_DISCOVERY_DB *p_db, UINT16 attr_id,
270 if (p_db == NULL)
274 p_rec = p_db->p_first_rec;
485 tSDP_DISC_REC *SDP_FindServiceInDb (tSDP_DISCOVERY_DB *p_db, UINT16 service_uuid, tSDP_DISC_REC *p_start_rec)
492 if (p_db == NULL)
496 p_rec = p_db->p_first_rec;
592 tSDP_DISC_REC *SDP_FindServiceInDb_128bit(tSDP_DISCOVERY_DB *p_db, tSDP_DISC_REC *p_start_rec)
599 if (p_db == NULL)
603 p_rec = p_db->p_first_rec;
658 tSDP_DISC_REC *SDP_FindServiceUUIDInDb (tSDP_DISCOVERY_DB *p_db, tBT_UUID *p_uuid, tSDP_DISC_REC *p_start_rec)
665 if (p_db == NULL)
669 p_rec = p_db->p_first_rec;
938 UINT16 SDP_DiDiscover( BD_ADDR remote_device, tSDP_DISCOVERY_DB *p_db,
951 if ( SDP_InitDiscoveryDb(p_db, len, num_uuids, &init_uuid, 0, NULL) )
952 if ( SDP_ServiceSearchRequest(remote_device, p_db, p_cb) )
970 UINT8 SDP_GetNumDiRecords( tSDP_DISCOVERY_DB *p_db )
978 p_curr_record = SDP_FindServiceInDb( p_db, UUID_SERVCLASS_PNP_INFORMATION,
1001 tSDP_DISCOVERY_DB *p_db )
1012 p_curr_record = SDP_FindServiceInDb( p_db, UUID_SERVCLASS_PNP_INFORMATION,
1412 p_ccb->p_db = (tSDP_DISCOVERY_DB *)p_rcb;