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 = kzalloc(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()
263 static struct lc_element *__lc_find(struct lru_cache *lc, unsigned int enr, in __lc_find()
266 struct lc_element *e; in __lc_find()
294 struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr) in lc_find()
311 struct lc_element *e = __lc_find(lc, enr, 1); in lc_is_used()
323 void lc_del(struct lru_cache *lc, struct lc_element *e) in lc_del()
335 static struct lc_element *lc_prepare_for_change(struct lru_cache *lc, unsigned new_number) in lc_prepare_for_change()
338 struct lc_element *e; in lc_prepare_for_change()
347 e = list_entry(n, struct lc_element, list); in lc_prepare_for_change()
375 static struct lc_element *__lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags) in __lc_get()
377 struct lc_element *e; in __lc_get()
494 struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr) in lc_get()
514 struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr) in lc_get_cumulative()
535 struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr) in lc_try_get()
550 struct lc_element *e, *tmp; in lc_committed()
573 unsigned int lc_put(struct lru_cache *lc, struct lc_element *e) in lc_put()
593 struct lc_element *lc_element_by_index(struct lru_cache *lc, unsigned i) in lc_element_by_index()
596 BUG_ON(lc->lc_element[i] == NULL); in lc_element_by_index()
597 BUG_ON(lc->lc_element[i]->lc_index != i); in lc_element_by_index()
598 return lc->lc_element[i]; in lc_element_by_index()
606 unsigned int lc_index_of(struct lru_cache *lc, struct lc_element *e) in lc_index_of()
622 struct lc_element *e; in lc_set()
653 void (*detail) (struct seq_file *, struct lc_element *)) in lc_seq_dump_details() argument
656 struct lc_element *e; in lc_seq_dump_details()