Lines Matching defs:Allocation

68     ACPI_DEBUG_MEM_BLOCK    *Allocation);
148 ACPI_DEBUG_MEM_BLOCK *Allocation;
161 Allocation = AcpiOsAllocate (Size + sizeof (ACPI_DEBUG_MEM_HEADER));
162 if (!Allocation)
173 Allocation, Size, ACPI_MEM_MALLOC, Component, Module, Line);
176 AcpiOsFree (Allocation);
191 return ((void *) &Allocation->UserSpace);
217 ACPI_DEBUG_MEM_BLOCK *Allocation;
230 Allocation = AcpiOsAllocateZeroed (
232 if (!Allocation)
241 Status = AcpiUtTrackAllocation (Allocation, Size,
245 AcpiOsFree (Allocation);
260 return ((void *) &Allocation->UserSpace);
268 * PARAMETERS: Allocation - Address of the memory to deallocate
275 * DESCRIPTION: Frees the memory at Allocation
281 void *Allocation,
290 ACPI_FUNCTION_TRACE_PTR (UtFree, Allocation);
293 if (NULL == Allocation)
302 (((char *) Allocation) - sizeof (ACPI_DEBUG_MEM_HEADER)));
315 Allocation, DebugBlock));
324 * PARAMETERS: Allocation - Address of allocated memory
328 * 2) Element was found. Returns Allocation parameter.
349 ACPI_DEBUG_MEM_BLOCK *Allocation)
367 while (Element > Allocation)
379 if (Element == Allocation)
392 * PARAMETERS: Allocation - Address of allocated memory
407 ACPI_DEBUG_MEM_BLOCK *Allocation,
419 ACPI_FUNCTION_TRACE_PTR (UtTrackAllocation, Allocation);
438 Element = AcpiUtFindAllocation (Allocation);
439 if (Element == Allocation)
442 "UtTrackAllocation: Allocation (%p) already present in global list!",
443 Allocation));
449 Allocation->Size = (UINT32) Size;
450 Allocation->AllocType = AllocType;
451 Allocation->Component = Component;
452 Allocation->Line = Line;
454 strncpy (Allocation->Module, Module, ACPI_MAX_MODULE_NAME);
455 Allocation->Module[ACPI_MAX_MODULE_NAME-1] = 0;
464 Allocation;
467 Allocation->Next = MemList->ListHead;
468 Allocation->Previous = NULL;
470 MemList->ListHead = Allocation;
476 Allocation->Next = Element->Next;
477 Allocation->Previous = Element;
481 (Element->Next)->Previous = Allocation;
484 Element->Next = Allocation;
498 * PARAMETERS: Allocation - Address of allocated memory
511 ACPI_DEBUG_MEM_BLOCK *Allocation,
547 if (Allocation->Previous)
549 (Allocation->Previous)->Next = Allocation->Next;
553 MemList->ListHead = Allocation->Next;
556 if (Allocation->Next)
558 (Allocation->Next)->Previous = Allocation->Previous;
562 &Allocation->UserSpace, Allocation->Size));
566 memset (&Allocation->UserSpace, 0xEA, Allocation->Size);