Lines Matching refs:lc_element

41 	struct lc_element *e_ = (e);	\
44 BUG_ON(lc_->lc_element[i] != e_); } while (0)
82 struct lc_element **element = NULL; in lc_create()
84 struct lc_element *e; in lc_create()
100 element = kcalloc(e_count, sizeof(struct lc_element *), GFP_KERNEL); in lc_create()
119 lc->lc_element = element; in lc_create()
152 void *p = lc->lc_element[i]; in lc_free_by_index()
171 kfree(lc->lc_element); in lc_destroy()
202 struct lc_element *e = lc->lc_element[i]; in lc_reset()
239 static struct lc_element *__lc_find(struct lru_cache *lc, unsigned int enr, in __lc_find()
242 struct lc_element *e; in __lc_find()
270 struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr) in lc_find()
287 struct lc_element *e = __lc_find(lc, enr, 1); in lc_is_used()
299 void lc_del(struct lru_cache *lc, struct lc_element *e) in lc_del()
311 static struct lc_element *lc_prepare_for_change(struct lru_cache *lc, unsigned new_number) in lc_prepare_for_change()
314 struct lc_element *e; in lc_prepare_for_change()
323 e = list_entry(n, struct lc_element, list); in lc_prepare_for_change()
351 static struct lc_element *__lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags) in __lc_get()
353 struct lc_element *e; in __lc_get()
470 struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr) in lc_get()
490 struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr) in lc_get_cumulative()
511 struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr) in lc_try_get()
526 struct lc_element *e, *tmp; in lc_committed()
549 unsigned int lc_put(struct lru_cache *lc, struct lc_element *e) in lc_put()
569 struct lc_element *lc_element_by_index(struct lru_cache *lc, unsigned i) in lc_element_by_index()
572 BUG_ON(lc->lc_element[i] == NULL); in lc_element_by_index()
573 BUG_ON(lc->lc_element[i]->lc_index != i); in lc_element_by_index()
574 return lc->lc_element[i]; in lc_element_by_index()
587 void (*detail) (struct seq_file *, struct lc_element *)) in lc_seq_dump_details() argument
590 struct lc_element *e; in lc_seq_dump_details()