Home
last modified time | relevance | path

Searched refs:krbCB (Results 1 – 2 of 2) sorted by relevance

/device/soc/st/common/platform/uart/
DKRecvBuf.c26 UINT32 KRecvBufUsedSize(KRecvBuf *krbCB) in KRecvBufUsedSize() argument
31 LOS_SpinLockSave(&krbCB->lock, &intSave); in KRecvBufUsedSize()
32 size = krbCB->size - krbCB->remain; in KRecvBufUsedSize()
33 LOS_SpinUnlockRestore(&krbCB->lock, intSave); in KRecvBufUsedSize()
38 STATIC UINT32 KRecvBufWriteLinear(KRecvBuf *krbCB, const CHAR *buf, UINT32 size) in KRecvBufWriteLinear() argument
44 cpSize = MIN(krbCB->remain, size); in KRecvBufWriteLinear()
51 …err = memcpy_s(krbCB->fifo + krbCB->wIdx, MIN((krbCB->size - krbCB->wIdx), krbCB->remain), buf, cp… in KRecvBufWriteLinear()
57 krbCB->remain -= cpSize; in KRecvBufWriteLinear()
58 krbCB->wIdx += cpSize; in KRecvBufWriteLinear()
61 if (krbCB->wIdx >= krbCB->size) { in KRecvBufWriteLinear()
[all …]
DKRecvBuf.h45 extern UINT32 KRecvBufInit(KRecvBuf *krbCB, CHAR *fifo, UINT32 size);
46 extern VOID KRecvBufDeinit(KRecvBuf *krbCB);
47 extern UINT32 KRecvBufWrite(KRecvBuf *krbCB, const CHAR *buf, UINT32 size);
48 extern UINT32 KRecvBufRead(KRecvBuf *krbCB, CHAR *buf, UINT32 size);
49 extern UINT32 KRecvBufUsedSize(KRecvBuf *krbCB);
51 extern VOID KRecvBufDump(KRecvBuf *krbCB);