Lines Matching refs:target_left
554 unsigned target_left = total / 2; in redistribute2() local
555 unsigned target_right = total - target_left; in redistribute2()
557 if (nr_left < target_left) { in redistribute2()
558 unsigned delta = target_left - nr_left; in redistribute2()
561 } else if (nr_left > target_left) { in redistribute2()
562 unsigned delta = nr_left - target_left; in redistribute2()
565 copy_entries(right, 0, left, target_left, delta); in redistribute2()
568 left->header.nr_entries = cpu_to_le32(target_left); in redistribute2()
582 unsigned total, target_left, target_center, target_right; in redistribute3() local
587 target_left = total / 3; in redistribute3()
588 target_center = (total - target_left) / 2; in redistribute3()
589 target_right = (total - target_left - target_center); in redistribute3()
591 if (nr_left < target_left) { in redistribute3()
592 unsigned left_short = target_left - nr_left; in redistribute3()
597 } else if (nr_left < (target_left + target_center)) { in redistribute3()
598 unsigned left_to_center = nr_left - target_left; in redistribute3()
599 copy_entries(center, 0, left, target_left, left_to_center); in redistribute3()
607 copy_entries(center, 0, left, target_left, nr_left - target_left); in redistribute3()
610 left->header.nr_entries = cpu_to_le32(target_left); in redistribute3()