Lines Matching refs:nr_elements
42 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()
251 lc->name, lc->used, lc->nr_elements, in lc_seq_printf_stats()
257 return lc->lc_slot + (enr % lc->nr_elements); in lc_hash_slot()
267 BUG_ON(!lc->nr_elements); in __lc_find()
593 BUG_ON(i >= lc->nr_elements); in lc_element_by_index()
623 if (index < 0 || index >= lc->nr_elements) in lc_set()
653 unsigned int nr_elements = lc->nr_elements; in lc_seq_dump_details() local
658 for (i = 0; i < nr_elements; i++) { in lc_seq_dump_details()