Lines Matching refs:uiSize

18 	uint8_t* puiBuffer, uint32_t uiSize)  in xTraceEventBufferInitialize()  argument
27 TRC_ASSERT(uiSize != 0u); in xTraceEventBufferInitialize()
32 pxTraceEventBuffer->uiSize = uiSize; in xTraceEventBufferInitialize()
33 pxTraceEventBuffer->uiFree = uiSize; in xTraceEventBufferInitialize()
63 …xTraceEventBuffer->uiTail = (pxTraceEventBuffer->uiTail + uiFreeSize) % pxTraceEventBuffer->uiSize; in prvTraceEventBufferPop()
76 if (pxTraceEventBuffer->uiTail >= (pxTraceEventBuffer->uiSize - pxTraceEventBuffer->uiSlack)) in prvTraceEventBufferAllocPop()
87 …xTraceEventBuffer->uiTail = (pxTraceEventBuffer->uiTail + uiFreeSize) % pxTraceEventBuffer->uiSize; in prvTraceEventBufferAllocPop()
93 traceResult xTraceEventBufferAlloc(TraceEventBuffer_t *pxTraceEventBuffer, uint32_t uiSize, void **… in xTraceEventBufferAlloc() argument
106 uiBufferSize = pxTraceEventBuffer->uiSize; in xTraceEventBufferAlloc()
112 TRC_ASSERT(uiSize <= uiBufferSize); in xTraceEventBufferAlloc()
123 if ((uiBufferSize - pxTraceEventBuffer->uiHead) > uiSize) in xTraceEventBufferAlloc()
126 pxTraceEventBuffer->uiNextHead = (pxTraceEventBuffer->uiHead + uiSize) % uiBufferSize; in xTraceEventBufferAlloc()
138 } while (uiFreeSpace < uiSize); in xTraceEventBufferAlloc()
149 pxTraceEventBuffer->uiNextHead = (pxTraceEventBuffer->uiHead + uiSize) % uiBufferSize; in xTraceEventBufferAlloc()
157 if (uiFreeSpace < uiSize) in xTraceEventBufferAlloc()
160 if ((pxTraceEventBuffer->uiSize - pxTraceEventBuffer->uiHead) < uiSize) in xTraceEventBufferAlloc()
170 pxTraceEventBuffer->uiSlack = pxTraceEventBuffer->uiSize - pxTraceEventBuffer->uiHead; in xTraceEventBufferAlloc()
178 } while (uiFreeSpace < uiSize); in xTraceEventBufferAlloc()
189 pxTraceEventBuffer->uiNextHead = (pxTraceEventBuffer->uiHead + uiSize); in xTraceEventBufferAlloc()
204 if (uiFreeSpace < uiSize) in xTraceEventBufferAlloc()
212 if ((uiBufferSize - uiHead) > uiSize) in xTraceEventBufferAlloc()
216 pxTraceEventBuffer->uiNextHead = (uiHead + uiSize) % uiBufferSize; in xTraceEventBufferAlloc()
222 if (uiFreeSpace < uiSize) in xTraceEventBufferAlloc()
234 pxTraceEventBuffer->uiNextHead = (uiHead + pxTraceEventBuffer->uiSlack + uiSize) % uiBufferSize; in xTraceEventBufferAlloc()
241 if (uiFreeSpace < uiSize) in xTraceEventBufferAlloc()
251 pxTraceEventBuffer->uiNextHead = (uiHead + uiSize); in xTraceEventBufferAlloc()
258 …mit(TraceEventBuffer_t *pxTraceEventBuffer, const void *pvData, uint32_t uiSize, int32_t *piBytesW… in xTraceEventBufferAllocCommit() argument
269 *piBytesWritten = (int32_t)uiSize; in xTraceEventBufferAllocCommit()
274 …ufferPush(TraceEventBuffer_t *pxTraceEventBuffer, void *pvData, uint32_t uiSize, int32_t *piBytesW… in xTraceEventBufferPush() argument
287 uiBufferSize = pxTraceEventBuffer->uiSize; in xTraceEventBufferPush()
293 TRC_ASSERT(uiSize <= uiBufferSize); in xTraceEventBufferPush()
297 TRC_ASSERT((uiSize % 4u) == 0u); in xTraceEventBufferPush()
318 while (pxTraceEventBuffer->uiFree < uiSize) in xTraceEventBufferPush()
324 if ((uiBufferSize - uiHead) > uiSize) in xTraceEventBufferPush()
326 …TRC_MEMCPY(&pxTraceEventBuffer->puiBuffer[uiHead], pvData, uiSize); /*cstat !MISRAC2004-17.4_b We … in xTraceEventBufferPush()
331 …ffer->puiBuffer, (void*)(&((uint8_t*)pvData)[(uiBufferSize - uiHead)]), (uiSize - (uiBufferSize - … in xTraceEventBufferPush()
334 pxTraceEventBuffer->uiFree -= uiSize; in xTraceEventBufferPush()
336 pxTraceEventBuffer->uiHead = (uiHead + uiSize) % uiBufferSize; in xTraceEventBufferPush()
338 *piBytesWritten = (int32_t)uiSize; in xTraceEventBufferPush()
351 if (uiFreeSpace < uiSize) in xTraceEventBufferPush()
359 if ((uiBufferSize - uiHead) > uiSize) in xTraceEventBufferPush()
361 …TRC_MEMCPY(&pxTraceEventBuffer->puiBuffer[pxTraceEventBuffer->uiHead], pvData, uiSize); /*cstat !M… in xTraceEventBufferPush()
366 …ffer->puiBuffer, (void*)(&((uint8_t*)pvData)[(uiBufferSize - uiHead)]), (uiSize - (uiBufferSize - … in xTraceEventBufferPush()
369 pxTraceEventBuffer->uiHead = (uiHead + uiSize) % uiBufferSize; in xTraceEventBufferPush()
375 if (uiFreeSpace < uiSize) in xTraceEventBufferPush()
383 …TRC_MEMCPY(&pxTraceEventBuffer->puiBuffer[pxTraceEventBuffer->uiHead], pvData, uiSize); /*cstat !M… in xTraceEventBufferPush()
385 pxTraceEventBuffer->uiHead = (uiHead + uiSize); in xTraceEventBufferPush()
388 *piBytesWritten = (int32_t)uiSize; in xTraceEventBufferPush()
436 …xTraceStreamPortWriteData(&pxTraceEventBuffer->puiBuffer[uiTail], (pxTraceEventBuffer->uiSize - ui… in xTraceEventBufferTransferAll()
439 if ((uint32_t)iBytesWritten == (pxTraceEventBuffer->uiSize - uiTail - uiSlack)) in xTraceEventBufferTransferAll()
508 uiBytesToWrite = pxTraceEventBuffer->uiSize - uiTail - uiSlack; in xTraceEventBufferTransferChunk()
519 if ((uiTail + (uint32_t)iBytesWritten) == (pxTraceEventBuffer->uiSize - uiSlack)) in xTraceEventBufferTransferChunk()
541 pxTraceEventBuffer->uiFree = pxTraceEventBuffer->uiSize; in xTraceEventBufferClear()