Lines Matching refs:lc

242 extern void lc_reset(struct lru_cache *lc);
243 extern void lc_destroy(struct lru_cache *lc);
244 extern void lc_set(struct lru_cache *lc, unsigned int enr, int index);
245 extern void lc_del(struct lru_cache *lc, struct lc_element *element);
247 extern struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr);
248 extern struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr);
249 extern struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr);
250 extern struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr);
251 extern unsigned int lc_put(struct lru_cache *lc, struct lc_element *e);
252 extern void lc_committed(struct lru_cache *lc);
255 extern void lc_seq_printf_stats(struct seq_file *seq, struct lru_cache *lc);
257 extern void lc_seq_dump_details(struct seq_file *seq, struct lru_cache *lc, char *utext,
268 static inline int lc_try_lock_for_transaction(struct lru_cache *lc) in lc_try_lock_for_transaction() argument
270 return !test_and_set_bit(__LC_LOCKED, &lc->flags); in lc_try_lock_for_transaction()
282 extern int lc_try_lock(struct lru_cache *lc);
288 static inline void lc_unlock(struct lru_cache *lc) in lc_unlock() argument
290 clear_bit(__LC_DIRTY, &lc->flags); in lc_unlock()
291 clear_bit_unlock(__LC_LOCKED, &lc->flags); in lc_unlock()
294 extern bool lc_is_used(struct lru_cache *lc, unsigned int enr);
299 extern struct lc_element *lc_element_by_index(struct lru_cache *lc, unsigned i);
300 extern unsigned int lc_index_of(struct lru_cache *lc, struct lc_element *e);