Lines Matching refs:pxTraceEventBuffer

17 traceResult xTraceEventBufferInitialize(TraceEventBuffer_t* pxTraceEventBuffer, uint32_t uiOptions,  in xTraceEventBufferInitialize()  argument
21 TRC_ASSERT(pxTraceEventBuffer != 0); in xTraceEventBufferInitialize()
26 pxTraceEventBuffer->uiOptions = uiOptions; in xTraceEventBufferInitialize()
27 pxTraceEventBuffer->uiHead = 0; in xTraceEventBufferInitialize()
28 pxTraceEventBuffer->uiTail = 0; in xTraceEventBufferInitialize()
29 pxTraceEventBuffer->uiSize = uiSize; in xTraceEventBufferInitialize()
30 pxTraceEventBuffer->uiFree = uiSize; in xTraceEventBufferInitialize()
31 pxTraceEventBuffer->puiBuffer = puiBuffer; in xTraceEventBufferInitialize()
32 pxTraceEventBuffer->uiTimerWraparounds = 0; in xTraceEventBufferInitialize()
47 static traceResult prvTraceEventBufferPop(TraceEventBuffer_t *pxTraceEventBuffer) in prvTraceEventBufferPop() argument
53 …ASSERT_ALWAYS_EVALUATE(xTraceEventGetSize(((void*)&(pxTraceEventBuffer->puiBuffer[pxTraceEventBuff… in prvTraceEventBufferPop()
55 pxTraceEventBuffer->uiFree += uiFreeSize; in prvTraceEventBufferPop()
58pxTraceEventBuffer->uiTail = (pxTraceEventBuffer->uiTail + uiFreeSize) % pxTraceEventBuffer->uiSiz… in prvTraceEventBufferPop()
63 traceResult xTraceEventBufferPush(TraceEventBuffer_t *pxTraceEventBuffer, void *pxData, uint32_t ui… in xTraceEventBufferPush() argument
68 TRC_ASSERT(pxTraceEventBuffer != 0); in xTraceEventBufferPush()
73 uiBufferSize = pxTraceEventBuffer->uiSize; in xTraceEventBufferPush()
90 …TRC_ASSERT_ALWAYS_EVALUATE(xTraceTimestampGetWraparounds(&pxTraceEventBuffer->uiTimerWraparounds) … in xTraceEventBufferPush()
96 switch (pxTraceEventBuffer->uiOptions) in xTraceEventBufferPush()
100 uint32_t uiHead = pxTraceEventBuffer->uiHead; in xTraceEventBufferPush()
103 while (pxTraceEventBuffer->uiFree < uiDataSize) in xTraceEventBufferPush()
105 prvTraceEventBufferPop(pxTraceEventBuffer); in xTraceEventBufferPush()
111 TRC_MEMCPY(&pxTraceEventBuffer->puiBuffer[uiHead], pxData, uiDataSize); in xTraceEventBufferPush()
115 TRC_MEMCPY(&pxTraceEventBuffer->puiBuffer[uiHead], pxData, uiBufferSize - uiHead); in xTraceEventBufferPush()
116 TRC_MEMCPY(pxTraceEventBuffer->puiBuffer, in xTraceEventBufferPush()
121 pxTraceEventBuffer->uiFree -= uiDataSize; in xTraceEventBufferPush()
123 pxTraceEventBuffer->uiHead = (uiHead + uiDataSize) % uiBufferSize; in xTraceEventBufferPush()
135 uint32_t uiHead = pxTraceEventBuffer->uiHead; in xTraceEventBufferPush()
136 uint32_t uiTail = pxTraceEventBuffer->uiTail; in xTraceEventBufferPush()
152 TRC_MEMCPY(&pxTraceEventBuffer->puiBuffer[pxTraceEventBuffer->uiHead], pxData, uiDataSize); in xTraceEventBufferPush()
156 TRC_MEMCPY(&pxTraceEventBuffer->puiBuffer[uiHead], pxData, uiBufferSize - uiHead); in xTraceEventBufferPush()
157 TRC_MEMCPY(pxTraceEventBuffer->puiBuffer, in xTraceEventBufferPush()
162 pxTraceEventBuffer->uiHead = (uiHead + uiDataSize) % uiBufferSize; in xTraceEventBufferPush()
176 TRC_MEMCPY(&pxTraceEventBuffer->puiBuffer[pxTraceEventBuffer->uiHead], pxData, uiDataSize); in xTraceEventBufferPush()
178 pxTraceEventBuffer->uiHead = (uiHead + uiDataSize); in xTraceEventBufferPush()
195 traceResult xTraceEventBufferTransfer(TraceEventBuffer_t* pxTraceEventBuffer, int32_t* piBytesWritt… in xTraceEventBufferTransfer() argument
203 TRC_ASSERT(pxTraceEventBuffer != 0); in xTraceEventBufferTransfer()
208 uiHead = pxTraceEventBuffer->uiHead; in xTraceEventBufferTransfer()
209 uiTail = pxTraceEventBuffer->uiTail; in xTraceEventBufferTransfer()
221 …xTraceStreamPortWriteData(&pxTraceEventBuffer->puiBuffer[uiTail], (uiHead - uiTail), &iBytesWritte… in xTraceEventBufferTransfer()
226 …xTraceStreamPortWriteData(&pxTraceEventBuffer->puiBuffer[uiTail], (pxTraceEventBuffer->uiSize - ui… in xTraceEventBufferTransfer()
228 if (iBytesWritten == (int32_t)(pxTraceEventBuffer->uiSize - uiTail)) in xTraceEventBufferTransfer()
233 pxTraceEventBuffer->uiTail = 0; in xTraceEventBufferTransfer()
239 xTraceStreamPortWriteData(&pxTraceEventBuffer->puiBuffer[0], uiHead, &iBytesWritten); in xTraceEventBufferTransfer()
244 pxTraceEventBuffer->uiTail += iBytesWritten; in xTraceEventBufferTransfer()
253 traceResult xTraceEventBufferClear(TraceEventBuffer_t* pxTraceEventBuffer) in xTraceEventBufferClear() argument
256 TRC_ASSERT(pxTraceEventBuffer != 0); in xTraceEventBufferClear()
258 pxTraceEventBuffer->uiHead = 0; in xTraceEventBufferClear()
259 pxTraceEventBuffer->uiTail = 0; in xTraceEventBufferClear()
260 pxTraceEventBuffer->uiFree = pxTraceEventBuffer->uiSize; in xTraceEventBufferClear()