• Home
  • Raw
  • Download

Lines Matching refs:p_attr

71   for (tSDP_DISC_ATTR* p_attr = p_rec->p_first_attr; p_attr != nullptr;  in sdpu_find_profile_version()  local
72 p_attr = p_attr->p_next_attr) { in sdpu_find_profile_version()
74 if (p_attr->attr_id != ATTR_ID_BT_PROFILE_DESC_LIST || in sdpu_find_profile_version()
75 SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) != DATA_ELE_SEQ_DESC_TYPE) { in sdpu_find_profile_version()
79 for (tSDP_DISC_ATTR* p_sattr = p_attr->attr_value.v.p_sub_attr; in sdpu_find_profile_version()
124 for (tSDP_DISC_ATTR* p_attr = p_rec->p_first_attr; p_attr != nullptr; in sdpu_find_most_specific_service_uuid() local
125 p_attr = p_attr->p_next_attr) { in sdpu_find_most_specific_service_uuid()
126 if (p_attr->attr_id == ATTR_ID_SERVICE_CLASS_ID_LIST && in sdpu_find_most_specific_service_uuid()
127 SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE) { in sdpu_find_most_specific_service_uuid()
128 tSDP_DISC_ATTR* p_first_attr = p_attr->attr_value.v.p_sub_attr; in sdpu_find_most_specific_service_uuid()
151 } else if (p_attr->attr_id == ATTR_ID_SERVICE_ID) { in sdpu_find_most_specific_service_uuid()
152 if (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == UUID_DESC_TYPE && in sdpu_find_most_specific_service_uuid()
153 SDP_DISC_ATTR_LEN(p_attr->attr_len_type) == 2) { in sdpu_find_most_specific_service_uuid()
154 return p_attr->attr_value.v.u16; in sdpu_find_most_specific_service_uuid()
224 tSDP_DISC_ATTR* p_attr = in sdpu_log_attribute_metrics() local
226 if (p_attr == nullptr) { in sdpu_log_attribute_metrics()
229 uint16_t supported_features = p_attr->attr_value.v.u16; in sdpu_log_attribute_metrics()
238 tSDP_DISC_ATTR* p_attr = in sdpu_log_attribute_metrics() local
240 if (p_attr == nullptr) { in sdpu_log_attribute_metrics()
243 uint32_t map_supported_features = p_attr->attr_value.v.u32; in sdpu_log_attribute_metrics()
252 tSDP_DISC_ATTR* p_attr = in sdpu_log_attribute_metrics() local
254 if (p_attr == nullptr) { in sdpu_log_attribute_metrics()
257 uint32_t pbap_supported_features = p_attr->attr_value.v.u32; in sdpu_log_attribute_metrics()
397 uint8_t* sdpu_build_attrib_seq(uint8_t* p_out, uint16_t* p_attr, in sdpu_build_attrib_seq() argument
403 if (!p_attr) in sdpu_build_attrib_seq()
419 if (!p_attr) { in sdpu_build_attrib_seq()
425 for (xx = 0; xx < num_attrs; xx++, p_attr++) { in sdpu_build_attrib_seq()
427 UINT16_TO_BE_STREAM(p_out, *p_attr); in sdpu_build_attrib_seq()
445 uint8_t* sdpu_build_attrib_entry(uint8_t* p_out, tSDP_ATTRIBUTE* p_attr) { in sdpu_build_attrib_entry() argument
448 UINT16_TO_BE_STREAM(p_out, p_attr->id); in sdpu_build_attrib_entry()
452 switch (p_attr->type) { in sdpu_build_attrib_entry()
458 if (p_attr->len > 0xFFFF) { in sdpu_build_attrib_entry()
459 UINT8_TO_BE_STREAM(p_out, (p_attr->type << 3) | SIZE_IN_NEXT_LONG); in sdpu_build_attrib_entry()
460 UINT32_TO_BE_STREAM(p_out, p_attr->len); in sdpu_build_attrib_entry()
464 if (p_attr->len > 0xFF) { in sdpu_build_attrib_entry()
465 UINT8_TO_BE_STREAM(p_out, (p_attr->type << 3) | SIZE_IN_NEXT_WORD); in sdpu_build_attrib_entry()
466 UINT16_TO_BE_STREAM(p_out, p_attr->len); in sdpu_build_attrib_entry()
470 UINT8_TO_BE_STREAM(p_out, (p_attr->type << 3) | SIZE_IN_NEXT_BYTE); in sdpu_build_attrib_entry()
471 UINT8_TO_BE_STREAM(p_out, p_attr->len); in sdpu_build_attrib_entry()
474 if (p_attr->value_ptr != NULL) { in sdpu_build_attrib_entry()
475 ARRAY_TO_BE_STREAM(p_out, p_attr->value_ptr, (int)p_attr->len); in sdpu_build_attrib_entry()
482 switch (p_attr->len) { in sdpu_build_attrib_entry()
484 UINT8_TO_BE_STREAM(p_out, (p_attr->type << 3) | SIZE_ONE_BYTE); in sdpu_build_attrib_entry()
487 UINT8_TO_BE_STREAM(p_out, (p_attr->type << 3) | SIZE_TWO_BYTES); in sdpu_build_attrib_entry()
490 UINT8_TO_BE_STREAM(p_out, (p_attr->type << 3) | SIZE_FOUR_BYTES); in sdpu_build_attrib_entry()
493 UINT8_TO_BE_STREAM(p_out, (p_attr->type << 3) | SIZE_EIGHT_BYTES); in sdpu_build_attrib_entry()
496 UINT8_TO_BE_STREAM(p_out, (p_attr->type << 3) | SIZE_SIXTEEN_BYTES); in sdpu_build_attrib_entry()
499 UINT8_TO_BE_STREAM(p_out, (p_attr->type << 3) | SIZE_IN_NEXT_BYTE); in sdpu_build_attrib_entry()
500 UINT8_TO_BE_STREAM(p_out, p_attr->len); in sdpu_build_attrib_entry()
504 if (p_attr->value_ptr != NULL) { in sdpu_build_attrib_entry()
505 ARRAY_TO_BE_STREAM(p_out, p_attr->value_ptr, (int)p_attr->len); in sdpu_build_attrib_entry()
944 bool sdpu_compare_uuid_with_attr(const Uuid& uuid, tSDP_DISC_ATTR* p_attr) { in sdpu_compare_uuid_with_attr() argument
946 if (len == 2) return uuid.As16Bit() == p_attr->attr_value.v.u16; in sdpu_compare_uuid_with_attr()
947 if (len == 4) return uuid.As32Bit() == p_attr->attr_value.v.u32; in sdpu_compare_uuid_with_attr()
948 if (memcmp(uuid.To128BitBE().data(), (void*)p_attr->attr_value.v.array, in sdpu_compare_uuid_with_attr()
1030 tSDP_ATTRIBUTE* p_attr; in sdpu_get_attrib_seq_len() local
1041 p_attr = sdp_db_find_attr_in_rec(p_rec, start_id, end_id); in sdpu_get_attrib_seq_len()
1042 if (p_attr) { in sdpu_get_attrib_seq_len()
1043 len1 += sdpu_get_attrib_entry_len(p_attr); in sdpu_get_attrib_seq_len()
1048 start_id = p_attr->id + 1; in sdpu_get_attrib_seq_len()
1068 uint16_t sdpu_get_attrib_entry_len(tSDP_ATTRIBUTE* p_attr) { in sdpu_get_attrib_entry_len() argument
1073 switch (p_attr->type) { in sdpu_get_attrib_entry_len()
1079 if (p_attr->len > 0xFFFF) { in sdpu_get_attrib_entry_len()
1084 if (p_attr->len > 0xFF) { in sdpu_get_attrib_entry_len()
1091 len += p_attr->len; in sdpu_get_attrib_entry_len()
1096 switch (p_attr->len) { in sdpu_get_attrib_entry_len()
1109 len += p_attr->len; in sdpu_get_attrib_entry_len()
1130 uint8_t* sdpu_build_partial_attrib_entry(uint8_t* p_out, tSDP_ATTRIBUTE* p_attr, in sdpu_build_partial_attrib_entry() argument
1134 sdpu_build_attrib_entry(p_attr_buff, p_attr); in sdpu_build_partial_attrib_entry()
1136 uint16_t attr_len = sdpu_get_attrib_entry_len(p_attr); in sdpu_build_partial_attrib_entry()