Searched refs:lc_element (Results 1 – 2 of 2) sorted by relevance
/linux-4.19.296/include/linux/ |
D | lru_cache.h | 159 struct lc_element { struct 219 struct lc_element **lc_element; member 257 extern void lc_del(struct lru_cache *lc, struct lc_element *element); 259 extern struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr); 260 extern struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr); 261 extern struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr); 262 extern struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr); 263 extern unsigned int lc_put(struct lru_cache *lc, struct lc_element *e); 270 void (*detail) (struct seq_file *, struct lc_element *)); 311 extern struct lc_element *lc_element_by_index(struct lru_cache *lc, unsigned i); [all …]
|
/linux-4.19.296/lib/ |
D | lru_cache.c | 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() [all …]
|