Lines Matching refs:nr_elts
113 unsigned int nr_elts; /* excluding sentinel entries */ member
119 l->nr_elts = 0; in l_init()
161 l->nr_elts++; in l_add_head()
177 l->nr_elts++; in l_add_tail()
194 l->nr_elts++; in l_add_before()
214 l->nr_elts--; in l_del()
256 unsigned int nr_elts; member
275 q->nr_elts = 0; in q_init()
290 return q->nr_elts; in q_size()
301 q->nr_elts++; in q_push()
311 q->nr_elts++; in q_push_front()
321 q->nr_elts++; in q_push_before()
330 q->nr_elts--; in q_del()
387 static void q_set_targets_subrange_(struct queue *q, unsigned int nr_elts, in q_set_targets_subrange_() argument
395 entries_per_level = safe_div(nr_elts, nr_levels); in q_set_targets_subrange_()
396 remainder = safe_mod(nr_elts, nr_levels); in q_set_targets_subrange_()
409 if (q->last_target_nr_elts == q->nr_elts) in q_set_targets()
412 q->last_target_nr_elts = q->nr_elts; in q_set_targets()
415 q_set_targets_subrange_(q, q->nr_elts, 0, q->nr_levels); in q_set_targets()
421 if (q->nr_in_top_levels < q->nr_elts) in q_set_targets()
422 q_set_targets_subrange_(q, q->nr_elts - q->nr_in_top_levels, in q_set_targets()
444 while (l->nr_elts < target) { in q_redistribute()
459 while (l->nr_elts > target) { in q_redistribute()