Lines Matching refs:NumBytes

164     #define SEGGER_RTT_MEMCPY(pDest, pSrc, NumBytes)      MEMCPY((pDest), (pSrc), (NumBytes))  argument
166 #define SEGGER_RTT_MEMCPY(pDest, pSrc, NumBytes) memcpy((pDest), (pSrc), (NumBytes)) argument
359 static unsigned _WriteBlocking(SEGGER_RTT_BUFFER_UP* pRing, const char* pBuffer, unsigned NumBytes)… in _WriteBlocking() argument
378 NumBytesToWrite = MIN(NumBytesToWrite, NumBytes); in _WriteBlocking()
382 NumBytes -= NumBytesToWrite; in _WriteBlocking()
391 NumBytes -= NumBytesToWrite; in _WriteBlocking()
399 } while (NumBytes); in _WriteBlocking()
421 static void _WriteNoCheck(SEGGER_RTT_BUFFER_UP* pRing, const char* pData, unsigned NumBytes) { in _WriteNoCheck() argument
429 if (Rem > NumBytes) { in _WriteNoCheck()
435 WrOff += NumBytes; in _WriteNoCheck()
436 while (NumBytes--) { in _WriteNoCheck()
442 SEGGER_RTT_MEMCPY((void*)pDst, pData, NumBytes); in _WriteNoCheck()
444 pRing->WrOff = WrOff + NumBytes; in _WriteNoCheck()
457 NumBytesAtOnce = NumBytes - Rem; in _WriteNoCheck()
462 pRing->WrOff = NumBytes - Rem; in _WriteNoCheck()
467 NumBytesAtOnce = NumBytes - Rem; in _WriteNoCheck()
818 …SEGGER_RTT_WriteWithOverwriteNoLock(unsigned BufferIndex, const void* pBuffer, unsigned NumBytes) { in SEGGER_RTT_WriteWithOverwriteNoLock() argument
838 if (NumBytes > Avail) { in SEGGER_RTT_WriteWithOverwriteNoLock()
839 pRing->RdOff += (NumBytes - Avail); in SEGGER_RTT_WriteWithOverwriteNoLock()
849 if (Avail > NumBytes) { in SEGGER_RTT_WriteWithOverwriteNoLock()
855 Avail = NumBytes; in SEGGER_RTT_WriteWithOverwriteNoLock()
856 while (NumBytes--) { in SEGGER_RTT_WriteWithOverwriteNoLock()
862 SEGGER_RTT_MEMCPY((void*)pDst, pData, NumBytes); in SEGGER_RTT_WriteWithOverwriteNoLock()
864 pRing->WrOff += NumBytes; in SEGGER_RTT_WriteWithOverwriteNoLock()
873 NumBytes -= Avail; in SEGGER_RTT_WriteWithOverwriteNoLock()
884 NumBytes -= Avail; in SEGGER_RTT_WriteWithOverwriteNoLock()
888 } while (NumBytes); in SEGGER_RTT_WriteWithOverwriteNoLock()
919 unsigned SEGGER_RTT_WriteSkipNoLock(unsigned BufferIndex, const void* pBuffer, unsigned NumBytes) { in SEGGER_RTT_WriteSkipNoLock() argument
943 if (Avail >= NumBytes) { // Case 1)? in SEGGER_RTT_WriteSkipNoLock()
946 memcpy((void*)pDst, pData, NumBytes); in SEGGER_RTT_WriteSkipNoLock()
948 pRing->WrOff = WrOff + NumBytes; in SEGGER_RTT_WriteSkipNoLock()
952 …if (Avail >= NumBytes) { // Case 2? => If not, we have case 3) (does no… in SEGGER_RTT_WriteSkipNoLock()
956 NumBytes -= Rem; in SEGGER_RTT_WriteSkipNoLock()
963 if (NumBytes) { in SEGGER_RTT_WriteSkipNoLock()
965 memcpy((void*)pDst, pData + Rem, NumBytes); in SEGGER_RTT_WriteSkipNoLock()
968 pRing->WrOff = NumBytes; in SEGGER_RTT_WriteSkipNoLock()
973 …if (Avail >= NumBytes) { // Case 4)? => If not, we have case 5) (does no… in SEGGER_RTT_WriteSkipNoLock()
1009 …ed SEGGER_RTT_WriteDownBufferNoLock(unsigned BufferIndex, const void* pBuffer, unsigned NumBytes) { in SEGGER_RTT_WriteDownBufferNoLock() argument
1030 if (Avail < NumBytes) { in SEGGER_RTT_WriteDownBufferNoLock()
1033 Status = NumBytes; in SEGGER_RTT_WriteDownBufferNoLock()
1034 _WriteNoCheck(pRing, pData, NumBytes); in SEGGER_RTT_WriteDownBufferNoLock()
1042 Status = Avail < NumBytes ? Avail : NumBytes; in SEGGER_RTT_WriteDownBufferNoLock()
1049 Status = _WriteBlocking(pRing, pData, NumBytes); in SEGGER_RTT_WriteDownBufferNoLock()
1084 unsigned SEGGER_RTT_WriteNoLock(unsigned BufferIndex, const void* pBuffer, unsigned NumBytes) { in SEGGER_RTT_WriteNoLock() argument
1104 if (Avail < NumBytes) { in SEGGER_RTT_WriteNoLock()
1107 Status = NumBytes; in SEGGER_RTT_WriteNoLock()
1108 _WriteNoCheck(pRing, pData, NumBytes); in SEGGER_RTT_WriteNoLock()
1116 Status = Avail < NumBytes ? Avail : NumBytes; in SEGGER_RTT_WriteNoLock()
1123 Status = _WriteBlocking(pRing, pData, NumBytes); in SEGGER_RTT_WriteNoLock()
1160 unsigned SEGGER_RTT_WriteDownBuffer(unsigned BufferIndex, const void* pBuffer, unsigned NumBytes) { in SEGGER_RTT_WriteDownBuffer() argument
1165 …Status = SEGGER_RTT_WriteDownBufferNoLock(BufferIndex, pBuffer, NumBytes); // Call the non-lockin… in SEGGER_RTT_WriteDownBuffer()
1189 unsigned SEGGER_RTT_Write(unsigned BufferIndex, const void* pBuffer, unsigned NumBytes) { in SEGGER_RTT_Write() argument
1194 …Status = SEGGER_RTT_WriteNoLock(BufferIndex, pBuffer, NumBytes); // Call the non-locking write fu… in SEGGER_RTT_Write()