Lines Matching refs:nr_elements
30 BUG_ON(!lc->nr_elements); \
43 BUG_ON(i >= lc_->nr_elements); \
126 lc->nr_elements = e_count; in lc_create()
179 for (i = 0; i < lc->nr_elements; i++) in lc_destroy()
209 memset(lc->lc_slot, 0, sizeof(struct hlist_head) * lc->nr_elements); in lc_reset()
211 for (i = 0; i < lc->nr_elements; i++) { in lc_reset()
239 lc->name, lc->used, lc->nr_elements, in lc_seq_printf_stats()
245 return lc->lc_slot + (enr % lc->nr_elements); in lc_hash_slot()
255 BUG_ON(!lc->nr_elements); in __lc_find()
581 BUG_ON(i >= lc->nr_elements); in lc_element_by_index()
611 if (index < 0 || index >= lc->nr_elements) in lc_set()
641 unsigned int nr_elements = lc->nr_elements; in lc_seq_dump_details() local
646 for (i = 0; i < nr_elements; i++) { in lc_seq_dump_details()