Home
last modified time | relevance | path

Searched refs:DescIdx (Results 1 – 5 of 5) sorted by relevance

/device/linaro/bootloader/edk2/OvmfPkg/VirtioNetDxe/
DSnpInitialize.c162 UINT16 DescIdx; in VirtioNetInitTx() local
164 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() local
293 DescIdx = 0; in VirtioNetInitRx()
[all …]
DSnpReceive.c79 UINT32 DescIdx; in VirtioNetReceive() local
116 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()
DSnpGetStatus.c130 UINT32 DescIdx; in VirtioNetGetStatus() local
140 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()
DSnpTransmit.c79 UINT16 DescIdx; in VirtioNetTransmit() local
149 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()
DTechNotes.txt220 Ring |DescIdx|DescIdx|DescIdx|DescIdx|DescIdx|
240 Ring |DescIdx:Len|DescIdx:Len|DescIdx:Len|DescIdx:Len|DescIdx:Len|