Lines Matching refs:lru_cache

3    lru_cache.c
19 #include <linux/lru_cache.h>
23 MODULE_DESCRIPTION("lru_cache - Track sets of hot objects");
40 struct lru_cache *lc_ = (lc); \
55 int lc_try_lock(struct lru_cache *lc)
74 * Returns a pointer to a newly initialized struct lru_cache on success,
77 struct lru_cache *lc_create(const char *name, struct kmem_cache *cache,
83 struct lru_cache *lc;
150 static void lc_free_by_index(struct lru_cache *lc, unsigned i)
164 void lc_destroy(struct lru_cache *lc)
180 * It is roughly the equivalent of re-allocating a fresh lru_cache object,
183 void lc_reset(struct lru_cache *lc)
219 void lc_seq_printf_stats(struct seq_file *seq, struct lru_cache *lc)
233 static struct hlist_head *lc_hash_slot(struct lru_cache *lc, unsigned int enr)
239 static struct lc_element *__lc_find(struct lru_cache *lc, unsigned int enr,
261 * @lc: The lru_cache object
270 struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr)
277 * @lc: The lru_cache object
285 bool lc_is_used(struct lru_cache *lc, unsigned int enr)
293 * @lc: The lru_cache object
299 void lc_del(struct lru_cache *lc, struct lc_element *e)
311 static struct lc_element *lc_prepare_for_change(struct lru_cache *lc, unsigned new_number)
335 static int lc_unused_element_available(struct lru_cache *lc)
351 static struct lc_element *__lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags)
470 struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr)
490 struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr)
511 struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr)
524 void lc_committed(struct lru_cache *lc)
549 unsigned int lc_put(struct lru_cache *lc, struct lc_element *e)
569 struct lc_element *lc_element_by_index(struct lru_cache *lc, unsigned i)
586 void lc_seq_dump_details(struct seq_file *seq, struct lru_cache *lc, char *utext,