Home
last modified time | relevance | path

Searched refs:QueueSize (Results 1 – 12 of 12) sorted by relevance

/device/linaro/bootloader/edk2/OvmfPkg/Library/VirtioLib/
DVirtioLib.c56 IN UINT16 QueueSize, in VirtioRingInit() argument
64 sizeof *Ring->Desc * QueueSize + in VirtioRingInit()
67 sizeof *Ring->Avail.Ring * QueueSize + in VirtioRingInit()
74 sizeof *Ring->Used.UsedElem * QueueSize + in VirtioRingInit()
87 RingPagesPtr += sizeof *Ring->Desc * QueueSize; in VirtioRingInit()
96 RingPagesPtr += sizeof *Ring->Avail.Ring * QueueSize; in VirtioRingInit()
112 RingPagesPtr += sizeof *Ring->Used.UsedElem * QueueSize; in VirtioRingInit()
117 Ring->QueueSize = QueueSize; in VirtioRingInit()
229 Desc = &Ring->Desc[Indices->NextDescIdx++ % Ring->QueueSize]; in VirtioAppendDesc()
233 Desc->Next = Indices->NextDescIdx % Ring->QueueSize; in VirtioAppendDesc()
[all …]
/device/linaro/bootloader/edk2/OvmfPkg/VirtioNetDxe/
DSnpInitialize.c55 UINT16 QueueSize; in VirtioNetInitRing() local
64 Status = Dev->VirtIo->GetQueueNumMax (Dev->VirtIo, &QueueSize); in VirtioNetInitRing()
73 if (QueueSize < 2) { in VirtioNetInitRing()
76 Status = VirtioRingInit (QueueSize, Ring); in VirtioNetInitRing()
85 Status = Dev->VirtIo->SetQueueNum (Dev->VirtIo, QueueSize); in VirtioNetInitRing()
144 Dev->TxMaxPending = (UINT16) MIN (Dev->TxRing.QueueSize / 2, in VirtioNetInitTx()
246 RxAlwaysPending = (UINT16) MIN (Dev->RxRing.QueueSize / 2, VNET_MAX_PENDING); in VirtioNetInitRx()
DSnpReceive.c115 UsedElemIdx = Dev->RxLastUsed % Dev->RxRing.QueueSize; in VirtioNetReceive()
173 Dev->RxRing.Avail.Ring[AvailIdx++ % Dev->RxRing.QueueSize] = in VirtioNetReceive()
DSnpGetStatus.c139 UsedElemIdx = Dev->TxLastUsed++ % Dev->TxRing.QueueSize; in VirtioNetGetStatus()
DSnpTransmit.c158 Dev->TxRing.Avail.Ring[AvailIdx++ % Dev->TxRing.QueueSize] = DescIdx; in VirtioNetTransmit()
/device/linaro/bootloader/edk2/OvmfPkg/VirtioBlkDxe/
DVirtioBlk.c288 ASSERT (Dev->Ring.QueueSize >= 3); in SynchronousRequest()
601 UINT16 QueueSize; in VirtioBlkInit() local
701 Status = Dev->VirtIo->GetQueueNumMax (Dev->VirtIo, &QueueSize); in VirtioBlkInit()
705 if (QueueSize < 3) { // SynchronousRequest() uses at most three descriptors in VirtioBlkInit()
710 Status = VirtioRingInit (QueueSize, &Dev->Ring); in VirtioBlkInit()
719 Status = Dev->VirtIo->SetQueueNum (Dev->VirtIo, QueueSize); in VirtioBlkInit()
/device/linaro/bootloader/edk2/OvmfPkg/Library/VirtioMmioDeviceLib/
DVirtioMmioDeviceFunctions.c105 UINT16 QueueSize in VirtioMmioSetQueueSize() argument
112 VIRTIO_CFG_WRITE (Device, VIRTIO_MMIO_OFFSET_QUEUE_NUM, QueueSize); in VirtioMmioSetQueueSize()
DVirtioMmioDevice.h96 UINT16 QueueSize
/device/linaro/bootloader/edk2/OvmfPkg/Include/Library/
DVirtioLib.h54 IN UINT16 QueueSize,
/device/linaro/bootloader/edk2/OvmfPkg/VirtioScsiDxe/
DVirtioScsi.c436 ASSERT (Dev->Ring.QueueSize >= 4); in VirtioScsiPassThru()
713 UINT16 QueueSize; in VirtioScsiInit() local
810 Status = Dev->VirtIo->GetQueueNumMax (Dev->VirtIo, &QueueSize); in VirtioScsiInit()
817 if (QueueSize < 4) { in VirtioScsiInit()
822 Status = VirtioRingInit (QueueSize, &Dev->Ring); in VirtioScsiInit()
831 Status = Dev->VirtIo->SetQueueNum (Dev->VirtIo, QueueSize); in VirtioScsiInit()
/device/linaro/bootloader/edk2/OvmfPkg/Include/IndustryStandard/
DVirtio.h156 UINT16 QueueSize; member
/device/linaro/bootloader/edk2/OvmfPkg/Include/Protocol/
DVirtioDevice.h301 IN UINT16 QueueSize