Lines Matching refs:Allocation

176     ACPI_DEBUG_MEM_BLOCK    *Allocation);
254 ACPI_DEBUG_MEM_BLOCK *Allocation; in AcpiUtAllocateAndTrack() local
267 Allocation = AcpiOsAllocate (Size + sizeof (ACPI_DEBUG_MEM_HEADER)); in AcpiUtAllocateAndTrack()
268 if (!Allocation) in AcpiUtAllocateAndTrack()
279 Allocation, Size, ACPI_MEM_MALLOC, Component, Module, Line); in AcpiUtAllocateAndTrack()
282 AcpiOsFree (Allocation); in AcpiUtAllocateAndTrack()
297 return ((void *) &Allocation->UserSpace); in AcpiUtAllocateAndTrack()
323 ACPI_DEBUG_MEM_BLOCK *Allocation; in AcpiUtAllocateZeroedAndTrack() local
336 Allocation = AcpiOsAllocateZeroed ( in AcpiUtAllocateZeroedAndTrack()
338 if (!Allocation) in AcpiUtAllocateZeroedAndTrack()
347 Status = AcpiUtTrackAllocation (Allocation, Size, in AcpiUtAllocateZeroedAndTrack()
351 AcpiOsFree (Allocation); in AcpiUtAllocateZeroedAndTrack()
366 return ((void *) &Allocation->UserSpace); in AcpiUtAllocateZeroedAndTrack()
387 void *Allocation, in AcpiUtFreeAndTrack() argument
396 ACPI_FUNCTION_TRACE_PTR (UtFree, Allocation); in AcpiUtFreeAndTrack()
399 if (NULL == Allocation) in AcpiUtFreeAndTrack()
408 (((char *) Allocation) - sizeof (ACPI_DEBUG_MEM_HEADER))); in AcpiUtFreeAndTrack()
421 Allocation, DebugBlock)); in AcpiUtFreeAndTrack()
455 ACPI_DEBUG_MEM_BLOCK *Allocation) in AcpiUtFindAllocation() argument
473 while (Element > Allocation) in AcpiUtFindAllocation()
485 if (Element == Allocation) in AcpiUtFindAllocation()
513 ACPI_DEBUG_MEM_BLOCK *Allocation, in AcpiUtTrackAllocation() argument
525 ACPI_FUNCTION_TRACE_PTR (UtTrackAllocation, Allocation); in AcpiUtTrackAllocation()
544 Element = AcpiUtFindAllocation (Allocation); in AcpiUtTrackAllocation()
545 if (Element == Allocation) in AcpiUtTrackAllocation()
549 Allocation)); in AcpiUtTrackAllocation()
555 Allocation->Size = (UINT32) Size; in AcpiUtTrackAllocation()
556 Allocation->AllocType = AllocType; in AcpiUtTrackAllocation()
557 Allocation->Component = Component; in AcpiUtTrackAllocation()
558 Allocation->Line = Line; in AcpiUtTrackAllocation()
560 AcpiUtSafeStrncpy (Allocation->Module, (char *) Module, ACPI_MAX_MODULE_NAME); in AcpiUtTrackAllocation()
569 Allocation; in AcpiUtTrackAllocation()
572 Allocation->Next = MemList->ListHead; in AcpiUtTrackAllocation()
573 Allocation->Previous = NULL; in AcpiUtTrackAllocation()
575 MemList->ListHead = Allocation; in AcpiUtTrackAllocation()
581 Allocation->Next = Element->Next; in AcpiUtTrackAllocation()
582 Allocation->Previous = Element; in AcpiUtTrackAllocation()
586 (Element->Next)->Previous = Allocation; in AcpiUtTrackAllocation()
589 Element->Next = Allocation; in AcpiUtTrackAllocation()
616 ACPI_DEBUG_MEM_BLOCK *Allocation, in AcpiUtRemoveAllocation() argument
652 if (Allocation->Previous) in AcpiUtRemoveAllocation()
654 (Allocation->Previous)->Next = Allocation->Next; in AcpiUtRemoveAllocation()
658 MemList->ListHead = Allocation->Next; in AcpiUtRemoveAllocation()
661 if (Allocation->Next) in AcpiUtRemoveAllocation()
663 (Allocation->Next)->Previous = Allocation->Previous; in AcpiUtRemoveAllocation()
667 &Allocation->UserSpace, Allocation->Size)); in AcpiUtRemoveAllocation()
671 memset (&Allocation->UserSpace, 0xEA, Allocation->Size); in AcpiUtRemoveAllocation()