Lines Matching refs:Cache
182 ACPI_MEMORY_LIST *Cache; in AcpiOsCreateCache() local
195 Cache = AcpiOsAllocate (sizeof (ACPI_MEMORY_LIST)); in AcpiOsCreateCache()
196 if (!Cache) in AcpiOsCreateCache()
203 memset (Cache, 0, sizeof (ACPI_MEMORY_LIST)); in AcpiOsCreateCache()
204 Cache->ListName = CacheName; in AcpiOsCreateCache()
205 Cache->ObjectSize = ObjectSize; in AcpiOsCreateCache()
206 Cache->MaxDepth = MaxDepth; in AcpiOsCreateCache()
208 *ReturnCache = Cache; in AcpiOsCreateCache()
227 ACPI_MEMORY_LIST *Cache) in AcpiOsPurgeCache() argument
236 if (!Cache) in AcpiOsPurgeCache()
249 while (Cache->ListHead) in AcpiOsPurgeCache()
253 Next = ACPI_GET_DESCRIPTOR_PTR (Cache->ListHead); in AcpiOsPurgeCache()
254 ACPI_FREE (Cache->ListHead); in AcpiOsPurgeCache()
256 Cache->ListHead = Next; in AcpiOsPurgeCache()
257 Cache->CurrentDepth--; in AcpiOsPurgeCache()
280 ACPI_MEMORY_LIST *Cache) in AcpiOsDeleteCache() argument
290 Status = AcpiOsPurgeCache (Cache); in AcpiOsDeleteCache()
298 AcpiOsFree (Cache); in AcpiOsDeleteCache()
319 ACPI_MEMORY_LIST *Cache, in AcpiOsReleaseObject() argument
328 if (!Cache || !Object) in AcpiOsReleaseObject()
335 if (Cache->CurrentDepth >= Cache->MaxDepth) in AcpiOsReleaseObject()
338 ACPI_MEM_TRACKING (Cache->TotalFreed++); in AcpiOsReleaseObject()
353 memset (Object, 0xCA, Cache->ObjectSize); in AcpiOsReleaseObject()
358 ACPI_SET_DESCRIPTOR_PTR (Object, Cache->ListHead); in AcpiOsReleaseObject()
359 Cache->ListHead = Object; in AcpiOsReleaseObject()
360 Cache->CurrentDepth++; in AcpiOsReleaseObject()
384 ACPI_MEMORY_LIST *Cache) in AcpiOsAcquireObject() argument
393 if (!Cache) in AcpiOsAcquireObject()
404 ACPI_MEM_TRACKING (Cache->Requests++); in AcpiOsAcquireObject()
408 if (Cache->ListHead) in AcpiOsAcquireObject()
412 Object = Cache->ListHead; in AcpiOsAcquireObject()
413 Cache->ListHead = ACPI_GET_DESCRIPTOR_PTR (Object); in AcpiOsAcquireObject()
415 Cache->CurrentDepth--; in AcpiOsAcquireObject()
417 ACPI_MEM_TRACKING (Cache->Hits++); in AcpiOsAcquireObject()
420 ACPI_GET_FUNCTION_NAME, Object, Cache->ListName)); in AcpiOsAcquireObject()
430 memset (Object, 0, Cache->ObjectSize); in AcpiOsAcquireObject()
436 ACPI_MEM_TRACKING (Cache->TotalAllocated++); in AcpiOsAcquireObject()
439 if ((Cache->TotalAllocated - Cache->TotalFreed) > Cache->MaxOccupied) in AcpiOsAcquireObject()
441 Cache->MaxOccupied = Cache->TotalAllocated - Cache->TotalFreed; in AcpiOsAcquireObject()
453 Object = ACPI_ALLOCATE_ZEROED (Cache->ObjectSize); in AcpiOsAcquireObject()