Lines Matching refs:lru_cache
164 struct lru_cache { struct
238 extern struct lru_cache *lc_create(const char *name, struct kmem_cache *cache,
241 extern void lc_reset(struct lru_cache *lc);
242 extern void lc_destroy(struct lru_cache *lc);
243 extern void lc_del(struct lru_cache *lc, struct lc_element *element);
245 extern struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr);
246 extern struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr);
247 extern struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr);
248 extern struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr);
249 extern unsigned int lc_put(struct lru_cache *lc, struct lc_element *e);
250 extern void lc_committed(struct lru_cache *lc);
253 extern void lc_seq_printf_stats(struct seq_file *seq, struct lru_cache *lc);
255 extern void lc_seq_dump_details(struct seq_file *seq, struct lru_cache *lc, char *utext,
266 static inline int lc_try_lock_for_transaction(struct lru_cache *lc) in lc_try_lock_for_transaction()
280 extern int lc_try_lock(struct lru_cache *lc);
286 static inline void lc_unlock(struct lru_cache *lc) in lc_unlock()
292 extern bool lc_is_used(struct lru_cache *lc, unsigned int enr);
297 extern struct lc_element *lc_element_by_index(struct lru_cache *lc, unsigned i);