Lines Matching refs:lc_element

53 	struct lc_element *e_ = (e);	\
56 BUG_ON(lc_->lc_element[i] != e_); } while (0)
104 struct lc_element **element = NULL; in lc_create()
106 struct lc_element *e; in lc_create()
122 element = kcalloc(e_count, sizeof(struct lc_element *), GFP_KERNEL); in lc_create()
141 lc->lc_element = element; in lc_create()
174 void *p = lc->lc_element[i]; in lc_free_by_index()
193 kfree(lc->lc_element); in lc_destroy()
224 struct lc_element *e = lc->lc_element[i]; in lc_reset()
261 static struct lc_element *__lc_find(struct lru_cache *lc, unsigned int enr, in __lc_find()
264 struct lc_element *e; in __lc_find()
292 struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr) in lc_find()
309 struct lc_element *e = __lc_find(lc, enr, 1); in lc_is_used()
321 void lc_del(struct lru_cache *lc, struct lc_element *e) in lc_del()
333 static struct lc_element *lc_prepare_for_change(struct lru_cache *lc, unsigned new_number) in lc_prepare_for_change()
336 struct lc_element *e; in lc_prepare_for_change()
345 e = list_entry(n, struct lc_element, list); in lc_prepare_for_change()
373 static struct lc_element *__lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags) in __lc_get()
375 struct lc_element *e; in __lc_get()
492 struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr) in lc_get()
512 struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr) in lc_get_cumulative()
533 struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr) in lc_try_get()
548 struct lc_element *e, *tmp; in lc_committed()
571 unsigned int lc_put(struct lru_cache *lc, struct lc_element *e) in lc_put()
591 struct lc_element *lc_element_by_index(struct lru_cache *lc, unsigned i) in lc_element_by_index()
594 BUG_ON(lc->lc_element[i] == NULL); in lc_element_by_index()
595 BUG_ON(lc->lc_element[i]->lc_index != i); in lc_element_by_index()
596 return lc->lc_element[i]; in lc_element_by_index()
604 unsigned int lc_index_of(struct lru_cache *lc, struct lc_element *e) in lc_index_of()
620 struct lc_element *e; in lc_set()
651 void (*detail) (struct seq_file *, struct lc_element *)) in lc_seq_dump_details() argument
654 struct lc_element *e; in lc_seq_dump_details()