Lines Matching refs:lru_cache
52 struct lru_cache *lc_ = (lc); \
67 int lc_try_lock(struct lru_cache *lc) in lc_try_lock()
99 struct lru_cache *lc_create(const char *name, struct kmem_cache *cache, in lc_create()
105 struct lru_cache *lc; in lc_create()
172 static void lc_free_by_index(struct lru_cache *lc, unsigned i) in lc_free_by_index()
186 void lc_destroy(struct lru_cache *lc) in lc_destroy()
205 void lc_reset(struct lru_cache *lc) in lc_reset()
241 void lc_seq_printf_stats(struct seq_file *seq, struct lru_cache *lc) in lc_seq_printf_stats()
255 static struct hlist_head *lc_hash_slot(struct lru_cache *lc, unsigned int enr) in lc_hash_slot()
261 static struct lc_element *__lc_find(struct lru_cache *lc, unsigned int enr, in __lc_find()
292 struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr) in lc_find()
307 bool lc_is_used(struct lru_cache *lc, unsigned int enr) in lc_is_used()
321 void lc_del(struct lru_cache *lc, struct lc_element *e) in lc_del()
333 static struct lc_element *lc_prepare_for_change(struct lru_cache *lc, unsigned new_number) in lc_prepare_for_change()
357 static int lc_unused_element_available(struct lru_cache *lc) in lc_unused_element_available()
373 static struct lc_element *__lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags) in __lc_get()
492 struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr) in lc_get()
512 struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr) in lc_get_cumulative()
533 struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr) in lc_try_get()
546 void lc_committed(struct lru_cache *lc) in lc_committed()
571 unsigned int lc_put(struct lru_cache *lc, struct lc_element *e) in lc_put()
591 struct lc_element *lc_element_by_index(struct lru_cache *lc, unsigned i) in lc_element_by_index()
604 unsigned int lc_index_of(struct lru_cache *lc, struct lc_element *e) in lc_index_of()
618 void lc_set(struct lru_cache *lc, unsigned int enr, int index) in lc_set()
650 void lc_seq_dump_details(struct seq_file *seq, struct lru_cache *lc, char *utext, in lc_seq_dump_details()