Lines Matching refs:p_sattr

341     tSDP_DISC_ATTR  *p_attr, *p_sattr, *p_extra_sattr;
350 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
352 if (SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == UUID_DESC_TYPE)
355 if (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == 2)
358 p_uuid->uu.uuid16 = p_sattr->attr_value.v.u16;
369 if (SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE)
372 for (p_extra_sattr = p_sattr->attr_value.v.p_sub_attr; p_extra_sattr; p_extra_sattr = p_extra_sattr->p_next_attr)
422 tSDP_DISC_ATTR *p_attr, *p_sattr, *p_extra_sattr;
431 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
433 if (SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == UUID_DESC_TYPE)
436 if (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == 16)
439 memcpy(p_uuid->uu.uuid128, p_sattr->attr_value.v.array, MAX_UUID_SIZE);
453 memcpy(p_uuid->uu.uuid128, p_sattr->attr_value.v.array, MAX_UUID_SIZE);
479 tSDP_DISC_ATTR *p_attr, *p_sattr, *p_extra_sattr;
498 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
501 if ((SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == UUID_DESC_TYPE)
502 && (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == 2) ) {
503 printf("SDP_FindServiceInDb - p_sattr value = 0x%x serviceuuid = 0x%x\r\n", p_sattr->attr_value.v.u16, service_uuid);
506 if( (p_sattr->attr_value.v.u16==UUID_SERVCLASS_HDP_SOURCE) || ( p_sattr->attr_value.v.u16==UUID_SERVCLASS_HDP_SOURCE))
515 if ((SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == UUID_DESC_TYPE)
516 && (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == 2)
518 && ((p_sattr->attr_value.v.u16 == service_uuid) || service_uuid == 0))
529 if (SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE)
532 for (p_extra_sattr = p_sattr->attr_value.v.p_sub_attr; p_extra_sattr; p_extra_sattr = p_extra_sattr->p_next_attr)
592 tSDP_DISC_ATTR *p_attr, *p_sattr, *p_extra_sattr;
611 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
613 if ((SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == UUID_DESC_TYPE)
614 && (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == 16))
658 tSDP_DISC_ATTR *p_attr, *p_sattr;
677 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
679 if (SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == UUID_DESC_TYPE)
692 if (sdpu_compare_uuid_with_attr (p_uuid, p_sattr))
731 tSDP_DISC_ATTR *p_sattr;
741 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
743 /* SDP_TRACE_DEBUG3 ("SDP - p_sattr 0x%x, layer_uuid:0x%x, u16:0x%x####",
744 p_sattr, layer_uuid, p_sattr->attr_value.v.u16); */
746 if ((SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == UUID_DESC_TYPE)
747 && (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == 2)
748 && (p_sattr->attr_value.v.u16 == layer_uuid))
755 for (p_sattr = p_sattr->p_next_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
757 if (SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) != UINT_DESC_TYPE)
760 if (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == 2)
761 p_elem->params[p_elem->num_params++] = p_sattr->attr_value.v.u16;
763 p_elem->params[p_elem->num_params++] = p_sattr->attr_value.v.u8;
824 tSDP_DISC_ATTR *p_attr, *p_sattr;
834 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
837 if (SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE)
839 if ( (ret = sdp_fill_proto_elem(p_sattr, layer_uuid, p_elem)) == TRUE)
870 tSDP_DISC_ATTR *p_attr, *p_sattr;
887 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr)
889 if ((SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == UUID_DESC_TYPE)
890 && (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == 2) /* <- This is bytes, not size code! */
891 && (p_sattr->attr_value.v.u16 == profile_uuid))
895 p_sattr = p_sattr->p_next_attr;
897 if ((SDP_DISC_ATTR_TYPE(p_sattr->attr_len_type) == UINT_DESC_TYPE) &&
898 (SDP_DISC_ATTR_LEN(p_sattr->attr_len_type) == 2))
901 *p_version = p_sattr->attr_value.v.u16;