Lines Matching refs:Buffer
84 IN VOID *Buffer in FreePool() argument
87 uefi_call_wrapper(BS->FreePool, 1, Buffer); in FreePool()
94 IN VOID *Buffer, in ZeroMem() argument
98 RtZeroMem (Buffer, Size); in ZeroMem()
103 IN VOID *Buffer, in SetMem() argument
108 RtSetMem (Buffer, Size, Value); in SetMem()
134 IN OUT VOID **Buffer, in GrowBuffer() argument
166 if (!*Buffer && BufferSize) { in GrowBuffer()
177 if (*Buffer) { in GrowBuffer()
178 FreePool (*Buffer); in GrowBuffer()
181 *Buffer = AllocatePool (BufferSize); in GrowBuffer()
183 if (*Buffer) { in GrowBuffer()
194 if (!TryAgain && EFI_ERROR(*Status) && *Buffer) { in GrowBuffer()
195 FreePool (*Buffer); in GrowBuffer()
196 *Buffer = NULL; in GrowBuffer()
212 EFI_MEMORY_DESCRIPTOR *Buffer; in LibMemoryMap() local
220 Buffer = NULL; in LibMemoryMap()
227 while (GrowBuffer (&Status, (VOID **) &Buffer, BufferSize)) { in LibMemoryMap()
228 …Status = uefi_call_wrapper(BS->GetMemoryMap, 5, &BufferSize, Buffer, MapKey, DescriptorSize, Descr… in LibMemoryMap()
239 return Buffer; in LibMemoryMap()
250 VOID *Buffer; in LibGetVariableAndSize() local
257 Buffer = NULL; in LibGetVariableAndSize()
264 while (GrowBuffer (&Status, &Buffer, BufferSize)) { in LibGetVariableAndSize()
272 Buffer in LibGetVariableAndSize()
275 if (Buffer) { in LibGetVariableAndSize()
280 return Buffer; in LibGetVariableAndSize()