Home
last modified time | relevance | path

Searched refs:enr (Results 1 – 1 of 1) sorted by relevance

/lib/
Dlru_cache.c243 static struct hlist_head *lc_hash_slot(struct lru_cache *lc, unsigned int enr) in lc_hash_slot() argument
245 return lc->lc_slot + (enr % lc->nr_elements); in lc_hash_slot()
249 static struct lc_element *__lc_find(struct lru_cache *lc, unsigned int enr, in __lc_find() argument
256 hlist_for_each_entry(e, lc_hash_slot(lc, enr), colision) { in __lc_find()
260 if (e->lc_new_number != enr) in __lc_find()
280 struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr) in lc_find() argument
282 return __lc_find(lc, enr, 0); in lc_find()
295 bool lc_is_used(struct lru_cache *lc, unsigned int enr) in lc_is_used() argument
297 struct lc_element *e = __lc_find(lc, enr, 1); in lc_is_used()
361 static struct lc_element *__lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags) in __lc_get() argument
[all …]