Lines Matching defs:cache
54 * Free as many cache buffers from the list head as possible.
57 release_expired_buffers_locked(struct list_head *cache,
63 curr = cache->next;
65 while (curr != cache) {
79 * Add a buffer to the cache. This is typically done when the buffer is
86 struct list_head *cache = &mgr->buckets[entry->bucket_index];
107 list_addtail(&entry->head, cache);
143 * Find a compatible buffer in the cache, return it, and remove it
144 * from the cache.
158 struct list_head *cache = &mgr->buckets[bucket_index];
163 cur = cache->next;
168 while (cur != cache) {
177 /* This buffer (and all hereafter) are still hot in cache */
190 while (cur != cache) {
224 * Empty the cache. Useful when there is not enough memory.
235 struct list_head *cache = &mgr->buckets[i];
237 curr = cache->next;
239 while (curr != cache) {
264 * @param mgr The cache buffer manager
268 * @param usecs Unused buffers may be released from the cache after this
271 * the requested size as cache hits.
274 * @param maximum_cache_size Maximum size of all unused buffers the cache can