Lines Matching refs:p_buff
535 UINT8 *p_buff = (UINT8 *)osi_malloc(sizeof(UINT8) * SDP_MAX_ATTR_LEN * 2); in SDP_AddSequence() local
537 p = p_buff; in SDP_AddSequence()
568 if (p - p_buff > SDP_MAX_ATTR_LEN) in SDP_AddSequence()
572 if(p_head == p_buff) in SDP_AddSequence()
576 osi_free(p_buff); in SDP_AddSequence()
584 … result = SDP_AddAttribute (handle, attr_id, DATA_ELE_SEQ_DESC_TYPE,(UINT32) (p - p_buff), p_buff); in SDP_AddSequence()
585 osi_free(p_buff); in SDP_AddSequence()
613 UINT8 *p_buff = (UINT8 *)osi_malloc(sizeof(UINT8) * SDP_MAX_ATTR_LEN * 2); in SDP_AddUuidSequence() local
615 p = p_buff; 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()
631 osi_free(p_buff); in SDP_AddUuidSequence()
656 UINT8 *p_buff = (UINT8 *)osi_malloc(sizeof(UINT8) * SDP_MAX_ATTR_LEN * 2); in SDP_AddProtocolList() local
658 offset = sdp_compose_proto_list(p_buff, num_elem, p_elem_list); in SDP_AddProtocolList()
659 …_AddAttribute (handle, ATTR_ID_PROTOCOL_DESC_LIST,DATA_ELE_SEQ_DESC_TYPE, (UINT32) offset, p_buff); in SDP_AddProtocolList()
660 osi_free(p_buff); in SDP_AddProtocolList()
689 UINT8 *p_buff = (UINT8 *)osi_malloc(sizeof(UINT8) * SDP_MAX_ATTR_LEN * 2); in SDP_AddAdditionProtoLists() local
691 p = p_buff; in SDP_AddAdditionProtoLists()
706 (UINT32) (p - p_buff), p_buff); in SDP_AddAdditionProtoLists()
707 osi_free(p_buff); in SDP_AddAdditionProtoLists()
733 UINT8 *p_buff = (UINT8 *)osi_malloc(sizeof(UINT8) * SDP_MAX_ATTR_LEN); in SDP_AddProfileDescriptorList() local
735 p = p_buff + 2; in SDP_AddProfileDescriptorList()
746 *p_buff = (UINT8) ((DATA_ELE_SEQ_DESC_TYPE << 3) | SIZE_IN_NEXT_BYTE); 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()
750 osi_free(p_buff); in SDP_AddProfileDescriptorList()
777 UINT8 *p_buff = (UINT8 *) osi_malloc(sizeof(UINT8) * SDP_MAX_ATTR_LEN); in SDP_AddLanguageBaseAttrIDList() local
779 p = p_buff; in SDP_AddLanguageBaseAttrIDList()
793 (UINT32) (p - p_buff), p_buff); in SDP_AddLanguageBaseAttrIDList()
794 osi_free(p_buff); in SDP_AddLanguageBaseAttrIDList()
821 UINT8 *p_buff = (UINT8 *) osi_malloc(sizeof(UINT8) * SDP_MAX_ATTR_LEN * 2); in SDP_AddServiceClassIdList() local
823 p = p_buff; in SDP_AddServiceClassIdList()
832 (UINT32) (p - p_buff), p_buff); in SDP_AddServiceClassIdList()
833 osi_free(p_buff); in SDP_AddServiceClassIdList()