Lines Matching refs:p_db
57 ** Parameters: p_db - (input) address of an area of memory where the
72 BOOLEAN SDP_InitDiscoveryDb (tSDP_DISCOVERY_DB *p_db, UINT32 len, UINT16 num_uuid,
79 if (p_db == NULL || (sizeof (tSDP_DISCOVERY_DB) > len) ||
82 SDP_TRACE_ERROR("SDP_InitDiscoveryDb Illegal param: p_db 0x%x, len %d, num_uuid %d, num_attr %d",
83 (UINT32)p_db, len, num_uuid, num_attr);
88 memset (p_db, 0, (size_t)len);
90 p_db->mem_size = len - sizeof (tSDP_DISCOVERY_DB);
91 p_db->mem_free = p_db->mem_size;
92 p_db->p_first_rec = NULL;
93 p_db->p_free_mem = (UINT8 *)(p_db + 1);
96 p_db->uuid_filters[xx] = *p_uuid_list++;
98 p_db->num_uuid_filters = num_uuid;
101 p_db->attr_filters[xx] = *p_attr_list++;
104 sdpu_sort_attr_list( num_attr, p_db );
106 p_db->num_attr_filters = num_attr;
122 BOOLEAN SDP_CancelServiceSearch (tSDP_DISCOVERY_DB *p_db)
125 tCONN_CB *p_ccb = sdpu_find_ccb_by_db (p_db);
146 BOOLEAN SDP_ServiceSearchRequest (UINT8 *p_bd_addr, tSDP_DISCOVERY_DB *p_db,
159 p_ccb->p_db = p_db;
183 BOOLEAN SDP_ServiceSearchAttributeRequest (UINT8 *p_bd_addr, tSDP_DISCOVERY_DB *p_db,
196 p_ccb->p_db = p_db;
220 BOOLEAN SDP_ServiceSearchAttributeRequest2 (UINT8 *p_bd_addr, tSDP_DISCOVERY_DB *p_db,
233 p_ccb->p_db = p_db;
265 tSDP_DISC_REC *SDP_FindAttributeInDb (tSDP_DISCOVERY_DB *p_db, UINT16 attr_id,
273 if (p_db == NULL)
277 p_rec = p_db->p_first_rec;
488 tSDP_DISC_REC *SDP_FindServiceInDb (tSDP_DISCOVERY_DB *p_db, UINT16 service_uuid, tSDP_DISC_REC *p_start_rec)
495 if (p_db == NULL)
499 p_rec = p_db->p_first_rec;
596 tSDP_DISC_REC *SDP_FindServiceInDb_128bit(tSDP_DISCOVERY_DB *p_db, tSDP_DISC_REC *p_start_rec)
603 if (p_db == NULL)
607 p_rec = p_db->p_first_rec;
662 tSDP_DISC_REC *SDP_FindServiceUUIDInDb (tSDP_DISCOVERY_DB *p_db, tBT_UUID *p_uuid, tSDP_DISC_REC *p_start_rec)
669 if (p_db == NULL)
673 p_rec = p_db->p_first_rec;
942 UINT16 SDP_DiDiscover( BD_ADDR remote_device, tSDP_DISCOVERY_DB *p_db,
955 if ( SDP_InitDiscoveryDb(p_db, len, num_uuids, &init_uuid, 0, NULL) )
956 if ( SDP_ServiceSearchRequest(remote_device, p_db, p_cb) )
974 UINT8 SDP_GetNumDiRecords( tSDP_DISCOVERY_DB *p_db )
982 p_curr_record = SDP_FindServiceInDb( p_db, UUID_SERVCLASS_PNP_INFORMATION,
1033 tSDP_DISCOVERY_DB *p_db )
1044 p_curr_record = SDP_FindServiceInDb( p_db, UUID_SERVCLASS_PNP_INFORMATION,
1433 p_ccb->p_db = (tSDP_DISCOVERY_DB *)p_rcb;