Lines Matching refs:upa
2484 int upa, apl; /* units per alloc, allocs per line */ in pcpu_dump_alloc_info() local
2495 upa = ai->alloc_size / ai->unit_size; in pcpu_dump_alloc_info()
2496 width = upa * (cpu_width + 1) + group_width + 3; in pcpu_dump_alloc_info()
2507 BUG_ON(gi->nr_units % upa); in pcpu_dump_alloc_info()
2508 for (alloc_end += gi->nr_units / upa; in pcpu_dump_alloc_info()
2516 for (unit_end += upa; unit < unit_end; unit++) in pcpu_dump_alloc_info()
2848 int upa, max_upa, best_upa; /* units_per_alloc */ in pcpu_build_alloc_info() local
2874 upa = alloc_size / min_unit_size; in pcpu_build_alloc_info()
2875 while (alloc_size % upa || (offset_in_page(alloc_size / upa))) in pcpu_build_alloc_info()
2876 upa--; in pcpu_build_alloc_info()
2877 max_upa = upa; in pcpu_build_alloc_info()
2908 for (upa = max_upa; upa; upa--) { in pcpu_build_alloc_info()
2911 if (alloc_size % upa || (offset_in_page(alloc_size / upa))) in pcpu_build_alloc_info()
2915 int this_allocs = DIV_ROUND_UP(group_cnt[group], upa); in pcpu_build_alloc_info()
2917 wasted += this_allocs * upa - group_cnt[group]; in pcpu_build_alloc_info()
2932 best_upa = upa; in pcpu_build_alloc_info()
2935 upa = best_upa; in pcpu_build_alloc_info()
2939 nr_units += roundup(group_cnt[group], upa); in pcpu_build_alloc_info()
2948 cpu_map += roundup(group_cnt[group], upa); in pcpu_build_alloc_info()
2954 ai->unit_size = alloc_size / upa; in pcpu_build_alloc_info()
2971 gi->nr_units = roundup(gi->nr_units, upa); in pcpu_build_alloc_info()
3246 int upa; in pcpu_page_first_chunk() local
3255 upa = ai->alloc_size/ai->unit_size; in pcpu_page_first_chunk()
3256 nr_g0_units = roundup(num_possible_cpus(), upa); in pcpu_page_first_chunk()