Lines Matching refs:pRing

113 	dmacHw_DESC_RING_t *pRing;  in dmacHw_initiateTransfer()  local
118 pRing = dmacHw_GET_DESC_RING(pDescriptor); in dmacHw_initiateTransfer()
132 pRing->virt2PhyOffset); in dmacHw_initiateTransfer()
146 } else if (pProg == (dmacHw_DESC_t *) pRing->pEnd->llp) { in dmacHw_initiateTransfer()
158 pProg = pRing->pHead; in dmacHw_initiateTransfer()
160 dmacHw_NEXT_DESC(pRing, pHead); in dmacHw_initiateTransfer()
163 if (pRing->pEnd == NULL) { in dmacHw_initiateTransfer()
167 pProg = pRing->pProg; in dmacHw_initiateTransfer()
171 dmacHw_ASSERT((dmacHw_DESC_t *) pRing->pEnd-> in dmacHw_initiateTransfer()
172 llp == pRing->pProg); in dmacHw_initiateTransfer()
174 dmacHw_ASSERT((dmacHw_DESC_t *) pRing->pProg == in dmacHw_initiateTransfer()
175 pRing->pHead); in dmacHw_initiateTransfer()
178 pRing->pProg->ctl.lo |= in dmacHw_initiateTransfer()
181 pRing->pProg = in dmacHw_initiateTransfer()
182 (dmacHw_DESC_t *) pRing->pProg->llp; in dmacHw_initiateTransfer()
183 } while (pRing->pProg != pRing->pHead); in dmacHw_initiateTransfer()
186 while (pRing->pProg != pRing->pEnd) { in dmacHw_initiateTransfer()
187 pRing->pProg->ctl.lo |= in dmacHw_initiateTransfer()
190 pRing->pProg = in dmacHw_initiateTransfer()
191 (dmacHw_DESC_t *) pRing->pProg->llp; in dmacHw_initiateTransfer()
200 (uint32_t) pProg - pRing->virt2PhyOffset); in dmacHw_initiateTransfer()
205 if (pRing->pEnd) { in dmacHw_initiateTransfer()
207 pRing->pProg = (dmacHw_DESC_t *) pRing->pEnd->llp; in dmacHw_initiateTransfer()
210 pRing->pEnd = (dmacHw_DESC_t *) NULL; in dmacHw_initiateTransfer()
388 dmacHw_DESC_RING_t *pRing; in dmacHw_initDescriptor() local
402 pRing = dmacHw_GET_DESC_RING(pDescriptorVirt); in dmacHw_initDescriptor()
403 pRing->pHead = in dmacHw_initDescriptor()
404 (dmacHw_DESC_t *) ((uint32_t) pRing + sizeof(dmacHw_DESC_RING_t)); in dmacHw_initDescriptor()
405 pRing->pFree = pRing->pTail = pRing->pEnd = pRing->pHead; in dmacHw_initDescriptor()
406 pRing->pProg = dmacHw_DESC_INIT; in dmacHw_initDescriptor()
408 pDesc = pRing->pHead; in dmacHw_initDescriptor()
410 pRing->virt2PhyOffset = (uint32_t) pDescriptorVirt - descriptorPhyAddr; in dmacHw_initDescriptor()
417 pDesc->llpPhy = (uint32_t) (pDesc + 1) - pRing->virt2PhyOffset; in dmacHw_initDescriptor()
430 pDesc->llpPhy = (uint32_t) pRing->pHead - pRing->virt2PhyOffset; in dmacHw_initDescriptor()
434 pDesc->llp = (uint32_t) pRing->pHead; in dmacHw_initDescriptor()
438 pRing->num = num; in dmacHw_initDescriptor()
600 dmacHw_DESC_RING_t *pRing = dmacHw_GET_DESC_RING(pDescriptor); in dmacHw_setDataDescriptor() local
675 pProg = pRing->pHead; in dmacHw_setDataDescriptor()
676 for (count = 0; (descCount <= pRing->num) && (count < descCount); in dmacHw_setDataDescriptor()
686 pStart = pProg = pRing->pHead; in dmacHw_setDataDescriptor()
703 if (pProg == pRing->pHead) { in dmacHw_setDataDescriptor()
868 if (pRing->pProg == dmacHw_DESC_INIT) { in dmacHw_setDataDescriptor()
869 pRing->pProg = pStart; in dmacHw_setDataDescriptor()
872 pRing->pEnd = pProg; in dmacHw_setDataDescriptor()
874 pRing->pHead = (dmacHw_DESC_t *) pProg->llp; in dmacHw_setDataDescriptor()
879 pRing->pTail = pRing->pHead; in dmacHw_setDataDescriptor()