Lines Matching refs:upa
2456 int upa, apl; /* units per alloc, allocs per line */ in pcpu_dump_alloc_info() local
2467 upa = ai->alloc_size / ai->unit_size; in pcpu_dump_alloc_info()
2468 width = upa * (cpu_width + 1) + group_width + 3; in pcpu_dump_alloc_info()
2479 BUG_ON(gi->nr_units % upa); in pcpu_dump_alloc_info()
2480 for (alloc_end += gi->nr_units / upa; in pcpu_dump_alloc_info()
2488 for (unit_end += upa; unit < unit_end; unit++) in pcpu_dump_alloc_info()
2820 int upa, max_upa, best_upa; /* units_per_alloc */ in pcpu_build_alloc_info() local
2846 upa = alloc_size / min_unit_size; in pcpu_build_alloc_info()
2847 while (alloc_size % upa || (offset_in_page(alloc_size / upa))) in pcpu_build_alloc_info()
2848 upa--; in pcpu_build_alloc_info()
2849 max_upa = upa; in pcpu_build_alloc_info()
2880 for (upa = max_upa; upa; upa--) { in pcpu_build_alloc_info()
2883 if (alloc_size % upa || (offset_in_page(alloc_size / upa))) in pcpu_build_alloc_info()
2887 int this_allocs = DIV_ROUND_UP(group_cnt[group], upa); in pcpu_build_alloc_info()
2889 wasted += this_allocs * upa - group_cnt[group]; in pcpu_build_alloc_info()
2904 best_upa = upa; in pcpu_build_alloc_info()
2907 upa = best_upa; in pcpu_build_alloc_info()
2911 nr_units += roundup(group_cnt[group], upa); in pcpu_build_alloc_info()
2920 cpu_map += roundup(group_cnt[group], upa); in pcpu_build_alloc_info()
2926 ai->unit_size = alloc_size / upa; in pcpu_build_alloc_info()
2943 gi->nr_units = roundup(gi->nr_units, upa); in pcpu_build_alloc_info()
3218 int upa; in pcpu_page_first_chunk() local
3227 upa = ai->alloc_size/ai->unit_size; in pcpu_page_first_chunk()
3228 nr_g0_units = roundup(num_possible_cpus(), upa); in pcpu_page_first_chunk()