Lines Matching refs:lc_element

41 	struct lc_element *e_ = (e);	\
44 BUG_ON(lc_->lc_element[i] != e_); } while (0)
93 struct lc_element **element = NULL; in lc_create()
95 struct lc_element *e; in lc_create()
111 element = kcalloc(e_count, sizeof(struct lc_element *), GFP_KERNEL); in lc_create()
130 lc->lc_element = element; in lc_create()
163 void *p = lc->lc_element[i]; in lc_free_by_index()
182 kfree(lc->lc_element); in lc_destroy()
213 struct lc_element *e = lc->lc_element[i]; in lc_reset()
250 static struct lc_element *__lc_find(struct lru_cache *lc, unsigned int enr, in __lc_find()
253 struct lc_element *e; in __lc_find()
281 struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr) in lc_find()
298 struct lc_element *e = __lc_find(lc, enr, 1); in lc_is_used()
310 void lc_del(struct lru_cache *lc, struct lc_element *e) in lc_del()
322 static struct lc_element *lc_prepare_for_change(struct lru_cache *lc, unsigned new_number) in lc_prepare_for_change()
325 struct lc_element *e; in lc_prepare_for_change()
334 e = list_entry(n, struct lc_element, list); in lc_prepare_for_change()
362 static struct lc_element *__lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags) in __lc_get()
364 struct lc_element *e; in __lc_get()
481 struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr) in lc_get()
501 struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr) in lc_get_cumulative()
522 struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr) in lc_try_get()
537 struct lc_element *e, *tmp; in lc_committed()
560 unsigned int lc_put(struct lru_cache *lc, struct lc_element *e) in lc_put()
580 struct lc_element *lc_element_by_index(struct lru_cache *lc, unsigned i) in lc_element_by_index()
583 BUG_ON(lc->lc_element[i] == NULL); in lc_element_by_index()
584 BUG_ON(lc->lc_element[i]->lc_index != i); in lc_element_by_index()
585 return lc->lc_element[i]; in lc_element_by_index()
593 unsigned int lc_index_of(struct lru_cache *lc, struct lc_element *e) in lc_index_of()
609 struct lc_element *e; in lc_set()
640 void (*detail) (struct seq_file *, struct lc_element *)) in lc_seq_dump_details() argument
643 struct lc_element *e; in lc_seq_dump_details()