Lines Matching refs:nr_elts
110 unsigned nr_elts; /* excluding sentinel entries */ member
116 l->nr_elts = 0; in l_init()
158 l->nr_elts++; in l_add_head()
174 l->nr_elts++; in l_add_tail()
191 l->nr_elts++; in l_add_before()
211 l->nr_elts--; in l_del()
240 unsigned nr_elts; member
259 q->nr_elts = 0; in q_init()
274 return q->nr_elts; in q_size()
283 q->nr_elts++; in q_push()
291 q->nr_elts++; in q_push_before()
300 q->nr_elts--; in q_del()
370 static void q_set_targets_subrange_(struct queue *q, unsigned nr_elts, unsigned lbegin, unsigned le… in q_set_targets_subrange_() argument
377 entries_per_level = safe_div(nr_elts, nr_levels); in q_set_targets_subrange_()
378 remainder = safe_mod(nr_elts, nr_levels); in q_set_targets_subrange_()
391 if (q->last_target_nr_elts == q->nr_elts) in q_set_targets()
394 q->last_target_nr_elts = q->nr_elts; in q_set_targets()
397 q_set_targets_subrange_(q, q->nr_elts, 0, q->nr_levels); in q_set_targets()
403 if (q->nr_in_top_levels < q->nr_elts) in q_set_targets()
404 q_set_targets_subrange_(q, q->nr_elts - q->nr_in_top_levels, in q_set_targets()
426 while (l->nr_elts < target) { in q_redistribute()
441 while (l->nr_elts > target) { in q_redistribute()