Lines Matching refs:pUtilFifo
192 void phFriNfc_Llcp_CyclicFifoInit(P_UTIL_FIFO_BUFFER pUtilFifo, in phFriNfc_Llcp_CyclicFifoInit() argument
196 pUtilFifo->pBuffStart = (uint8_t *)pBuffStart; in phFriNfc_Llcp_CyclicFifoInit()
197 pUtilFifo->pBuffEnd = (uint8_t *)pBuffStart + buffLength-1; in phFriNfc_Llcp_CyclicFifoInit()
198 pUtilFifo->pIn = (uint8_t *)pBuffStart; in phFriNfc_Llcp_CyclicFifoInit()
199 pUtilFifo->pOut = (uint8_t *)pBuffStart; in phFriNfc_Llcp_CyclicFifoInit()
200 pUtilFifo->bFull = FALSE; in phFriNfc_Llcp_CyclicFifoInit()
206 void phFriNfc_Llcp_CyclicFifoClear(P_UTIL_FIFO_BUFFER pUtilFifo) in phFriNfc_Llcp_CyclicFifoClear() argument
208 pUtilFifo->pIn = pUtilFifo->pBuffStart; in phFriNfc_Llcp_CyclicFifoClear()
209 pUtilFifo->pOut = pUtilFifo->pBuffStart; in phFriNfc_Llcp_CyclicFifoClear()
210 pUtilFifo->bFull = FALSE; in phFriNfc_Llcp_CyclicFifoClear()
216 uint32_t phFriNfc_Llcp_CyclicFifoWrite(P_UTIL_FIFO_BUFFER pUtilFifo, in phFriNfc_Llcp_CyclicFifoWrite() argument
225 pNext = (uint8_t*)pUtilFifo->pIn+1; in phFriNfc_Llcp_CyclicFifoWrite()
227 if(pNext > pUtilFifo->pBuffEnd) in phFriNfc_Llcp_CyclicFifoWrite()
230 pNext = pUtilFifo->pBuffStart; in phFriNfc_Llcp_CyclicFifoWrite()
233 if(pUtilFifo->bFull) in phFriNfc_Llcp_CyclicFifoWrite()
239 if(pNext == pUtilFifo->pOut) in phFriNfc_Llcp_CyclicFifoWrite()
242 pUtilFifo->bFull = TRUE; in phFriNfc_Llcp_CyclicFifoWrite()
247 pUtilFifo->pIn = pNext; in phFriNfc_Llcp_CyclicFifoWrite()
256 uint32_t phFriNfc_Llcp_CyclicFifoFifoRead(P_UTIL_FIFO_BUFFER pUtilFifo, in phFriNfc_Llcp_CyclicFifoFifoRead() argument
265 if((pUtilFifo->pOut == pUtilFifo->pIn) && (pUtilFifo->bFull == FALSE)) in phFriNfc_Llcp_CyclicFifoFifoRead()
274 if(pUtilFifo->pOut == pUtilFifo->pBuffEnd) in phFriNfc_Llcp_CyclicFifoFifoRead()
277 pNext = pUtilFifo->pBuffStart; in phFriNfc_Llcp_CyclicFifoFifoRead()
281 pNext = (uint8_t*)pUtilFifo->pOut + 1; in phFriNfc_Llcp_CyclicFifoFifoRead()
286 pUtilFifo->pOut = pNext; in phFriNfc_Llcp_CyclicFifoFifoRead()
288 pUtilFifo->bFull = FALSE; in phFriNfc_Llcp_CyclicFifoFifoRead()
298 uint32_t phFriNfc_Llcp_CyclicFifoUsage(P_UTIL_FIFO_BUFFER pUtilFifo) in phFriNfc_Llcp_CyclicFifoUsage() argument
301 uint8_t * pIn = (uint8_t *)pUtilFifo->pIn; in phFriNfc_Llcp_CyclicFifoUsage()
302 uint8_t * pOut = (uint8_t *)pUtilFifo->pOut; in phFriNfc_Llcp_CyclicFifoUsage()
304 if (pUtilFifo->bFull) in phFriNfc_Llcp_CyclicFifoUsage()
306 dataLength = pUtilFifo->pBuffEnd - pUtilFifo->pBuffStart + 1; in phFriNfc_Llcp_CyclicFifoUsage()
316 dataLength = pUtilFifo->pBuffEnd - pOut; in phFriNfc_Llcp_CyclicFifoUsage()
317 dataLength += (pIn+1) - pUtilFifo->pBuffStart; in phFriNfc_Llcp_CyclicFifoUsage()
328 uint32_t phFriNfc_Llcp_CyclicFifoAvailable(P_UTIL_FIFO_BUFFER pUtilFifo) in phFriNfc_Llcp_CyclicFifoAvailable() argument
332 uint8_t * pIn = (uint8_t *)pUtilFifo->pIn; in phFriNfc_Llcp_CyclicFifoAvailable()
333 uint8_t * pOut = (uint8_t *)pUtilFifo->pOut; in phFriNfc_Llcp_CyclicFifoAvailable()
335 if (pUtilFifo->bFull) in phFriNfc_Llcp_CyclicFifoAvailable()
343 size = pUtilFifo->pBuffEnd - pUtilFifo->pBuffStart + 1; in phFriNfc_Llcp_CyclicFifoAvailable()