• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/acpi/utilities/

Lines Matching defs:object

54  *              object_size     - Size of each cached object
56 * return_cache - Where the new cache object is returned
60 * DESCRIPTION: Create a cache object
76 /* Create the cache object */
83 /* Populate the cache object and return it */
99 * PARAMETERS: Cache - Handle to cache object
121 /* Delete and unlink one cached state object */
140 * PARAMETERS: Cache - Handle to cache object
145 * cache object.
162 /* Now we can delete the cache object */
172 * PARAMETERS: Cache - Handle to cache object
173 * Object - The object to be released
177 * DESCRIPTION: Release an object to the specified cache. If cache is full,
178 * the object is deleted.
183 acpi_os_release_object(struct acpi_memory_list * cache, void *object)
189 if (!cache || !object) {
193 /* If cache is full, just free this object */
196 ACPI_FREE(object);
200 /* Otherwise put this object back into the cache */
208 /* Mark the object as cached */
210 ACPI_MEMSET(object, 0xCA, cache->object_size);
211 ACPI_SET_DESCRIPTOR_TYPE(object, ACPI_DESC_TYPE_CACHED);
213 /* Put the object at the head of the cache list */
216 &(((char *)object)[cache->
219 cache->list_head = object;
232 * PARAMETERS: Cache - Handle to cache object
234 * RETURN: the acquired object. NULL on error
236 * DESCRIPTION: Get an object from the specified cache. If cache is empty,
237 * the object is allocated.
244 void *object;
263 /* There is an object available, use it */
265 object = cache->list_head;
268 object)[cache->
275 "Object %p from %s cache\n", object,
285 ACPI_MEMSET(object, 0, cache->object_size);
287 /* The cache is empty, create a new object */
306 object = ACPI_ALLOCATE_ZEROED(cache->object_size);
307 if (!object) {
312 return (object);