Lines Matching refs:upa

2490 	int upa, apl;	/* units per alloc, allocs per line */  in pcpu_dump_alloc_info()  local
2501 upa = ai->alloc_size / ai->unit_size; in pcpu_dump_alloc_info()
2502 width = upa * (cpu_width + 1) + group_width + 3; in pcpu_dump_alloc_info()
2513 BUG_ON(gi->nr_units % upa); in pcpu_dump_alloc_info()
2514 for (alloc_end += gi->nr_units / upa; in pcpu_dump_alloc_info()
2522 for (unit_end += upa; unit < unit_end; unit++) in pcpu_dump_alloc_info()
2863 int upa, max_upa, best_upa; /* units_per_alloc */ in pcpu_build_alloc_info() local
2889 upa = alloc_size / min_unit_size; in pcpu_build_alloc_info()
2890 while (alloc_size % upa || (offset_in_page(alloc_size / upa))) in pcpu_build_alloc_info()
2891 upa--; in pcpu_build_alloc_info()
2892 max_upa = upa; in pcpu_build_alloc_info()
2923 for (upa = max_upa; upa; upa--) { in pcpu_build_alloc_info()
2926 if (alloc_size % upa || (offset_in_page(alloc_size / upa))) in pcpu_build_alloc_info()
2930 int this_allocs = DIV_ROUND_UP(group_cnt[group], upa); in pcpu_build_alloc_info()
2932 wasted += this_allocs * upa - group_cnt[group]; in pcpu_build_alloc_info()
2947 best_upa = upa; in pcpu_build_alloc_info()
2950 upa = best_upa; in pcpu_build_alloc_info()
2954 nr_units += roundup(group_cnt[group], upa); in pcpu_build_alloc_info()
2963 cpu_map += roundup(group_cnt[group], upa); in pcpu_build_alloc_info()
2969 ai->unit_size = alloc_size / upa; in pcpu_build_alloc_info()
2986 gi->nr_units = roundup(gi->nr_units, upa); in pcpu_build_alloc_info()
3267 int upa; in pcpu_page_first_chunk() local
3276 upa = ai->alloc_size/ai->unit_size; in pcpu_page_first_chunk()
3277 nr_g0_units = roundup(num_possible_cpus(), upa); in pcpu_page_first_chunk()