Lines Matching refs:p_attr

221   tSDP_DISC_ATTR* p_attr;  in SDP_FindAttributeInRec()  local
223 p_attr = p_rec->p_first_attr; in SDP_FindAttributeInRec()
224 while (p_attr) { in SDP_FindAttributeInRec()
225 if (p_attr->attr_id == attr_id) return (p_attr); in SDP_FindAttributeInRec()
227 p_attr = p_attr->p_next_attr; in SDP_FindAttributeInRec()
248 tSDP_DISC_ATTR *p_attr, *p_sattr, *p_extra_sattr; in SDP_FindServiceUUIDInRec() local
250 p_attr = p_rec->p_first_attr; in SDP_FindServiceUUIDInRec()
252 while (p_attr) { in SDP_FindServiceUUIDInRec()
253 if ((p_attr->attr_id == ATTR_ID_SERVICE_CLASS_ID_LIST) && in SDP_FindServiceUUIDInRec()
254 (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE)) { in SDP_FindServiceUUIDInRec()
255 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; in SDP_FindServiceUUIDInRec()
294 } else if (p_attr->attr_id == ATTR_ID_SERVICE_ID) { in SDP_FindServiceUUIDInRec()
295 if ((SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == UUID_DESC_TYPE) in SDP_FindServiceUUIDInRec()
297 && (SDP_DISC_ATTR_LEN(p_attr->attr_len_type) == 2)) { in SDP_FindServiceUUIDInRec()
298 *p_uuid = Uuid::From16Bit(p_attr->attr_value.v.u16); in SDP_FindServiceUUIDInRec()
302 p_attr = p_attr->p_next_attr; in SDP_FindServiceUUIDInRec()
321 tSDP_DISC_ATTR* p_attr = p_rec->p_first_attr; in SDP_FindServiceUUIDInRec_128bit() local
322 while (p_attr) { in SDP_FindServiceUUIDInRec_128bit()
323 if ((p_attr->attr_id == ATTR_ID_SERVICE_CLASS_ID_LIST) && in SDP_FindServiceUUIDInRec_128bit()
324 (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE)) { in SDP_FindServiceUUIDInRec_128bit()
325 tSDP_DISC_ATTR* p_sattr = p_attr->attr_value.v.p_sub_attr; in SDP_FindServiceUUIDInRec_128bit()
338 } else if (p_attr->attr_id == ATTR_ID_SERVICE_ID) { in SDP_FindServiceUUIDInRec_128bit()
339 if ((SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == UUID_DESC_TYPE) in SDP_FindServiceUUIDInRec_128bit()
341 && (SDP_DISC_ATTR_LEN(p_attr->attr_len_type) == 16)) { in SDP_FindServiceUUIDInRec_128bit()
342 *p_uuid = Uuid::From128BitBE(p_attr->attr_value.v.array); in SDP_FindServiceUUIDInRec_128bit()
346 p_attr = p_attr->p_next_attr; in SDP_FindServiceUUIDInRec_128bit()
367 tSDP_DISC_ATTR *p_attr, *p_sattr, *p_extra_sattr; in SDP_FindServiceInDb() local
378 p_attr = p_rec->p_first_attr; in SDP_FindServiceInDb()
379 while (p_attr) { in SDP_FindServiceInDb()
380 if ((p_attr->attr_id == ATTR_ID_SERVICE_CLASS_ID_LIST) && in SDP_FindServiceInDb()
381 (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == in SDP_FindServiceInDb()
383 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; in SDP_FindServiceInDb()
433 } else if (p_attr->attr_id == ATTR_ID_SERVICE_ID) { in SDP_FindServiceInDb()
434 if ((SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == UUID_DESC_TYPE) && in SDP_FindServiceInDb()
435 (SDP_DISC_ATTR_LEN(p_attr->attr_len_type) == 2) in SDP_FindServiceInDb()
438 ((p_attr->attr_value.v.u16 == service_uuid) || service_uuid == 0)) in SDP_FindServiceInDb()
442 p_attr = p_attr->p_next_attr; in SDP_FindServiceInDb()
469 tSDP_DISC_ATTR *p_attr, *p_sattr; in SDP_FindServiceInDb_128bit() local
480 p_attr = p_rec->p_first_attr; in SDP_FindServiceInDb_128bit()
481 while (p_attr) { in SDP_FindServiceInDb_128bit()
482 if ((p_attr->attr_id == ATTR_ID_SERVICE_CLASS_ID_LIST) && in SDP_FindServiceInDb_128bit()
483 (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == in SDP_FindServiceInDb_128bit()
485 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; in SDP_FindServiceInDb_128bit()
493 } else if (p_attr->attr_id == ATTR_ID_SERVICE_ID) { in SDP_FindServiceInDb_128bit()
494 if ((SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == UUID_DESC_TYPE) && in SDP_FindServiceInDb_128bit()
495 (SDP_DISC_ATTR_LEN(p_attr->attr_len_type) == 16)) in SDP_FindServiceInDb_128bit()
499 p_attr = p_attr->p_next_attr; in SDP_FindServiceInDb_128bit()
528 tSDP_DISC_ATTR *p_attr, *p_sattr; in SDP_FindServiceUUIDInDb() local
539 p_attr = p_rec->p_first_attr; in SDP_FindServiceUUIDInDb()
540 while (p_attr) { in SDP_FindServiceUUIDInDb()
541 if ((p_attr->attr_id == ATTR_ID_SERVICE_CLASS_ID_LIST) && in SDP_FindServiceUUIDInDb()
542 (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == in SDP_FindServiceUUIDInDb()
544 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; in SDP_FindServiceUUIDInDb()
551 } else if (p_attr->attr_id == ATTR_ID_SERVICE_ID) { in SDP_FindServiceUUIDInDb()
552 if (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == UUID_DESC_TYPE) { in SDP_FindServiceUUIDInDb()
553 if (sdpu_compare_uuid_with_attr(uuid, p_attr)) return (p_rec); in SDP_FindServiceUUIDInDb()
557 p_attr = p_attr->p_next_attr; in SDP_FindServiceUUIDInDb()
576 static bool sdp_fill_proto_elem(tSDP_DISC_ATTR* p_attr, uint16_t layer_uuid, in sdp_fill_proto_elem() argument
581 for (p_attr = p_attr->attr_value.v.p_sub_attr; p_attr; in sdp_fill_proto_elem()
582 p_attr = p_attr->p_next_attr) { in sdp_fill_proto_elem()
584 if (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) != DATA_ELE_SEQ_DESC_TYPE) in sdp_fill_proto_elem()
588 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; in sdp_fill_proto_elem()
634 tSDP_DISC_ATTR* p_attr; in SDP_FindProtocolListElemInRec() local
636 p_attr = p_rec->p_first_attr; in SDP_FindProtocolListElemInRec()
637 while (p_attr) { in SDP_FindProtocolListElemInRec()
639 if ((p_attr->attr_id == ATTR_ID_PROTOCOL_DESC_LIST) && in SDP_FindProtocolListElemInRec()
640 (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE)) { in SDP_FindProtocolListElemInRec()
641 return sdp_fill_proto_elem(p_attr, layer_uuid, p_elem); in SDP_FindProtocolListElemInRec()
643 p_attr = p_attr->p_next_attr; in SDP_FindProtocolListElemInRec()
665 tSDP_DISC_ATTR *p_attr, *p_sattr; in SDP_FindProfileVersionInRec() local
667 p_attr = p_rec->p_first_attr; in SDP_FindProfileVersionInRec()
668 while (p_attr) { in SDP_FindProfileVersionInRec()
670 if ((p_attr->attr_id == ATTR_ID_BT_PROFILE_DESC_LIST) && in SDP_FindProfileVersionInRec()
671 (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE)) { in SDP_FindProfileVersionInRec()
673 for (p_attr = p_attr->attr_value.v.p_sub_attr; p_attr; in SDP_FindProfileVersionInRec()
674 p_attr = p_attr->p_next_attr) { in SDP_FindProfileVersionInRec()
676 if (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) != DATA_ELE_SEQ_DESC_TYPE) in SDP_FindProfileVersionInRec()
681 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; in SDP_FindProfileVersionInRec()
709 p_attr = p_attr->p_next_attr; in SDP_FindProfileVersionInRec()
778 static void SDP_AttrStringCopy(char* dst, tSDP_DISC_ATTR* p_attr, in SDP_AttrStringCopy() argument
781 if (p_attr) { in SDP_AttrStringCopy()
782 uint16_t len = SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in SDP_AttrStringCopy()
786 memcpy(dst, (char*)p_attr->attr_value.v.array, len); in SDP_AttrStringCopy()