Lines Matching refs:BufferIndex

577 unsigned SEGGER_RTT_ReadUpBufferNoLock(unsigned BufferIndex, void* pData, unsigned BufferSize) {  in SEGGER_RTT_ReadUpBufferNoLock()  argument
587 …pRing = (SEGGER_RTT_BUFFER_UP*)((char*)&_SEGGER_RTT.aUp[BufferIndex] + SEGGER_RTT_UNCACHED_OFF); … in SEGGER_RTT_ReadUpBufferNoLock()
669 unsigned SEGGER_RTT_ReadNoLock(unsigned BufferIndex, void* pData, unsigned BufferSize) { in SEGGER_RTT_ReadNoLock() argument
679 …pRing = (SEGGER_RTT_BUFFER_DOWN*)((char*)&_SEGGER_RTT.aDown[BufferIndex] + SEGGER_RTT_UNCACHED_OFF… in SEGGER_RTT_ReadNoLock()
766 unsigned SEGGER_RTT_ReadUpBuffer(unsigned BufferIndex, void* pBuffer, unsigned BufferSize) { in SEGGER_RTT_ReadUpBuffer() argument
773 NumBytesRead = SEGGER_RTT_ReadUpBufferNoLock(BufferIndex, pBuffer, BufferSize); in SEGGER_RTT_ReadUpBuffer()
798 unsigned SEGGER_RTT_Read(unsigned BufferIndex, void* pBuffer, unsigned BufferSize) { in SEGGER_RTT_Read() argument
805 NumBytesRead = SEGGER_RTT_ReadNoLock(BufferIndex, pBuffer, BufferSize); in SEGGER_RTT_Read()
837 void SEGGER_RTT_WriteWithOverwriteNoLock(unsigned BufferIndex, const void* pBuffer, unsigned NumByt… in SEGGER_RTT_WriteWithOverwriteNoLock() argument
846 …pRing = (SEGGER_RTT_BUFFER_UP*)((char*)&_SEGGER_RTT.aUp[BufferIndex] + SEGGER_RTT_UNCACHED_OFF); … in SEGGER_RTT_WriteWithOverwriteNoLock()
938 unsigned SEGGER_RTT_WriteSkipNoLock(unsigned BufferIndex, const void* pBuffer, unsigned NumBytes) { in SEGGER_RTT_WriteSkipNoLock() argument
957 …pRing = (SEGGER_RTT_BUFFER_UP*)((char*)&_SEGGER_RTT.aUp[BufferIndex] + SEGGER_RTT_UNCACHED_OFF); … in SEGGER_RTT_WriteSkipNoLock()
1029 unsigned SEGGER_RTT_WriteDownBufferNoLock(unsigned BufferIndex, const void* pBuffer, unsigned NumBy… in SEGGER_RTT_WriteDownBufferNoLock() argument
1039 …pRing = (SEGGER_RTT_BUFFER_UP*)((char*)&_SEGGER_RTT.aDown[BufferIndex] + SEGGER_RTT_UNCACHED_OFF);… in SEGGER_RTT_WriteDownBufferNoLock()
1104 unsigned SEGGER_RTT_WriteNoLock(unsigned BufferIndex, const void* pBuffer, unsigned NumBytes) { in SEGGER_RTT_WriteNoLock() argument
1113 …pRing = (SEGGER_RTT_BUFFER_UP*)((char*)&_SEGGER_RTT.aUp[BufferIndex] + SEGGER_RTT_UNCACHED_OFF); … in SEGGER_RTT_WriteNoLock()
1180 unsigned SEGGER_RTT_WriteDownBuffer(unsigned BufferIndex, const void* pBuffer, unsigned NumBytes) { in SEGGER_RTT_WriteDownBuffer() argument
1185 …Status = SEGGER_RTT_WriteDownBufferNoLock(BufferIndex, pBuffer, NumBytes); // Call the non-lockin… in SEGGER_RTT_WriteDownBuffer()
1209 unsigned SEGGER_RTT_Write(unsigned BufferIndex, const void* pBuffer, unsigned NumBytes) { in SEGGER_RTT_Write() argument
1214 …Status = SEGGER_RTT_WriteNoLock(BufferIndex, pBuffer, NumBytes); // Call the non-locking write fu… in SEGGER_RTT_Write()
1239 unsigned SEGGER_RTT_WriteString(unsigned BufferIndex, const char* s) { in SEGGER_RTT_WriteString() argument
1243 return SEGGER_RTT_Write(BufferIndex, s, Len); in SEGGER_RTT_WriteString()
1269 unsigned SEGGER_RTT_PutCharSkipNoLock(unsigned BufferIndex, char c) { in SEGGER_RTT_PutCharSkipNoLock() argument
1277 …pRing = (SEGGER_RTT_BUFFER_UP*)((char*)&_SEGGER_RTT.aUp[BufferIndex] + SEGGER_RTT_UNCACHED_OFF); … in SEGGER_RTT_PutCharSkipNoLock()
1319 unsigned SEGGER_RTT_PutCharSkip(unsigned BufferIndex, char c) { in SEGGER_RTT_PutCharSkip() argument
1332 …pRing = (SEGGER_RTT_BUFFER_UP*)((char*)&_SEGGER_RTT.aUp[BufferIndex] + SEGGER_RTT_UNCACHED_OFF); … in SEGGER_RTT_PutCharSkip()
1378 unsigned SEGGER_RTT_PutChar(unsigned BufferIndex, char c) { in SEGGER_RTT_PutChar() argument
1391 …pRing = (SEGGER_RTT_BUFFER_UP*)((char*)&_SEGGER_RTT.aUp[BufferIndex] + SEGGER_RTT_UNCACHED_OFF); … in SEGGER_RTT_PutChar()
1520 unsigned SEGGER_RTT_HasData(unsigned BufferIndex) { in SEGGER_RTT_HasData() argument
1524 …pRing = (SEGGER_RTT_BUFFER_DOWN*)((char*)&_SEGGER_RTT.aDown[BufferIndex] + SEGGER_RTT_UNCACHED_OFF… in SEGGER_RTT_HasData()
1541 unsigned SEGGER_RTT_HasDataUp(unsigned BufferIndex) { in SEGGER_RTT_HasDataUp() argument
1545 …pRing = (SEGGER_RTT_BUFFER_UP*)((char*)&_SEGGER_RTT.aUp[BufferIndex] + SEGGER_RTT_UNCACHED_OFF); … in SEGGER_RTT_HasDataUp()
1571 int BufferIndex; in SEGGER_RTT_AllocDownBuffer() local
1577 BufferIndex = 0; in SEGGER_RTT_AllocDownBuffer()
1579 if (pRTTCB->aDown[BufferIndex].pBuffer == NULL) { in SEGGER_RTT_AllocDownBuffer()
1582 BufferIndex++; in SEGGER_RTT_AllocDownBuffer()
1583 } while (BufferIndex < pRTTCB->MaxNumDownBuffers); in SEGGER_RTT_AllocDownBuffer()
1584 if (BufferIndex < pRTTCB->MaxNumDownBuffers) { in SEGGER_RTT_AllocDownBuffer()
1585 pRTTCB->aDown[BufferIndex].sName = sName; in SEGGER_RTT_AllocDownBuffer()
1586 pRTTCB->aDown[BufferIndex].pBuffer = (char*)pBuffer; in SEGGER_RTT_AllocDownBuffer()
1587 pRTTCB->aDown[BufferIndex].SizeOfBuffer = BufferSize; in SEGGER_RTT_AllocDownBuffer()
1588 pRTTCB->aDown[BufferIndex].RdOff = 0u; in SEGGER_RTT_AllocDownBuffer()
1589 pRTTCB->aDown[BufferIndex].WrOff = 0u; in SEGGER_RTT_AllocDownBuffer()
1590 pRTTCB->aDown[BufferIndex].Flags = Flags; in SEGGER_RTT_AllocDownBuffer()
1593 BufferIndex = -1; in SEGGER_RTT_AllocDownBuffer()
1596 return BufferIndex; in SEGGER_RTT_AllocDownBuffer()
1620 int BufferIndex; in SEGGER_RTT_AllocUpBuffer() local
1626 BufferIndex = 0; in SEGGER_RTT_AllocUpBuffer()
1628 if (pRTTCB->aUp[BufferIndex].pBuffer == NULL) { in SEGGER_RTT_AllocUpBuffer()
1631 BufferIndex++; in SEGGER_RTT_AllocUpBuffer()
1632 } while (BufferIndex < pRTTCB->MaxNumUpBuffers); in SEGGER_RTT_AllocUpBuffer()
1633 if (BufferIndex < pRTTCB->MaxNumUpBuffers) { in SEGGER_RTT_AllocUpBuffer()
1634 pRTTCB->aUp[BufferIndex].sName = sName; in SEGGER_RTT_AllocUpBuffer()
1635 pRTTCB->aUp[BufferIndex].pBuffer = (char*)pBuffer; in SEGGER_RTT_AllocUpBuffer()
1636 pRTTCB->aUp[BufferIndex].SizeOfBuffer = BufferSize; in SEGGER_RTT_AllocUpBuffer()
1637 pRTTCB->aUp[BufferIndex].RdOff = 0u; in SEGGER_RTT_AllocUpBuffer()
1638 pRTTCB->aUp[BufferIndex].WrOff = 0u; in SEGGER_RTT_AllocUpBuffer()
1639 pRTTCB->aUp[BufferIndex].Flags = Flags; in SEGGER_RTT_AllocUpBuffer()
1642 BufferIndex = -1; in SEGGER_RTT_AllocUpBuffer()
1645 return BufferIndex; in SEGGER_RTT_AllocUpBuffer()
1674 int SEGGER_RTT_ConfigUpBuffer(unsigned BufferIndex, const char* sName, void* pBuffer, unsigned Buff… in SEGGER_RTT_ConfigUpBuffer() argument
1681 if (BufferIndex < SEGGER_RTT_MAX_NUM_UP_BUFFERS) { in SEGGER_RTT_ConfigUpBuffer()
1683 pUp = &pRTTCB->aUp[BufferIndex]; in SEGGER_RTT_ConfigUpBuffer()
1684 if (BufferIndex) { in SEGGER_RTT_ConfigUpBuffer()
1726 int SEGGER_RTT_ConfigDownBuffer(unsigned BufferIndex, const char* sName, void* pBuffer, unsigned Bu… in SEGGER_RTT_ConfigDownBuffer() argument
1733 if (BufferIndex < SEGGER_RTT_MAX_NUM_DOWN_BUFFERS) { in SEGGER_RTT_ConfigDownBuffer()
1735 pDown = &pRTTCB->aDown[BufferIndex]; in SEGGER_RTT_ConfigDownBuffer()
1736 if (BufferIndex) { in SEGGER_RTT_ConfigDownBuffer()
1769 int SEGGER_RTT_SetNameUpBuffer(unsigned BufferIndex, const char* sName) { in SEGGER_RTT_SetNameUpBuffer() argument
1776 if (BufferIndex < SEGGER_RTT_MAX_NUM_UP_BUFFERS) { in SEGGER_RTT_SetNameUpBuffer()
1778 pUp = &pRTTCB->aUp[BufferIndex]; in SEGGER_RTT_SetNameUpBuffer()
1804 int SEGGER_RTT_SetNameDownBuffer(unsigned BufferIndex, const char* sName) { in SEGGER_RTT_SetNameDownBuffer() argument
1811 if (BufferIndex < SEGGER_RTT_MAX_NUM_DOWN_BUFFERS) { in SEGGER_RTT_SetNameDownBuffer()
1813 pDown = &pRTTCB->aDown[BufferIndex]; in SEGGER_RTT_SetNameDownBuffer()
1840 int SEGGER_RTT_SetFlagsUpBuffer(unsigned BufferIndex, unsigned Flags) { in SEGGER_RTT_SetFlagsUpBuffer() argument
1847 if (BufferIndex < SEGGER_RTT_MAX_NUM_UP_BUFFERS) { in SEGGER_RTT_SetFlagsUpBuffer()
1849 pUp = &pRTTCB->aUp[BufferIndex]; in SEGGER_RTT_SetFlagsUpBuffer()
1876 int SEGGER_RTT_SetFlagsDownBuffer(unsigned BufferIndex, unsigned Flags) { in SEGGER_RTT_SetFlagsDownBuffer() argument
1883 if (BufferIndex < SEGGER_RTT_MAX_NUM_DOWN_BUFFERS) { in SEGGER_RTT_SetFlagsDownBuffer()
1885 pDown = &pRTTCB->aDown[BufferIndex]; in SEGGER_RTT_SetFlagsDownBuffer()
2062 unsigned SEGGER_RTT_GetAvailWriteSpace (unsigned BufferIndex) { in SEGGER_RTT_GetAvailWriteSpace() argument
2065 …pRing = (SEGGER_RTT_BUFFER_UP*)((char*)&_SEGGER_RTT.aUp[BufferIndex] + SEGGER_RTT_UNCACHED_OFF); … in SEGGER_RTT_GetAvailWriteSpace()
2083 unsigned SEGGER_RTT_GetBytesInBuffer(unsigned BufferIndex) { in SEGGER_RTT_GetBytesInBuffer() argument
2093 RdOff = pRTTCB->aUp[BufferIndex].RdOff; in SEGGER_RTT_GetBytesInBuffer()
2094 WrOff = pRTTCB->aUp[BufferIndex].WrOff; in SEGGER_RTT_GetBytesInBuffer()
2098 r = pRTTCB->aUp[BufferIndex].SizeOfBuffer - (WrOff - RdOff); in SEGGER_RTT_GetBytesInBuffer()