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()
532 UINT8 *p; in SDP_AddSequence() local
537 p = p_buff; in SDP_AddSequence()
542 p_head = p; in SDP_AddSequence()
546 UINT8_TO_BE_STREAM (p, (type[xx] << 3) | SIZE_ONE_BYTE); in SDP_AddSequence()
549 UINT8_TO_BE_STREAM (p, (type[xx] << 3) | SIZE_TWO_BYTES); in SDP_AddSequence()
552 UINT8_TO_BE_STREAM (p, (type[xx] << 3) | SIZE_FOUR_BYTES); in SDP_AddSequence()
555 UINT8_TO_BE_STREAM (p, (type[xx] << 3) | SIZE_EIGHT_BYTES); in SDP_AddSequence()
558 UINT8_TO_BE_STREAM (p, (type[xx] << 3) | SIZE_SIXTEEN_BYTES); in SDP_AddSequence()
561 UINT8_TO_BE_STREAM (p, (type[xx] << 3) | SIZE_IN_NEXT_BYTE); in SDP_AddSequence()
562 UINT8_TO_BE_STREAM (p, len[xx]); in SDP_AddSequence()
566 ARRAY_TO_BE_STREAM (p, p_val[xx], len[xx]); in SDP_AddSequence()
568 if (p - p_buff > SDP_MAX_ATTR_LEN) in SDP_AddSequence()
571 p = p_head; in SDP_AddSequence()
584 … result = SDP_AddAttribute (handle, attr_id, DATA_ELE_SEQ_DESC_TYPE,(UINT32) (p - p_buff), p_buff); in SDP_AddSequence()
610 UINT8 *p; in SDP_AddUuidSequence() local
615 p = p_buff; in SDP_AddUuidSequence()
620 UINT8_TO_BE_STREAM (p, (UUID_DESC_TYPE << 3) | SIZE_TWO_BYTES); in SDP_AddUuidSequence()
621 UINT16_TO_BE_STREAM (p, *p_uuids); in SDP_AddUuidSequence()
623 if((p - p_buff) > max_len) in SDP_AddUuidSequence()
630 … result = SDP_AddAttribute (handle, attr_id, DATA_ELE_SEQ_DESC_TYPE,(UINT32) (p - p_buff), p_buff); in SDP_AddUuidSequence()
685 UINT8 *p; in SDP_AddAdditionProtoLists() local
691 p = p_buff; in SDP_AddAdditionProtoLists()
696 UINT8_TO_BE_STREAM (p, (DATA_ELE_SEQ_DESC_TYPE << 3) | SIZE_IN_NEXT_BYTE); in SDP_AddAdditionProtoLists()
697 p_len = p++; in SDP_AddAdditionProtoLists()
699 offset = sdp_compose_proto_list(p, p_proto_list->num_elems, in SDP_AddAdditionProtoLists()
701 p += offset; in SDP_AddAdditionProtoLists()
703 *p_len = (UINT8)(p - p_len - 1); in SDP_AddAdditionProtoLists()
706 (UINT32) (p - p_buff), p_buff); in SDP_AddAdditionProtoLists()
731 UINT8 *p; in SDP_AddProfileDescriptorList() local
735 p = p_buff + 2; in SDP_AddProfileDescriptorList()
739 UINT8_TO_BE_STREAM (p, (UUID_DESC_TYPE << 3) | SIZE_TWO_BYTES); in SDP_AddProfileDescriptorList()
740 UINT16_TO_BE_STREAM (p, profile_uuid); in SDP_AddProfileDescriptorList()
742 UINT8_TO_BE_STREAM (p, (UINT_DESC_TYPE << 3) | SIZE_TWO_BYTES); in SDP_AddProfileDescriptorList()
743 UINT16_TO_BE_STREAM (p, version); in SDP_AddProfileDescriptorList()
747 *(p_buff+1) = (UINT8) (p - (p_buff+2)); in SDP_AddProfileDescriptorList()
749 …ibute (handle, ATTR_ID_BT_PROFILE_DESC_LIST,DATA_ELE_SEQ_DESC_TYPE, (UINT32) (p - p_buff), p_buff); in SDP_AddProfileDescriptorList()
775 UINT8 *p; in SDP_AddLanguageBaseAttrIDList() local
779 p = p_buff; in SDP_AddLanguageBaseAttrIDList()
783 UINT8_TO_BE_STREAM (p, (UINT_DESC_TYPE << 3) | SIZE_TWO_BYTES); in SDP_AddLanguageBaseAttrIDList()
784 UINT16_TO_BE_STREAM (p, lang); in SDP_AddLanguageBaseAttrIDList()
786 UINT8_TO_BE_STREAM (p, (UINT_DESC_TYPE << 3) | SIZE_TWO_BYTES); in SDP_AddLanguageBaseAttrIDList()
787 UINT16_TO_BE_STREAM (p, char_enc); in SDP_AddLanguageBaseAttrIDList()
789 UINT8_TO_BE_STREAM (p, (UINT_DESC_TYPE << 3) | SIZE_TWO_BYTES); in SDP_AddLanguageBaseAttrIDList()
790 UINT16_TO_BE_STREAM (p, base_id); in SDP_AddLanguageBaseAttrIDList()
793 (UINT32) (p - p_buff), p_buff); in SDP_AddLanguageBaseAttrIDList()
819 UINT8 *p; in SDP_AddServiceClassIdList() local
823 p = p_buff; in SDP_AddServiceClassIdList()
827 UINT8_TO_BE_STREAM (p, (UUID_DESC_TYPE << 3) | SIZE_TWO_BYTES); in SDP_AddServiceClassIdList()
828 UINT16_TO_BE_STREAM (p, *p_service_uuids); in SDP_AddServiceClassIdList()
832 (UINT32) (p - p_buff), p_buff); in SDP_AddServiceClassIdList()