Home | History | Annotate | Download | only in utilities

Lines Matching defs:Object

165  *              ObjectSize      - Size of each cached object
167 * ReturnCache - Where the new cache object is returned
171 * DESCRIPTION: Create a cache object
193 /* Create the cache object */
201 /* Populate the cache object and return it */
217 * PARAMETERS: Cache - Handle to cache object
251 /* Delete and unlink one cached state object */
269 * PARAMETERS: Cache - Handle to cache object
274 * cache object.
296 /* Now we can delete the cache object */
307 * PARAMETERS: Cache - Handle to cache object
308 * Object - The object to be released
312 * DESCRIPTION: Release an object to the specified cache. If cache is full,
313 * the object is deleted.
320 void *Object)
328 if (!Cache || !Object)
333 /* If cache is full, just free this object */
337 ACPI_FREE (Object);
341 /* Otherwise put this object back into the cache */
351 /* Mark the object as cached */
353 memset (Object, 0xCA, Cache->ObjectSize);
354 ACPI_SET_DESCRIPTOR_TYPE (Object, ACPI_DESC_TYPE_CACHED);
356 /* Put the object at the head of the cache list */
358 ACPI_SET_DESCRIPTOR_PTR (Object, Cache->ListHead);
359 Cache->ListHead = Object;
373 * PARAMETERS: Cache - Handle to cache object
375 * RETURN: the acquired object. NULL on error
377 * DESCRIPTION: Get an object from the specified cache. If cache is empty,
378 * the object is allocated.
387 void *Object;
410 /* There is an object available, use it */
412 Object = Cache->ListHead;
413 Cache->ListHead = ACPI_GET_DESCRIPTOR_PTR (Object);
419 "%s: Object %p from %s cache\n",
420 ACPI_GET_FUNCTION_NAME, Object, Cache->ListName));
428 /* Clear (zero) the previously used Object */
430 memset (Object, 0, Cache->ObjectSize);
434 /* The cache is empty, create a new object */
453 Object = ACPI_ALLOCATE_ZEROED (Cache->ObjectSize);
454 if (!Object)
460 return_PTR (Object);