Searched refs:DescIdx (Results 1 – 5 of 5) sorted by relevance
162 UINT16 DescIdx; in VirtioNetInitTx() local164 DescIdx = (UINT16) (2 * PktIdx); in VirtioNetInitTx()165 Dev->TxFreeStack[PktIdx] = DescIdx; in VirtioNetInitTx()171 Dev->TxRing.Desc[DescIdx].Addr = (UINTN) &Dev->TxSharedReq; in VirtioNetInitTx()172 Dev->TxRing.Desc[DescIdx].Len = (UINT32) TxSharedReqSize; in VirtioNetInitTx()173 Dev->TxRing.Desc[DescIdx].Flags = VRING_DESC_F_NEXT; in VirtioNetInitTx()174 Dev->TxRing.Desc[DescIdx].Next = (UINT16) (DescIdx + 1); in VirtioNetInitTx()180 Dev->TxRing.Desc[DescIdx + 1].Flags = 0; in VirtioNetInitTx()244 UINT16 DescIdx; in VirtioNetInitRx() local293 DescIdx = 0; in VirtioNetInitRx()[all …]
79 UINT32 DescIdx; in VirtioNetReceive() local116 DescIdx = Dev->RxRing.Used.UsedElem[UsedElemIdx].Id; in VirtioNetReceive()122 ASSERT (RxLen >= Dev->RxRing.Desc[DescIdx].Len); in VirtioNetReceive()123 RxLen -= Dev->RxRing.Desc[DescIdx].Len; in VirtioNetReceive()127 ASSERT (RxLen <= Dev->RxRing.Desc[DescIdx + 1].Len); in VirtioNetReceive()146 RxPtr = (UINT8 *)(UINTN) Dev->RxRing.Desc[DescIdx + 1].Addr; in VirtioNetReceive()174 (UINT16) DescIdx; in VirtioNetReceive()
130 UINT32 DescIdx; in VirtioNetGetStatus() local140 DescIdx = Dev->TxRing.Used.UsedElem[UsedElemIdx].Id; in VirtioNetGetStatus()141 ASSERT (DescIdx < (UINT32) (2 * Dev->TxMaxPending - 1)); in VirtioNetGetStatus()146 *TxBuf = (VOID *)(UINTN) Dev->TxRing.Desc[DescIdx + 1].Addr; in VirtioNetGetStatus()151 Dev->TxFreeStack[--Dev->TxCurPending] = (UINT16) DescIdx; in VirtioNetGetStatus()
79 UINT16 DescIdx; in VirtioNetTransmit() local149 DescIdx = Dev->TxFreeStack[Dev->TxCurPending++]; in VirtioNetTransmit()150 Dev->TxRing.Desc[DescIdx + 1].Addr = (UINTN) Buffer; in VirtioNetTransmit()151 Dev->TxRing.Desc[DescIdx + 1].Len = (UINT32) BufferSize; in VirtioNetTransmit()158 Dev->TxRing.Avail.Ring[AvailIdx++ % Dev->TxRing.QueueSize] = DescIdx; in VirtioNetTransmit()
220 Ring |DescIdx|DescIdx|DescIdx|DescIdx|DescIdx|240 Ring |DescIdx:Len|DescIdx:Len|DescIdx:Len|DescIdx:Len|DescIdx:Len|