Lines Matching refs:lru_cache
176 struct lru_cache { struct
251 extern struct lru_cache *lc_create(const char *name, struct kmem_cache *cache,
254 extern void lc_reset(struct lru_cache *lc);
255 extern void lc_destroy(struct lru_cache *lc);
256 extern void lc_set(struct lru_cache *lc, unsigned int enr, int index);
257 extern void lc_del(struct lru_cache *lc, struct lc_element *element);
259 extern struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr);
260 extern struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr);
261 extern struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr);
262 extern struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr);
263 extern unsigned int lc_put(struct lru_cache *lc, struct lc_element *e);
264 extern void lc_committed(struct lru_cache *lc);
267 extern size_t lc_seq_printf_stats(struct seq_file *seq, struct lru_cache *lc);
269 extern void lc_seq_dump_details(struct seq_file *seq, struct lru_cache *lc, char *utext,
280 static inline int lc_try_lock_for_transaction(struct lru_cache *lc) in lc_try_lock_for_transaction()
294 extern int lc_try_lock(struct lru_cache *lc);
300 static inline void lc_unlock(struct lru_cache *lc) in lc_unlock()
306 extern bool lc_is_used(struct lru_cache *lc, unsigned int enr);
311 extern struct lc_element *lc_element_by_index(struct lru_cache *lc, unsigned i);
312 extern unsigned int lc_index_of(struct lru_cache *lc, struct lc_element *e);