Lines Matching refs:Allocation

68     ACPI_DEBUG_MEM_BLOCK    *Allocation);
146 ACPI_DEBUG_MEM_BLOCK *Allocation;
159 Allocation = AcpiOsAllocate (Size + sizeof (ACPI_DEBUG_MEM_HEADER));
160 if (!Allocation)
171 Allocation, Size, ACPI_MEM_MALLOC, Component, Module, Line);
174 AcpiOsFree (Allocation);
189 return ((void *) &Allocation->UserSpace);
215 ACPI_DEBUG_MEM_BLOCK *Allocation;
228 Allocation = AcpiOsAllocateZeroed (
230 if (!Allocation)
239 Status = AcpiUtTrackAllocation (Allocation, Size,
243 AcpiOsFree (Allocation);
258 return ((void *) &Allocation->UserSpace);
266 * PARAMETERS: Allocation - Address of the memory to deallocate
273 * DESCRIPTION: Frees the memory at Allocation
279 void *Allocation,
288 ACPI_FUNCTION_TRACE_PTR (UtFree, Allocation);
291 if (NULL == Allocation)
300 (((char *) Allocation) - sizeof (ACPI_DEBUG_MEM_HEADER)));
313 Allocation, DebugBlock));
322 * PARAMETERS: Allocation - Address of allocated memory
326 * 2) Element was found. Returns Allocation parameter.
347 ACPI_DEBUG_MEM_BLOCK *Allocation)
365 while (Element > Allocation)
377 if (Element == Allocation)
390 * PARAMETERS: Allocation - Address of allocated memory
405 ACPI_DEBUG_MEM_BLOCK *Allocation,
417 ACPI_FUNCTION_TRACE_PTR (UtTrackAllocation, Allocation);
436 Element = AcpiUtFindAllocation (Allocation);
437 if (Element == Allocation)
440 "UtTrackAllocation: Allocation (%p) already present in global list!",
441 Allocation));
447 Allocation->Size = (UINT32) Size;
448 Allocation->AllocType = AllocType;
449 Allocation->Component = Component;
450 Allocation->Line = Line;
452 AcpiUtSafeStrncpy (Allocation->Module, Module, ACPI_MAX_MODULE_NAME);
461 Allocation;
464 Allocation->Next = MemList->ListHead;
465 Allocation->Previous = NULL;
467 MemList->ListHead = Allocation;
473 Allocation->Next = Element->Next;
474 Allocation->Previous = Element;
478 (Element->Next)->Previous = Allocation;
481 Element->Next = Allocation;
495 * PARAMETERS: Allocation - Address of allocated memory
508 ACPI_DEBUG_MEM_BLOCK *Allocation,
544 if (Allocation->Previous)
546 (Allocation->Previous)->Next = Allocation->Next;
550 MemList->ListHead = Allocation->Next;
553 if (Allocation->Next)
555 (Allocation->Next)->Previous = Allocation->Previous;
559 &Allocation->UserSpace, Allocation->Size));
563 memset (&Allocation->UserSpace, 0xEA, Allocation->Size);