Home
last modified time | relevance | path

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

/lib/
Dlru_cache.c42 BUG_ON(!lc->nr_elements); \
55 BUG_ON(i >= lc_->nr_elements); \
138 lc->nr_elements = e_count; in lc_create()
191 for (i = 0; i < lc->nr_elements; i++) in lc_destroy()
221 memset(lc->lc_slot, 0, sizeof(struct hlist_head) * lc->nr_elements); in lc_reset()
223 for (i = 0; i < lc->nr_elements; i++) { in lc_reset()
252 lc->name, lc->used, lc->nr_elements, in lc_seq_printf_stats()
258 return lc->lc_slot + (enr % lc->nr_elements); in lc_hash_slot()
268 BUG_ON(!lc->nr_elements); in __lc_find()
594 BUG_ON(i >= lc->nr_elements); in lc_element_by_index()
[all …]
Dflex_array.c269 unsigned int nr_elements, gfp_t flags) in flex_array_prealloc() argument
277 if (!start && !nr_elements) in flex_array_prealloc()
281 if (!nr_elements) in flex_array_prealloc()
284 end = start + nr_elements - 1; in flex_array_prealloc()