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