Lines Matching refs:p_db

52 static tSDP_DISC_REC *add_record (tSDP_DISCOVERY_DB *p_db, BD_ADDR p_bda);
53 static UINT8 *add_attr (UINT8 *p, tSDP_DISCOVERY_DB *p_db, tSDP_DISC_REC *p_rec,
141 p = sdpu_build_uuid_seq (p, 1, &p_ccb->p_db->uuid_filters[p_ccb->cur_uuid_idx]); in sdp_snd_service_search_req()
143 p = sdpu_build_uuid_seq (p, p_ccb->p_db->num_uuid_filters, p_ccb->p_db->uuid_filters); in sdp_snd_service_search_req()
362 if(p_ccb->p_db->raw_data) in sdp_copy_raw_data()
364 cpy_len = p_ccb->p_db->raw_size - p_ccb->p_db->raw_used; in sdp_copy_raw_data()
379 list_len, cpy_len, p_ccb->p_db->raw_size, p_ccb->p_db->raw_used); in sdp_copy_raw_data()
381 memcpy (&p_ccb->p_db->raw_data[p_ccb->p_db->raw_used], p, cpy_len); in sdp_copy_raw_data()
382 p_ccb->p_db->raw_used += cpy_len; in sdp_copy_raw_data()
496 if (p_ccb->p_db->num_attr_filters) in process_service_attr_rsp()
497 p = sdpu_build_attrib_seq (p, p_ccb->p_db->attr_filters, p_ccb->p_db->num_attr_filters); in process_service_attr_rsp()
626 p = sdpu_build_uuid_seq (p, 1, &p_ccb->p_db->uuid_filters[p_ccb->cur_uuid_idx]); in process_service_search_attr_rsp()
628 p = sdpu_build_uuid_seq (p, p_ccb->p_db->num_uuid_filters, p_ccb->p_db->uuid_filters); in process_service_search_attr_rsp()
635 if (p_ccb->p_db->num_attr_filters) in process_service_search_attr_rsp()
636 p = sdpu_build_attrib_seq (p, p_ccb->p_db->attr_filters, p_ccb->p_db->num_attr_filters); in process_service_search_attr_rsp()
744 p_rec = add_record (p_ccb->p_db, p_ccb->device_address); in save_attr_seq()
766 p = add_attr (p, p_ccb->p_db, p_rec, attr_id, NULL, 0); in save_attr_seq()
788 tSDP_DISC_REC *add_record (tSDP_DISCOVERY_DB *p_db, BD_ADDR p_bda) in add_record() argument
793 if (p_db->mem_free < sizeof (tSDP_DISC_REC)) in add_record()
796 p_rec = (tSDP_DISC_REC *) p_db->p_free_mem; in add_record()
797 p_db->p_free_mem += sizeof (tSDP_DISC_REC); in add_record()
798 p_db->mem_free -= sizeof (tSDP_DISC_REC); in add_record()
806 if (!p_db->p_first_rec) in add_record()
807 p_db->p_first_rec = p_rec; in add_record()
810 tSDP_DISC_REC *p_rec1 = p_db->p_first_rec; in add_record()
832 static UINT8 *add_attr (UINT8 *p, tSDP_DISCOVERY_DB *p_db, tSDP_DISC_REC *p_rec, in add_attr() argument
862 if (p_db->mem_free < total_len) in add_attr()
865 p_attr = (tSDP_DISC_ATTR *) p_db->p_free_mem; in add_attr()
882 p_db->p_free_mem += sizeof (tSDP_DISC_ATTR); in add_attr()
883 p_db->mem_free -= sizeof (tSDP_DISC_ATTR); in add_attr()
895 … p = add_attr (p, p_db, p_rec, ATTR_ID_PROTOCOL_DESC_LIST, p_attr, (UINT8)(nest_level + 1)); in add_attr()
975 p_db->p_free_mem += sizeof (tSDP_DISC_ATTR); in add_attr()
976 p_db->mem_free -= sizeof (tSDP_DISC_ATTR); in add_attr()
993 p = add_attr (p, p_db, p_rec, 0, p_attr, (UINT8)(nest_level + 1)); in add_attr()
1021 p_db->p_free_mem += total_len; in add_attr()
1022 p_db->mem_free -= total_len; in add_attr()