Lines Matching refs:lc_element
41 struct lc_element *e_ = (e); \
44 BUG_ON(lc_->lc_element[i] != e_); } while (0)
92 struct lc_element **element = NULL; in lc_create()
94 struct lc_element *e; in lc_create()
110 element = kcalloc(e_count, sizeof(struct lc_element *), GFP_KERNEL); in lc_create()
129 lc->lc_element = element; in lc_create()
162 void *p = lc->lc_element[i]; in lc_free_by_index()
181 kfree(lc->lc_element); in lc_destroy()
212 struct lc_element *e = lc->lc_element[i]; in lc_reset()
249 static struct lc_element *__lc_find(struct lru_cache *lc, unsigned int enr, in __lc_find()
252 struct lc_element *e; in __lc_find()
280 struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr) in lc_find()
297 struct lc_element *e = __lc_find(lc, enr, 1); in lc_is_used()
309 void lc_del(struct lru_cache *lc, struct lc_element *e) in lc_del()
321 static struct lc_element *lc_prepare_for_change(struct lru_cache *lc, unsigned new_number) in lc_prepare_for_change()
324 struct lc_element *e; in lc_prepare_for_change()
333 e = list_entry(n, struct lc_element, list); in lc_prepare_for_change()
361 static struct lc_element *__lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags) in __lc_get()
363 struct lc_element *e; in __lc_get()
480 struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr) in lc_get()
500 struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr) in lc_get_cumulative()
521 struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr) in lc_try_get()
536 struct lc_element *e, *tmp; in lc_committed()
559 unsigned int lc_put(struct lru_cache *lc, struct lc_element *e) in lc_put()
579 struct lc_element *lc_element_by_index(struct lru_cache *lc, unsigned i) in lc_element_by_index()
582 BUG_ON(lc->lc_element[i] == NULL); in lc_element_by_index()
583 BUG_ON(lc->lc_element[i]->lc_index != i); in lc_element_by_index()
584 return lc->lc_element[i]; in lc_element_by_index()
592 unsigned int lc_index_of(struct lru_cache *lc, struct lc_element *e) in lc_index_of()
608 struct lc_element *e; in lc_set()
639 void (*detail) (struct seq_file *, struct lc_element *)) in lc_seq_dump_details() argument
642 struct lc_element *e; in lc_seq_dump_details()