Lines Matching refs:group

2483 	int group, v;  in pcpu_dump_alloc_info()  local
2503 for (group = 0; group < ai->nr_groups; group++) { in pcpu_dump_alloc_info()
2504 const struct pcpu_group_info *gi = &ai->groups[group]; in pcpu_dump_alloc_info()
2514 pr_cont("[%0*d] ", group_width, group); in pcpu_dump_alloc_info()
2591 int group, unit, i; in pcpu_setup_first_chunk() local
2654 for (group = 0, unit = 0; group < ai->nr_groups; group++, unit += i) { in pcpu_setup_first_chunk()
2655 const struct pcpu_group_info *gi = &ai->groups[group]; in pcpu_setup_first_chunk()
2657 group_offsets[group] = gi->base_offset; in pcpu_setup_first_chunk()
2658 group_sizes[group] = gi->nr_units * ai->unit_size; in pcpu_setup_first_chunk()
2849 int last_allocs, group, unit; in pcpu_build_alloc_info() local
2882 for (group = 0; !cpumask_empty(&mask); group++) { in pcpu_build_alloc_info()
2885 group_map[cpu] = group; in pcpu_build_alloc_info()
2886 group_cnt[group]++; in pcpu_build_alloc_info()
2893 group_map[tcpu] = group; in pcpu_build_alloc_info()
2894 group_cnt[group]++; in pcpu_build_alloc_info()
2899 nr_groups = group; in pcpu_build_alloc_info()
2914 for (group = 0; group < nr_groups; group++) { 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()
2938 for (group = 0; group < nr_groups; group++) in pcpu_build_alloc_info()
2939 nr_units += roundup(group_cnt[group], upa); in pcpu_build_alloc_info()
2946 for (group = 0; group < nr_groups; group++) { in pcpu_build_alloc_info()
2947 ai->groups[group].cpu_map = cpu_map; in pcpu_build_alloc_info()
2948 cpu_map += roundup(group_cnt[group], upa); in pcpu_build_alloc_info()
2958 for (group = 0, unit = 0; group < nr_groups; group++) { in pcpu_build_alloc_info()
2959 struct pcpu_group_info *gi = &ai->groups[group]; in pcpu_build_alloc_info()
2969 if (group_map[cpu] == group) in pcpu_build_alloc_info()
3058 int group, i, highest_group, rc = 0; in pcpu_embed_first_chunk() local
3076 for (group = 0; group < ai->nr_groups; group++) { in pcpu_embed_first_chunk()
3077 struct pcpu_group_info *gi = &ai->groups[group]; in pcpu_embed_first_chunk()
3093 areas[group] = ptr; in pcpu_embed_first_chunk()
3097 highest_group = group; in pcpu_embed_first_chunk()
3118 for (group = 0; group < ai->nr_groups; group++) { in pcpu_embed_first_chunk()
3119 struct pcpu_group_info *gi = &ai->groups[group]; in pcpu_embed_first_chunk()
3120 void *ptr = areas[group]; in pcpu_embed_first_chunk()
3135 for (group = 0; group < ai->nr_groups; group++) { in pcpu_embed_first_chunk()
3136 ai->groups[group].base_offset = areas[group] - base; in pcpu_embed_first_chunk()
3147 for (group = 0; group < ai->nr_groups; group++) in pcpu_embed_first_chunk()
3148 if (areas[group]) in pcpu_embed_first_chunk()
3149 pcpu_fc_free(areas[group], in pcpu_embed_first_chunk()
3150 ai->groups[group].nr_units * ai->unit_size); in pcpu_embed_first_chunk()