Lines Matching refs:psValueBuffer
35 phNfc_sData_t *psValueBuffer ) in phFriNfc_Llcp_DecodeTLV() argument
42 if ((psRawData == NULL) || (pOffset == NULL) || (pType == NULL) || (psValueBuffer == NULL)) in phFriNfc_Llcp_DecodeTLV()
72 psValueBuffer->buffer = psRawData->buffer + offset; in phFriNfc_Llcp_DecodeTLV()
73 psValueBuffer->length = length; in phFriNfc_Llcp_DecodeTLV()
82 NFCSTATUS phFriNfc_Llcp_EncodeTLV( phNfc_sData_t *psValueBuffer, in phFriNfc_Llcp_EncodeTLV() argument
93 if ((psValueBuffer == NULL) || (pOffset == NULL) || (pValue == NULL)) in phFriNfc_Llcp_EncodeTLV()
99 if (offset > psValueBuffer->length) in phFriNfc_Llcp_EncodeTLV()
105 if ((finalOffset > psValueBuffer->length) || (finalOffset < offset)) in phFriNfc_Llcp_EncodeTLV()
111 psValueBuffer->buffer[offset] = type; in phFriNfc_Llcp_EncodeTLV()
115 psValueBuffer->buffer[offset] = length; in phFriNfc_Llcp_EncodeTLV()
121 psValueBuffer->buffer[offset] = pValue[i]; in phFriNfc_Llcp_EncodeTLV()
130 NFCSTATUS phFriNfc_Llcp_AppendTLV( phNfc_sData_t *psValueBuffer, in phFriNfc_Llcp_AppendTLV() argument
140 if ((psValueBuffer == NULL) || (pCurrentOffset == NULL) || (pValue == NULL)) in phFriNfc_Llcp_AppendTLV()
146 if (offset > psValueBuffer->length) in phFriNfc_Llcp_AppendTLV()
152 if ((finalOffset > psValueBuffer->length) || (finalOffset < offset)) in phFriNfc_Llcp_AppendTLV()
158 psValueBuffer->buffer[nTlvOffset+1] += length; in phFriNfc_Llcp_AppendTLV()
161 memcpy(psValueBuffer->buffer + offset, pValue, length); in phFriNfc_Llcp_AppendTLV()