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