Lines Matching refs:nr_groups
2250 struct pcpu_alloc_info * __init pcpu_alloc_alloc_info(int nr_groups, in pcpu_alloc_alloc_info() argument
2258 base_size = ALIGN(struct_size(ai, groups, nr_groups), in pcpu_alloc_alloc_info()
2273 ai->nr_groups = nr_groups; in pcpu_alloc_alloc_info()
2306 v = ai->nr_groups; in pcpu_dump_alloc_info()
2323 for (group = 0; group < ai->nr_groups; group++) { in pcpu_dump_alloc_info()
2429 PCPU_SETUP_BUG_ON(ai->nr_groups <= 0); in pcpu_setup_first_chunk()
2448 alloc_size = ai->nr_groups * sizeof(group_offsets[0]); in pcpu_setup_first_chunk()
2454 alloc_size = ai->nr_groups * sizeof(group_sizes[0]); in pcpu_setup_first_chunk()
2478 for (group = 0, unit = 0; group < ai->nr_groups; group++, unit += i) { in pcpu_setup_first_chunk()
2514 pcpu_nr_groups = ai->nr_groups; in pcpu_setup_first_chunk()
2673 int nr_groups = 1, nr_units = 0; in pcpu_build_alloc_info() local
2716 nr_groups = max(nr_groups, group + 1); in pcpu_build_alloc_info()
2736 for (group = 0; group < nr_groups; group++) { in pcpu_build_alloc_info()
2759 for (group = 0; group < nr_groups; group++) in pcpu_build_alloc_info()
2762 ai = pcpu_alloc_alloc_info(nr_groups, nr_units); in pcpu_build_alloc_info()
2767 for (group = 0; group < nr_groups; group++) { in pcpu_build_alloc_info()
2779 for (group = 0, unit = 0; group < nr_groups; group++) { in pcpu_build_alloc_info()
2853 areas_size = PFN_ALIGN(ai->nr_groups * sizeof(void *)); in pcpu_embed_first_chunk()
2863 for (group = 0; group < ai->nr_groups; group++) { in pcpu_embed_first_chunk()
2905 for (group = 0; group < ai->nr_groups; group++) { in pcpu_embed_first_chunk()
2922 for (group = 0; group < ai->nr_groups; group++) { in pcpu_embed_first_chunk()
2934 for (group = 0; group < ai->nr_groups; group++) in pcpu_embed_first_chunk()
2983 BUG_ON(ai->nr_groups != 1); in pcpu_page_first_chunk()