Lines Matching refs:p_db

62 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()
89 for (xx = 0; xx < num_attr; xx++) p_db->attr_filters[xx] = *p_attr_list++; in SDP_InitDiscoveryDb()
92 sdpu_sort_attr_list(num_attr, p_db); in SDP_InitDiscoveryDb()
94 p_db->num_attr_filters = num_attr; in SDP_InitDiscoveryDb()
108 bool SDP_CancelServiceSearch(tSDP_DISCOVERY_DB* p_db) { in SDP_CancelServiceSearch() argument
109 tCONN_CB* p_ccb = sdpu_find_ccb_by_db(p_db); in SDP_CancelServiceSearch()
127 tSDP_DISCOVERY_DB* p_db, in SDP_ServiceSearchRequest() argument
137 p_ccb->p_db = p_db; in SDP_ServiceSearchRequest()
158 tSDP_DISCOVERY_DB* p_db, in SDP_ServiceSearchAttributeRequest() argument
168 p_ccb->p_db = p_db; in SDP_ServiceSearchAttributeRequest()
190 tSDP_DISCOVERY_DB* p_db, in SDP_ServiceSearchAttributeRequest2() argument
201 p_ccb->p_db = p_db; in SDP_ServiceSearchAttributeRequest2()
363 tSDP_DISC_REC* SDP_FindServiceInDb(tSDP_DISCOVERY_DB* p_db, in SDP_FindServiceInDb() argument
370 if (p_db == NULL) return (NULL); in SDP_FindServiceInDb()
373 p_rec = p_db->p_first_rec; in SDP_FindServiceInDb()
466 tSDP_DISC_REC* SDP_FindServiceInDb_128bit(tSDP_DISCOVERY_DB* p_db, in SDP_FindServiceInDb_128bit() argument
472 if (p_db == NULL) return (NULL); in SDP_FindServiceInDb_128bit()
475 p_rec = p_db->p_first_rec; in SDP_FindServiceInDb_128bit()
524 tSDP_DISC_REC* SDP_FindServiceUUIDInDb(tSDP_DISCOVERY_DB* p_db, in SDP_FindServiceUUIDInDb() argument
531 if (p_db == NULL) return (NULL); in SDP_FindServiceUUIDInDb()
534 p_rec = p_db->p_first_rec; in SDP_FindServiceUUIDInDb()
730 tSDP_DISCOVERY_DB* p_db, uint32_t len, in SDP_DiDiscover() argument
739 if (SDP_InitDiscoveryDb(p_db, len, num_uuids, &init_uuid, 0, NULL)) in SDP_DiDiscover()
740 if (SDP_ServiceSearchRequest(remote_device, p_db, p_cb)) in SDP_DiDiscover()
755 uint8_t SDP_GetNumDiRecords(tSDP_DISCOVERY_DB* p_db) { in SDP_GetNumDiRecords() argument
760 p_curr_record = SDP_FindServiceInDb(p_db, UUID_SERVCLASS_PNP_INFORMATION, in SDP_GetNumDiRecords()
805 tSDP_DISCOVERY_DB* p_db) { in SDP_GetDiRecord() argument
813 p_curr_record = SDP_FindServiceInDb(p_db, UUID_SERVCLASS_PNP_INFORMATION, in SDP_GetDiRecord()