Lines Matching refs:pRing
252 dmacHw_DESC_RING_t *pRing = dmacHw_GET_DESC_RING(pDescriptor); in DisplayDescRing() local
255 if (pRing->pHead == NULL) { in DisplayDescRing()
259 pStart = pRing->pHead; in DisplayDescRing()
261 while ((dmacHw_DESC_t *) pStart->llp != pRing->pHead) { in DisplayDescRing()
262 if (pStart == pRing->pHead) { in DisplayDescRing()
265 if (pStart == pRing->pTail) { in DisplayDescRing()
268 if (pStart == pRing->pProg) { in DisplayDescRing()
271 if (pStart == pRing->pEnd) { in DisplayDescRing()
274 if (pStart == pRing->pFree) { in DisplayDescRing()
289 if (pStart == pRing->pHead) { in DisplayDescRing()
292 if (pStart == pRing->pTail) { in DisplayDescRing()
295 if (pStart == pRing->pProg) { in DisplayDescRing()
298 if (pStart == pRing->pEnd) { in DisplayDescRing()
301 if (pStart == pRing->pFree) { in DisplayDescRing()
583 dmacHw_DESC_RING_t *pRing = dmacHw_GET_DESC_RING(pDescriptor); in dmacHw_descriptorPending() local
588 if (pRing->pEnd) { in dmacHw_descriptorPending()
634 dmacHw_DESC_RING_t *pRing = dmacHw_GET_DESC_RING(pDescriptor); in dmacHw_freeMem() local
641 while ((pRing->pFree != pRing->pTail) in dmacHw_freeMem()
642 && (pRing->pFree->ctl.lo & dmacHw_DESC_FREE)) { in dmacHw_freeMem()
643 if (pRing->pFree->devCtl == dmacHw_FREE_USER_MEMORY) { in dmacHw_freeMem()
646 (*fpFree) ((void *)pRing->pFree->dar); in dmacHw_freeMem()
649 (*fpFree) ((void *)pRing->pFree->sar); in dmacHw_freeMem()
652 pRing->pFree->devCtl = ~dmacHw_FREE_USER_MEMORY; in dmacHw_freeMem()
654 dmacHw_NEXT_DESC(pRing, pFree); in dmacHw_freeMem()
690 dmacHw_DESC_RING_t *pRing = dmacHw_GET_DESC_RING(pDescriptor); in dmacHw_setVariableDataDescriptor() local
698 if (num > pRing->num) { in dmacHw_setVariableDataDescriptor()
702 pLast = pRing->pEnd; /* Last descriptor updated */ in dmacHw_setVariableDataDescriptor()
703 pProg = pRing->pHead; /* First descriptor in the new list */ in dmacHw_setVariableDataDescriptor()
719 if (((pRing->pHead->ctl.hi & dmacHw_DESC_FREE) == 0) || in dmacHw_setVariableDataDescriptor()
720 ((dmacHw_DESC_t *) pRing->pHead->llp == pRing->pTail) in dmacHw_setVariableDataDescriptor()
726 pRing->pHead->sar = srcAddr; in dmacHw_setVariableDataDescriptor()
739 pRing->pHead->dar = dstAddr; in dmacHw_setVariableDataDescriptor()
742 pRing->pHead->ctl.lo = controlParam; in dmacHw_setVariableDataDescriptor()
744 pRing->pHead->devCtl = dmacHw_FREE_USER_MEMORY; in dmacHw_setVariableDataDescriptor()
746 pRing->pHead->ctl.hi = 0; in dmacHw_setVariableDataDescriptor()
748 pRing->pEnd = pRing->pHead; in dmacHw_setVariableDataDescriptor()
750 dmacHw_NEXT_DESC(pRing, pHead); in dmacHw_setVariableDataDescriptor()
754 pRing->pEnd->ctl.lo &= in dmacHw_setVariableDataDescriptor()
766 (uint32_t) pProg - pRing->virt2PhyOffset); in dmacHw_setVariableDataDescriptor()
797 dmacHw_DESC_RING_t *pRing = dmacHw_GET_DESC_RING(pDescriptor); in dmacHw_readTransferredData() local
802 if (((pRing->pTail->ctl.hi & dmacHw_DESC_FREE) == 0) || in dmacHw_readTransferredData()
803 (pRing->pTail == pRing->pHead) in dmacHw_readTransferredData()
814 *ppBbuf = (char *)pRing->pTail->dar; in dmacHw_readTransferredData()
820 switch (pRing->pTail->ctl.lo & dmacHw_REG_CTL_SRC_TR_WIDTH_MASK) { in dmacHw_readTransferredData()
838 (pRing->pTail->ctl.hi & dmacHw_REG_CTL_BLOCK_TS_MASK) * in dmacHw_readTransferredData()
842 *pLlen = pRing->pTail->sstat; in dmacHw_readTransferredData()
846 dmacHw_NEXT_DESC(pRing, pTail); in dmacHw_readTransferredData()
871 dmacHw_DESC_RING_t *pRing = dmacHw_GET_DESC_RING(pDescriptor); in dmacHw_setControlDescriptor() local
878 if ((pRing->pHead->ctl.hi & dmacHw_DESC_FREE) == 0) { in dmacHw_setControlDescriptor()
882 pRing->pHead->devCtl = control; in dmacHw_setControlDescriptor()
884 pRing->pHead->sar = (uint32_t) &pRing->pHead->devCtl; in dmacHw_setControlDescriptor()
885 pRing->pHead->dar = ctlAddress; in dmacHw_setControlDescriptor()
888 pRing->pHead->ctl.lo = pConfig->transferType | in dmacHw_setControlDescriptor()
909 pRing->pHead->ctl.lo = transferType | in dmacHw_setControlDescriptor()
922 pRing->pHead->ctl.hi = dmacHw_REG_CTL_BLOCK_TS_MASK & 1; in dmacHw_setControlDescriptor()
925 if (pRing->pProg == dmacHw_DESC_INIT) { in dmacHw_setControlDescriptor()
926 pRing->pProg = pRing->pHead; in dmacHw_setControlDescriptor()
928 pRing->pEnd = pRing->pHead; in dmacHw_setControlDescriptor()
931 dmacHw_NEXT_DESC(pRing, pHead); in dmacHw_setControlDescriptor()
935 pRing->pTail = pRing->pHead; in dmacHw_setControlDescriptor()
982 dmacHw_DESC_RING_t *pRing; in dmacHw_resetDescriptorControl() local
985 pRing = dmacHw_GET_DESC_RING(pDescriptor); in dmacHw_resetDescriptorControl()
986 pDesc = pRing->pHead; in dmacHw_resetDescriptorControl()
988 for (i = 0; i < pRing->num; i++) { in dmacHw_resetDescriptorControl()
994 pRing->pFree = pRing->pTail = pRing->pEnd = pRing->pHead; in dmacHw_resetDescriptorControl()
995 pRing->pProg = dmacHw_DESC_INIT; in dmacHw_resetDescriptorControl()