Home
last modified time | relevance | path

Searched refs:ElementSize (Results 1 – 8 of 8) sorted by relevance

/device/linaro/bootloader/edk2/MdeModulePkg/Library/BaseSortLib/
DBaseSortLib.c49 IN CONST UINTN ElementSize, in QuickSortWorker() argument
63 || ElementSize < 1 in QuickSortWorker()
73 Pivot = ((UINT8*)BufferToSort+((Count-1)*ElementSize)); in QuickSortWorker()
86 if (CompareFunction((VOID*)((UINT8*)BufferToSort+((LoopCount)*ElementSize)),Pivot) <= 0){ in QuickSortWorker()
90 CopyMem (Buffer, (UINT8*)BufferToSort+(NextSwapLocation*ElementSize), ElementSize); in QuickSortWorker()
91 …((UINT8*)BufferToSort+(NextSwapLocation*ElementSize), (UINT8*)BufferToSort+((LoopCount)*ElementSiz… in QuickSortWorker()
92 CopyMem ((UINT8*)BufferToSort+((LoopCount)*ElementSize), Buffer, ElementSize); in QuickSortWorker()
103 CopyMem (Buffer, Pivot, ElementSize); in QuickSortWorker()
104 CopyMem (Pivot, (UINT8*)BufferToSort+(NextSwapLocation*ElementSize), ElementSize); in QuickSortWorker()
105 CopyMem ((UINT8*)BufferToSort+(NextSwapLocation*ElementSize), Buffer, ElementSize); in QuickSortWorker()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiSortLib/
DUefiSortLib.c65 IN CONST UINTN ElementSize, in QuickSortWorker() argument
79 || ElementSize < 1 in QuickSortWorker()
89 Pivot = ((UINT8*)BufferToSort+((Count-1)*ElementSize)); in QuickSortWorker()
102 if (CompareFunction((VOID*)((UINT8*)BufferToSort+((LoopCount)*ElementSize)),Pivot) <= 0){ in QuickSortWorker()
106 CopyMem (Buffer, (UINT8*)BufferToSort+(NextSwapLocation*ElementSize), ElementSize); in QuickSortWorker()
107 …((UINT8*)BufferToSort+(NextSwapLocation*ElementSize), (UINT8*)BufferToSort+((LoopCount)*ElementSiz… in QuickSortWorker()
108 CopyMem ((UINT8*)BufferToSort+((LoopCount)*ElementSize), Buffer, ElementSize); in QuickSortWorker()
119 CopyMem (Buffer, Pivot, ElementSize); in QuickSortWorker()
120 CopyMem (Pivot, (UINT8*)BufferToSort+(NextSwapLocation*ElementSize), ElementSize); in QuickSortWorker()
121 CopyMem ((UINT8*)BufferToSort+(NextSwapLocation*ElementSize), Buffer, ElementSize); in QuickSortWorker()
[all …]
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/SysCall/
DCrtWrapper.c39 IN CONST UINTN ElementSize, in QuickSortWorker() argument
52 if (Count < 2 || ElementSize < 1) { in QuickSortWorker()
61 Pivot = ((UINT8 *)BufferToSort + ((Count - 1) * ElementSize)); in QuickSortWorker()
72 … if (CompareFunction ((VOID *)((UINT8 *)BufferToSort + ((LoopCount) * ElementSize)), Pivot) <= 0) { in QuickSortWorker()
76 CopyMem (Buffer, (UINT8 *)BufferToSort + (NextSwapLocation * ElementSize), ElementSize); in QuickSortWorker()
77 …*)BufferToSort + (NextSwapLocation * ElementSize), (UINT8 *)BufferToSort + ((LoopCount) * ElementS… in QuickSortWorker()
78 CopyMem ((UINT8 *)BufferToSort + ((LoopCount) * ElementSize), Buffer, ElementSize); in QuickSortWorker()
89 CopyMem (Buffer, Pivot, ElementSize); in QuickSortWorker()
90 CopyMem (Pivot, (UINT8 *)BufferToSort + (NextSwapLocation * ElementSize), ElementSize); in QuickSortWorker()
91 CopyMem ((UINT8 *)BufferToSort + (NextSwapLocation * ElementSize), Buffer, ElementSize); in QuickSortWorker()
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/Containers/Queues/
DFifo.c71 Count *= Self->ElementSize; in FIFO_NumInQueue()
111 Count *= Self->ElementSize; in FIFO_FreeSpace()
229 …SizeOfElement = Self->ElementSize; // Size of Elements, in by… in FIFO_Enqueue()
292 …SizeOfElement = Self->ElementSize; // Get size of this FIFO's eleme… in FIFO_Dequeue()
487 size_t ElementSize in New_cFIFO() argument
494 if((NumElements > 2) && (ElementSize > 0)) { in New_cFIFO()
497 Queue = (UINT8 *)AllocateZeroPool(NumElements * ElementSize); in New_cFIFO()
513 FIFO->ElementSize = (UINT32)ElementSize; in New_cFIFO()
/device/linaro/bootloader/edk2/StdLib/Include/Containers/
DFifo.h38 cFIFO * EFIAPI New_cFIFO(UINT32 NumElements, size_t ElementSize);
201 UINT32 ElementSize; ///< Number of bytes in an element. member
/device/linaro/bootloader/edk2/MdeModulePkg/Include/Library/
DSortLib.h57 IN CONST UINTN ElementSize,
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Console/ConSplitterDxe/
DConSplitter.h1762 IN UINTN ElementSize,
DConSplitter.c1829 IN UINTN ElementSize, in ConSplitterGrowBuffer() argument
1842 ElementSize * (*Count), in ConSplitterGrowBuffer()
1843 ElementSize * ((*Count) + CONSOLE_SPLITTER_ALLOC_UNIT), in ConSplitterGrowBuffer()