• Home
  • Raw
  • Download

Lines Matching refs:p_db

70 bool SDP_InitDiscoveryDb(tSDP_DISCOVERY_DB* p_db, uint32_t len,  in SDP_InitDiscoveryDb()  argument
76 if (p_db == NULL || (sizeof(tSDP_DISCOVERY_DB) > len) || in SDP_InitDiscoveryDb()
81 PTR_TO_UINT(p_db), len, num_uuid, num_attr); in SDP_InitDiscoveryDb()
86 memset(p_db, 0, (size_t)len); in SDP_InitDiscoveryDb()
88 p_db->mem_size = len - sizeof(tSDP_DISCOVERY_DB); in SDP_InitDiscoveryDb()
89 p_db->mem_free = p_db->mem_size; in SDP_InitDiscoveryDb()
90 p_db->p_first_rec = NULL; in SDP_InitDiscoveryDb()
91 p_db->p_free_mem = (uint8_t*)(p_db + 1); in SDP_InitDiscoveryDb()
93 for (xx = 0; xx < num_uuid; xx++) p_db->uuid_filters[xx] = *p_uuid_list++; in SDP_InitDiscoveryDb()
95 p_db->num_uuid_filters = num_uuid; in SDP_InitDiscoveryDb()
97 for (xx = 0; xx < num_attr; xx++) p_db->attr_filters[xx] = *p_attr_list++; in SDP_InitDiscoveryDb()
100 sdpu_sort_attr_list(num_attr, p_db); in SDP_InitDiscoveryDb()
102 p_db->num_attr_filters = num_attr; in SDP_InitDiscoveryDb()
116 bool SDP_CancelServiceSearch(tSDP_DISCOVERY_DB* p_db) { in SDP_CancelServiceSearch() argument
117 tCONN_CB* p_ccb = sdpu_find_ccb_by_db(p_db); in SDP_CancelServiceSearch()
135 tSDP_DISCOVERY_DB* p_db, in SDP_ServiceSearchRequest() argument
145 p_ccb->p_db = p_db; in SDP_ServiceSearchRequest()
166 tSDP_DISCOVERY_DB* p_db, in SDP_ServiceSearchAttributeRequest() argument
176 p_ccb->p_db = p_db; in SDP_ServiceSearchAttributeRequest()
198 tSDP_DISCOVERY_DB* p_db, in SDP_ServiceSearchAttributeRequest2() argument
209 p_ccb->p_db = p_db; in SDP_ServiceSearchAttributeRequest2()
230 tSDP_DISC_REC* SDP_FindAttributeInDb(tSDP_DISCOVERY_DB* p_db, uint16_t attr_id, in SDP_FindAttributeInDb() argument
236 if (p_db == NULL) return (NULL); in SDP_FindAttributeInDb()
239 p_rec = p_db->p_first_rec; in SDP_FindAttributeInDb()
410 tSDP_DISC_REC* SDP_FindServiceInDb(tSDP_DISCOVERY_DB* p_db, in SDP_FindServiceInDb() argument
417 if (p_db == NULL) return (NULL); in SDP_FindServiceInDb()
420 p_rec = p_db->p_first_rec; in SDP_FindServiceInDb()
513 tSDP_DISC_REC* SDP_FindServiceInDb_128bit(tSDP_DISCOVERY_DB* p_db, in SDP_FindServiceInDb_128bit() argument
519 if (p_db == NULL) return (NULL); in SDP_FindServiceInDb_128bit()
522 p_rec = p_db->p_first_rec; in SDP_FindServiceInDb_128bit()
571 tSDP_DISC_REC* SDP_FindServiceUUIDInDb(tSDP_DISCOVERY_DB* p_db, in SDP_FindServiceUUIDInDb() argument
578 if (p_db == NULL) return (NULL); in SDP_FindServiceUUIDInDb()
581 p_rec = p_db->p_first_rec; in SDP_FindServiceUUIDInDb()
815 tSDP_DISCOVERY_DB* p_db, uint32_t len, in SDP_DiDiscover() argument
824 if (SDP_InitDiscoveryDb(p_db, len, num_uuids, &init_uuid, 0, NULL)) in SDP_DiDiscover()
825 if (SDP_ServiceSearchRequest(remote_device, p_db, p_cb)) in SDP_DiDiscover()
840 uint8_t SDP_GetNumDiRecords(tSDP_DISCOVERY_DB* p_db) { in SDP_GetNumDiRecords() argument
845 p_curr_record = SDP_FindServiceInDb(p_db, UUID_SERVCLASS_PNP_INFORMATION, in SDP_GetNumDiRecords()
890 tSDP_DISCOVERY_DB* p_db) { in SDP_GetDiRecord() argument
898 p_curr_record = SDP_FindServiceInDb(p_db, UUID_SERVCLASS_PNP_INFORMATION, in SDP_GetDiRecord()