Lines Matching refs:p_db
52 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()
479 p = sdpu_build_attrib_seq(p, p_ccb->p_db->attr_filters, in process_service_attr_rsp()
480 p_ccb->p_db->num_attr_filters); in process_service_attr_rsp()
508 sdpu_log_attribute_metrics(p_ccb->device_address, p_ccb->p_db); in process_service_attr_rsp()
594 &p_ccb->p_db->uuid_filters[p_ccb->cur_uuid_idx]); in process_service_search_attr_rsp()
596 p = sdpu_build_uuid_seq(p, p_ccb->p_db->num_uuid_filters, in process_service_search_attr_rsp()
597 p_ccb->p_db->uuid_filters); in process_service_search_attr_rsp()
604 if (p_ccb->p_db->num_attr_filters) in process_service_search_attr_rsp()
605 p = sdpu_build_attrib_seq(p, p_ccb->p_db->attr_filters, in process_service_search_attr_rsp()
606 p_ccb->p_db->num_attr_filters); in process_service_search_attr_rsp()
681 sdpu_log_attribute_metrics(p_ccb->device_address, p_ccb->p_db); in process_service_search_attr_rsp()
714 p_rec = add_record(p_ccb->p_db, p_ccb->device_address); in save_attr_seq()
738 p = add_attr(p, p_seq_end, p_ccb->p_db, p_rec, attr_id, NULL, 0); in save_attr_seq()
758 tSDP_DISC_REC* add_record(tSDP_DISCOVERY_DB* p_db, const RawAddress& p_bda) { in add_record() argument
762 if (p_db->mem_free < sizeof(tSDP_DISC_REC)) return (NULL); in add_record()
764 p_rec = (tSDP_DISC_REC*)p_db->p_free_mem; in add_record()
765 p_db->p_free_mem += sizeof(tSDP_DISC_REC); in add_record()
766 p_db->mem_free -= sizeof(tSDP_DISC_REC); in add_record()
774 if (!p_db->p_first_rec) in add_record()
775 p_db->p_first_rec = p_rec; in add_record()
777 tSDP_DISC_REC* p_rec1 = p_db->p_first_rec; in add_record()
798 static uint8_t* add_attr(uint8_t* p, uint8_t* p_end, tSDP_DISCOVERY_DB* p_db, in add_attr() argument
838 if (p_db->mem_free < total_len) return (NULL); in add_attr()
840 p_attr = (tSDP_DISC_ATTR*)p_db->p_free_mem; in add_attr()
855 p_db->p_free_mem += sizeof(tSDP_DISC_ATTR); in add_attr()
856 p_db->mem_free -= sizeof(tSDP_DISC_ATTR); in add_attr()
866 p = add_attr(p, p_end, p_db, p_rec, ATTR_ID_PROTOCOL_DESC_LIST, in add_attr()
934 p_db->p_free_mem += sizeof(tSDP_DISC_ATTR); in add_attr()
935 p_db->mem_free -= sizeof(tSDP_DISC_ATTR); in add_attr()
950 p = add_attr(p, p_end, p_db, p_rec, 0, p_attr, in add_attr()
977 p_db->p_free_mem += total_len; in add_attr()
978 p_db->mem_free -= total_len; in add_attr()