Lines Matching refs:nr_elts
112 unsigned nr_elts; /* excluding sentinel entries */ member
118 l->nr_elts = 0; in l_init()
160 l->nr_elts++; in l_add_head()
176 l->nr_elts++; in l_add_tail()
193 l->nr_elts++; in l_add_before()
213 l->nr_elts--; in l_del()
255 unsigned nr_elts; member
274 q->nr_elts = 0; in q_init()
289 return q->nr_elts; in q_size()
300 q->nr_elts++; in q_push()
310 q->nr_elts++; in q_push_front()
320 q->nr_elts++; in q_push_before()
329 q->nr_elts--; in q_del()
386 static void q_set_targets_subrange_(struct queue *q, unsigned nr_elts, unsigned lbegin, unsigned le… in q_set_targets_subrange_() argument
393 entries_per_level = safe_div(nr_elts, nr_levels); in q_set_targets_subrange_()
394 remainder = safe_mod(nr_elts, nr_levels); in q_set_targets_subrange_()
407 if (q->last_target_nr_elts == q->nr_elts) in q_set_targets()
410 q->last_target_nr_elts = q->nr_elts; in q_set_targets()
413 q_set_targets_subrange_(q, q->nr_elts, 0, q->nr_levels); in q_set_targets()
419 if (q->nr_in_top_levels < q->nr_elts) in q_set_targets()
420 q_set_targets_subrange_(q, q->nr_elts - q->nr_in_top_levels, in q_set_targets()
442 while (l->nr_elts < target) { in q_redistribute()
457 while (l->nr_elts > target) { in q_redistribute()