Lines Matching refs:p_attr
62 tSDP_ATTRIBUTE *p_attr; in sdp_db_service_search() local
77 p_attr = &p_rec->attribute[0]; in sdp_db_service_search()
78 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++) in sdp_db_service_search()
80 if (p_attr->type == UUID_DESC_TYPE) in sdp_db_service_search()
82 if (sdpu_compare_uuid_arrays (p_attr->value_ptr, p_attr->len, in sdp_db_service_search()
87 else if (p_attr->type == DATA_ELE_SEQ_DESC_TYPE) in sdp_db_service_search()
89 if (find_uuid_in_seq (p_attr->value_ptr, p_attr->len, in sdp_db_service_search()
441 tSDP_ATTRIBUTE *p_attr = &p_rec->attribute[0]; in SDP_AddAttribute() local
444 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++) in SDP_AddAttribute()
447 if (p_attr->id == attr_id) in SDP_AddAttribute()
452 if (p_attr->id > attr_id) in SDP_AddAttribute()
461 p_attr = &p_rec->attribute[p_rec->num_attributes]; in SDP_AddAttribute()
469 p_attr->id = attr_id; in SDP_AddAttribute()
470 p_attr->type = attr_type; in SDP_AddAttribute()
471 p_attr->len = attr_len; in SDP_AddAttribute()
491 p_attr->len = attr_len; in SDP_AddAttribute()
493 p_attr->value_ptr = &p_rec->attr_pad[p_rec->free_pad_ptr]; in SDP_AddAttribute()
496 … else if ((attr_len == 0 && p_attr->len != 0) || /* if truncate to 0 length, simply don't add */ in SDP_AddAttribute()
501 p_attr->id = p_attr->type = p_attr->len = 0; in SDP_AddAttribute()
864 tSDP_ATTRIBUTE *p_attr = &p_rec->attribute[0]; in SDP_DeleteAttribute() local
868 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++) in SDP_DeleteAttribute()
870 if (p_attr->id == attr_id) in SDP_DeleteAttribute()
872 pad_ptr = p_attr->value_ptr; in SDP_DeleteAttribute()
873 len = p_attr->len; in SDP_DeleteAttribute()
887 for (yy = xx; yy < p_rec->num_attributes; yy++, p_attr++) in SDP_DeleteAttribute()
889 *p_attr = *(p_attr + 1); in SDP_DeleteAttribute()
933 tSDP_ATTRIBUTE *p_attr; in SDP_ReadRecord() local
942 while ( (p_attr = sdp_db_find_attr_in_rec (p_rec, start, end)) != NULL) in SDP_ReadRecord()
947 if (p_attr->len > (UINT32)(rem_len - 6)) in SDP_ReadRecord()
950 p_rsp = sdpu_build_attrib_entry (p_rsp, p_attr); in SDP_ReadRecord()
953 start = p_attr->id + 1; in SDP_ReadRecord()