Home
last modified time | relevance | path

Searched refs:pMe (Results 1 – 7 of 7) sorted by relevance

/optee_os/core/lib/qcbor/inc/qcbor/
H A Dqcbor_encode.h1817 QCBOREncode_AddSimple(QCBOREncodeContext *pMe, const uint8_t uNum);
1820 QCBOREncode_AddSimpleToMap(QCBOREncodeContext *pMe,
1825 QCBOREncode_AddSimpleToMapN(QCBOREncodeContext *pMe,
2337 void QCBOREncode_Private_AppendCBORHead(QCBOREncodeContext *pMe,
2352 QCBOREncode_Private_AddPreferredDouble(QCBOREncodeContext *pMe, const double dNum);
2357 QCBOREncode_Private_AddPreferredFloat(QCBOREncodeContext *pMe, const float fNum);
2410 QCBOREncode_Private_AddType7(QCBOREncodeContext *pMe, in QCBOREncode_Private_AddType7() argument
2414 QCBOREncode_Private_AppendCBORHead(pMe, CBOR_MAJOR_TYPE_SIMPLE, uArgument, uMinLen); in QCBOREncode_Private_AddType7()
2459 QCBOREncode_AddSZString(QCBOREncodeContext *pMe, const char *szString);
2465 QCBOREncode_AddInt64ToMap(QCBOREncodeContext *pMe, in QCBOREncode_AddInt64ToMap() argument
[all …]
H A Dqcbor_spiffy_decode.h710 QCBORDecode_EnterArrayFromMapN(QCBORDecodeContext *pMe, int64_t uLabel);
713 QCBORDecode_EnterArrayFromMapSZ(QCBORDecodeContext *pMe, const char *szLabel);
1527 QCBORDecode_GetDecimalFractionInMapSZ(QCBORDecodeContext *pMe,
2159 QCBORDecode_GetUInt64Convert(QCBORDecodeContext *pMe, in QCBORDecode_GetUInt64Convert() argument
2164 QCBORDecode_Private_GetUInt64Convert(pMe, uConvertTypes, puValue, &Item); in QCBORDecode_GetUInt64Convert()
2168 QCBORDecode_GetUInt64ConvertInMapN(QCBORDecodeContext *pMe, in QCBORDecode_GetUInt64ConvertInMapN() argument
2174 QCBORDecode_Private_GetUInt64ConvertInMapN(pMe, in QCBORDecode_GetUInt64ConvertInMapN()
2182 QCBORDecode_GetUInt64ConvertInMapSZ(QCBORDecodeContext *pMe, in QCBORDecode_GetUInt64ConvertInMapSZ() argument
2188 QCBORDecode_Private_GetUInt64ConvertInMapSZ(pMe, in QCBORDecode_GetUInt64ConvertInMapSZ()
2196 QCBORDecode_GetUInt64(QCBORDecodeContext *pMe, uint64_t *puValue) in QCBORDecode_GetUInt64() argument
[all …]
H A DUsefulBuf.h1929 static inline void UsefulOutBuf_Reset(UsefulOutBuf *pMe) in UsefulOutBuf_Reset() argument
1931 pMe->data_len = 0; in UsefulOutBuf_Reset()
1932 pMe->err = 0; in UsefulOutBuf_Reset()
1936 static inline size_t UsefulOutBuf_GetEndPosition(UsefulOutBuf *pMe) in UsefulOutBuf_GetEndPosition() argument
1938 return pMe->data_len; in UsefulOutBuf_GetEndPosition()
1942 static inline int UsefulOutBuf_AtStart(UsefulOutBuf *pMe) in UsefulOutBuf_AtStart() argument
1944 return 0 == pMe->data_len; in UsefulOutBuf_AtStart()
1948 static inline void UsefulOutBuf_InsertData(UsefulOutBuf *pMe, in UsefulOutBuf_InsertData() argument
1954 UsefulOutBuf_InsertUsefulBuf(pMe, Data, uPos); in UsefulOutBuf_InsertData()
1958 static inline void UsefulOutBuf_InsertString(UsefulOutBuf *pMe, in UsefulOutBuf_InsertString() argument
[all …]
H A Dqcbor_decode.h1602 QCBORDecode_Tell(QCBORDecodeContext *pMe) in QCBORDecode_Tell() argument
1604 if(pMe->uLastError) { in QCBORDecode_Tell()
1609 return (uint32_t)UsefulInputBuf_Tell(&(pMe->InBuf)); in QCBORDecode_Tell()
1613 QCBORDecode_GetError(QCBORDecodeContext *pMe) in QCBORDecode_GetError() argument
1615 return (QCBORError)pMe->uLastError; in QCBORDecode_GetError()
1619 QCBORDecode_GetAndResetError(QCBORDecodeContext *pMe) in QCBORDecode_GetAndResetError() argument
1621 const QCBORError uReturn = (QCBORError)pMe->uLastError; in QCBORDecode_GetAndResetError()
1622 pMe->uLastError = QCBOR_SUCCESS; in QCBORDecode_GetAndResetError()
1650 QCBORDecode_SetError(QCBORDecodeContext *pMe, QCBORError uError) in QCBORDecode_SetError() argument
1652 pMe->uLastError = (uint8_t)uError; in QCBORDecode_SetError()
/optee_os/core/lib/qcbor/src/
H A Dqcbor_encode.c256 QCBOREncode_Init(QCBOREncodeContext *pMe, UsefulBuf Storage) in QCBOREncode_Init() argument
258 memset(pMe, 0, sizeof(QCBOREncodeContext)); in QCBOREncode_Init()
259 UsefulOutBuf_Init(&(pMe->OutBuf), Storage); in QCBOREncode_Init()
260 Nesting_Init(&(pMe->nesting)); in QCBOREncode_Init()
515 QCBOREncode_Private_IncrementMapOrArrayCount(QCBOREncodeContext *pMe) in QCBOREncode_Private_IncrementMapOrArrayCount() argument
518 if(pMe->uError == QCBOR_SUCCESS) { in QCBOREncode_Private_IncrementMapOrArrayCount()
519 pMe->uError = Nesting_Increment(&(pMe->nesting)); in QCBOREncode_Private_IncrementMapOrArrayCount()
522 (void)Nesting_Increment(&(pMe->nesting)); in QCBOREncode_Private_IncrementMapOrArrayCount()
540 QCBOREncode_Private_AppendCBORHead(QCBOREncodeContext *pMe, in QCBOREncode_Private_AppendCBORHead() argument
560 UsefulOutBuf_AppendUsefulBuf(&(pMe->OutBuf), EncodedHead); in QCBOREncode_Private_AppendCBORHead()
[all …]
H A DUsefulBuf.c162 void UsefulOutBuf_Init(UsefulOutBuf *pMe, UsefulBuf Storage) in UsefulOutBuf_Init() argument
164 pMe->magic = USEFUL_OUT_BUF_MAGIC; in UsefulOutBuf_Init()
165 UsefulOutBuf_Reset(pMe); in UsefulOutBuf_Init()
166 pMe->UB = Storage; in UsefulOutBuf_Init()
224 void UsefulOutBuf_InsertUsefulBuf(UsefulOutBuf *pMe, UsefulBufC NewData, size_t uInsertionPos) in UsefulOutBuf_InsertUsefulBuf() argument
226 if(pMe->err) { in UsefulOutBuf_InsertUsefulBuf()
237 if(pMe->magic != USEFUL_OUT_BUF_MAGIC) { in UsefulOutBuf_InsertUsefulBuf()
238 pMe->err = 1; in UsefulOutBuf_InsertUsefulBuf()
246 if(pMe->data_len > pMe->UB.len) { /* Check #1 */ in UsefulOutBuf_InsertUsefulBuf()
247 pMe->err = 1; in UsefulOutBuf_InsertUsefulBuf()
[all …]
H A Dqcbor_decode.c593 DecodeNesting_GetPreviousBoundedEnd(const QCBORDecodeNesting *pMe) in DecodeNesting_GetPreviousBoundedEnd() argument
595 return pMe->pCurrentBounded->u.bs.uSavedEndOffset; in DecodeNesting_GetPreviousBoundedEnd()
611 StringAllocator_Free(const QCBORInternalAllocator *pMe, const void *pMem) in StringAllocator_Free() argument
617 (pMe->pfAllocator)(pMe->pAllocateCxt, (void *)(uintptr_t)pMem, 0); in StringAllocator_Free()
623 StringAllocator_Reallocate(const QCBORInternalAllocator *pMe, in StringAllocator_Reallocate() argument
628 return (pMe->pfAllocator)(pMe->pAllocateCxt, (void *)(uintptr_t)pMem, uSize); in StringAllocator_Reallocate()
632 StringAllocator_Allocate(const QCBORInternalAllocator *pMe, size_t uSize) in StringAllocator_Allocate() argument
634 return (pMe->pfAllocator)(pMe->pAllocateCxt, NULL, uSize); in StringAllocator_Allocate()
638 StringAllocator_Destruct(const QCBORInternalAllocator *pMe) in StringAllocator_Destruct() argument
641 if(pMe->pfAllocator) { in StringAllocator_Destruct()
[all …]