Lines Matching refs:p
44 static BOOLEAN find_uuid_in_seq (UINT8 *p , UINT32 seq_len, UINT8 *p_his_uuid,
118 static BOOLEAN find_uuid_in_seq (UINT8 *p , UINT32 seq_len, UINT8 *p_uuid, in find_uuid_in_seq() argument
121 UINT8 *p_end = p + seq_len; in find_uuid_in_seq()
129 while (p < p_end) in find_uuid_in_seq()
131 type = *p++; in find_uuid_in_seq()
132 p = sdpu_get_len_from_type (p, type, &len); in find_uuid_in_seq()
136 if (sdpu_compare_uuid_arrays (p, len, p_uuid, uuid_len)) in find_uuid_in_seq()
141 if (find_uuid_in_seq (p, len, p_uuid, uuid_len, nest_level + 1)) in find_uuid_in_seq()
144 p = p + len; in find_uuid_in_seq()
218 static int sdp_compose_proto_list( UINT8 *p, UINT16 num_elem, in sdp_compose_proto_list() argument
223 UINT8 *p_head = p; in sdp_compose_proto_list()
233 UINT8_TO_BE_STREAM (p, (DATA_ELE_SEQ_DESC_TYPE << 3) | SIZE_IN_NEXT_BYTE); in sdp_compose_proto_list()
235 p_len = p; in sdp_compose_proto_list()
236 *p++ = (UINT8) len; in sdp_compose_proto_list()
238 UINT8_TO_BE_STREAM (p, (UUID_DESC_TYPE << 3) | SIZE_TWO_BYTES); in sdp_compose_proto_list()
239 UINT16_TO_BE_STREAM (p, p_elem_list->protocol_uuid); in sdp_compose_proto_list()
250 UINT8_TO_BE_STREAM (p, (UINT_DESC_TYPE << 3) | SIZE_ONE_BYTE); in sdp_compose_proto_list()
251 UINT8_TO_BE_STREAM (p, p_elem_list->params[yy]); in sdp_compose_proto_list()
257 UINT8_TO_BE_STREAM (p, (UINT_DESC_TYPE << 3) | SIZE_TWO_BYTES); in sdp_compose_proto_list()
258 UINT16_TO_BE_STREAM (p, p_elem_list->params[yy]); in sdp_compose_proto_list()
262 return (p - p_head); in sdp_compose_proto_list()
533 UINT8 *p; in SDP_AddSequence() local
542 p = p_buff; in SDP_AddSequence()
547 p_head = p; in SDP_AddSequence()
551 UINT8_TO_BE_STREAM (p, (type[xx] << 3) | SIZE_ONE_BYTE); in SDP_AddSequence()
554 UINT8_TO_BE_STREAM (p, (type[xx] << 3) | SIZE_TWO_BYTES); in SDP_AddSequence()
557 UINT8_TO_BE_STREAM (p, (type[xx] << 3) | SIZE_FOUR_BYTES); in SDP_AddSequence()
560 UINT8_TO_BE_STREAM (p, (type[xx] << 3) | SIZE_EIGHT_BYTES); in SDP_AddSequence()
563 UINT8_TO_BE_STREAM (p, (type[xx] << 3) | SIZE_SIXTEEN_BYTES); in SDP_AddSequence()
566 UINT8_TO_BE_STREAM (p, (type[xx] << 3) | SIZE_IN_NEXT_BYTE); in SDP_AddSequence()
567 UINT8_TO_BE_STREAM (p, len[xx]); in SDP_AddSequence()
571 ARRAY_TO_BE_STREAM (p, p_val[xx], len[xx]); in SDP_AddSequence()
573 if (p - p_buff > SDP_MAX_ATTR_LEN) in SDP_AddSequence()
576 p = p_head; in SDP_AddSequence()
589 … result = SDP_AddAttribute (handle, attr_id, DATA_ELE_SEQ_DESC_TYPE,(UINT32) (p - p_buff), p_buff); in SDP_AddSequence()
616 UINT8 *p; in SDP_AddUuidSequence() local
625 p = p_buff; in SDP_AddUuidSequence()
630 UINT8_TO_BE_STREAM (p, (UUID_DESC_TYPE << 3) | SIZE_TWO_BYTES); in SDP_AddUuidSequence()
631 UINT16_TO_BE_STREAM (p, *p_uuids); in SDP_AddUuidSequence()
633 if((p - p_buff) > max_len) in SDP_AddUuidSequence()
640 … result = SDP_AddAttribute (handle, attr_id, DATA_ELE_SEQ_DESC_TYPE,(UINT32) (p - p_buff), p_buff); in SDP_AddUuidSequence()
702 UINT8 *p; in SDP_AddAdditionProtoLists() local
712 p = p_buff; in SDP_AddAdditionProtoLists()
717 UINT8_TO_BE_STREAM (p, (DATA_ELE_SEQ_DESC_TYPE << 3) | SIZE_IN_NEXT_BYTE); in SDP_AddAdditionProtoLists()
718 p_len = p++; in SDP_AddAdditionProtoLists()
720 offset = sdp_compose_proto_list(p, p_proto_list->num_elems, in SDP_AddAdditionProtoLists()
722 p += offset; in SDP_AddAdditionProtoLists()
724 *p_len = (UINT8)(p - p_len - 1); in SDP_AddAdditionProtoLists()
727 (UINT32) (p - p_buff), p_buff); in SDP_AddAdditionProtoLists()
753 UINT8 *p; in SDP_AddProfileDescriptorList() local
761 p = p_buff+2; in SDP_AddProfileDescriptorList()
765 UINT8_TO_BE_STREAM (p, (UUID_DESC_TYPE << 3) | SIZE_TWO_BYTES); in SDP_AddProfileDescriptorList()
766 UINT16_TO_BE_STREAM (p, profile_uuid); in SDP_AddProfileDescriptorList()
768 UINT8_TO_BE_STREAM (p, (UINT_DESC_TYPE << 3) | SIZE_TWO_BYTES); in SDP_AddProfileDescriptorList()
769 UINT16_TO_BE_STREAM (p, version); in SDP_AddProfileDescriptorList()
773 *(p_buff+1) = (UINT8) (p - (p_buff+2)); in SDP_AddProfileDescriptorList()
775 …ibute (handle, ATTR_ID_BT_PROFILE_DESC_LIST,DATA_ELE_SEQ_DESC_TYPE, (UINT32) (p - p_buff), p_buff); in SDP_AddProfileDescriptorList()
802 UINT8 *p; in SDP_AddLanguageBaseAttrIDList() local
810 p = p_buff; in SDP_AddLanguageBaseAttrIDList()
814 UINT8_TO_BE_STREAM (p, (UINT_DESC_TYPE << 3) | SIZE_TWO_BYTES); in SDP_AddLanguageBaseAttrIDList()
815 UINT16_TO_BE_STREAM (p, lang); in SDP_AddLanguageBaseAttrIDList()
817 UINT8_TO_BE_STREAM (p, (UINT_DESC_TYPE << 3) | SIZE_TWO_BYTES); in SDP_AddLanguageBaseAttrIDList()
818 UINT16_TO_BE_STREAM (p, char_enc); in SDP_AddLanguageBaseAttrIDList()
820 UINT8_TO_BE_STREAM (p, (UINT_DESC_TYPE << 3) | SIZE_TWO_BYTES); in SDP_AddLanguageBaseAttrIDList()
821 UINT16_TO_BE_STREAM (p, base_id); in SDP_AddLanguageBaseAttrIDList()
824 (UINT32) (p - p_buff), p_buff); in SDP_AddLanguageBaseAttrIDList()
851 UINT8 *p; in SDP_AddServiceClassIdList() local
859 p = p_buff; in SDP_AddServiceClassIdList()
863 UINT8_TO_BE_STREAM (p, (UUID_DESC_TYPE << 3) | SIZE_TWO_BYTES); in SDP_AddServiceClassIdList()
864 UINT16_TO_BE_STREAM (p, *p_service_uuids); in SDP_AddServiceClassIdList()
868 (UINT32) (p - p_buff), p_buff); in SDP_AddServiceClassIdList()