Lines Matching defs:Allocation

70     ACPI_DEBUG_MEM_BLOCK    *Allocation);
150 ACPI_DEBUG_MEM_BLOCK *Allocation;
154 Allocation = AcpiUtAllocate (Size + sizeof (ACPI_DEBUG_MEM_HEADER),
156 if (!Allocation)
161 Status = AcpiUtTrackAllocation (Allocation, Size,
165 AcpiOsFree (Allocation);
177 return ((void *) &Allocation->UserSpace);
203 ACPI_DEBUG_MEM_BLOCK *Allocation;
207 Allocation = AcpiUtAllocateZeroed (Size + sizeof (ACPI_DEBUG_MEM_HEADER),
209 if (!Allocation)
218 Status = AcpiUtTrackAllocation (Allocation, Size,
222 AcpiOsFree (Allocation);
234 return ((void *) &Allocation->UserSpace);
242 * PARAMETERS: Allocation - Address of the memory to deallocate
249 * DESCRIPTION: Frees the memory at Allocation
255 void *Allocation,
264 ACPI_FUNCTION_TRACE_PTR (UtFree, Allocation);
267 if (NULL == Allocation)
276 (((char *) Allocation) - sizeof (ACPI_DEBUG_MEM_HEADER)));
289 ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "%p freed\n", Allocation));
298 * PARAMETERS: Allocation - Address of allocated memory
302 * 2) Element was found. Returns Allocation parameter.
323 ACPI_DEBUG_MEM_BLOCK *Allocation)
341 while (Element > Allocation)
353 if (Element == Allocation)
366 * PARAMETERS: Allocation - Address of allocated memory
381 ACPI_DEBUG_MEM_BLOCK *Allocation,
393 ACPI_FUNCTION_TRACE_PTR (UtTrackAllocation, Allocation);
412 Element = AcpiUtFindAllocation (Allocation);
413 if (Element == Allocation)
416 "UtTrackAllocation: Allocation (%p) already present in global list!",
417 Allocation));
423 Allocation->Size = (UINT32) Size;
424 Allocation->AllocType = AllocType;
425 Allocation->Component = Component;
426 Allocation->Line = Line;
428 ACPI_STRNCPY (Allocation->Module, Module, ACPI_MAX_MODULE_NAME);
429 Allocation->Module[ACPI_MAX_MODULE_NAME-1] = 0;
437 ((ACPI_DEBUG_MEM_BLOCK *)(MemList->ListHead))->Previous = Allocation;
440 Allocation->Next = MemList->ListHead;
441 Allocation->Previous = NULL;
443 MemList->ListHead = Allocation;
449 Allocation->Next = Element->Next;
450 Allocation->Previous = Element;
454 (Element->Next)->Previous = Allocation;
457 Element->Next = Allocation;
471 * PARAMETERS: Allocation - Address of allocated memory
484 ACPI_DEBUG_MEM_BLOCK *Allocation,
520 if (Allocation->Previous)
522 (Allocation->Previous)->Next = Allocation->Next;
526 MemList->ListHead = Allocation->Next;
529 if (Allocation->Next)
531 (Allocation->Next)->Previous = Allocation->Previous;
535 &Allocation->UserSpace, Allocation->Size));
539 ACPI_MEMSET (&Allocation->UserSpace, 0xEA, Allocation->Size);