Lines Matching defs:lc
51 #define PARANOIA_LC_ELEMENT(lc, e) do { \ argument
73 struct lru_cache *lc; in lc_create() local
138 void lc_free_by_index(struct lru_cache *lc, unsigned i) in lc_free_by_index()
152 void lc_destroy(struct lru_cache *lc) in lc_destroy()
171 void lc_reset(struct lru_cache *lc) in lc_reset()
206 size_t lc_seq_printf_stats(struct seq_file *seq, struct lru_cache *lc) in lc_seq_printf_stats()
221 static struct hlist_head *lc_hash_slot(struct lru_cache *lc, unsigned int enr) in lc_hash_slot()
236 struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr) in lc_find()
251 static struct lc_element *lc_evict(struct lru_cache *lc) in lc_evict()
277 void lc_del(struct lru_cache *lc, struct lc_element *e) in lc_del()
289 static struct lc_element *lc_get_unused_element(struct lru_cache *lc) in lc_get_unused_element()
301 static int lc_unused_element_available(struct lru_cache *lc) in lc_unused_element_available()
349 struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr) in lc_get()
405 struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr) in lc_try_get()
430 void lc_changed(struct lru_cache *lc, struct lc_element *e) in lc_changed()
456 unsigned int lc_put(struct lru_cache *lc, struct lc_element *e) in lc_put()
477 struct lc_element *lc_element_by_index(struct lru_cache *lc, unsigned i) in lc_element_by_index()
490 unsigned int lc_index_of(struct lru_cache *lc, struct lc_element *e) in lc_index_of()
504 void lc_set(struct lru_cache *lc, unsigned int enr, int index) in lc_set()
527 void lc_seq_dump_details(struct seq_file *seq, struct lru_cache *lc, char *utext, in lc_seq_dump_details()