Lines Matching refs:nr_elements
30 BUG_ON(!lc->nr_elements); \
43 BUG_ON(i >= lc_->nr_elements); \
116 lc->nr_elements = e_count; in lc_create()
169 for (i = 0; i < lc->nr_elements; i++) in lc_destroy()
199 memset(lc->lc_slot, 0, sizeof(struct hlist_head) * lc->nr_elements); in lc_reset()
201 for (i = 0; i < lc->nr_elements; i++) { in lc_reset()
229 lc->name, lc->used, lc->nr_elements, in lc_seq_printf_stats()
235 return lc->lc_slot + (enr % lc->nr_elements); in lc_hash_slot()
245 BUG_ON(!lc->nr_elements); in __lc_find()
571 BUG_ON(i >= lc->nr_elements); in lc_element_by_index()
589 unsigned int nr_elements = lc->nr_elements; in lc_seq_dump_details() local
594 for (i = 0; i < nr_elements; i++) { in lc_seq_dump_details()