Lines Matching refs:gi
2476 const struct pcpu_group_info *gi = &ai->groups[group]; in pcpu_dump_alloc_info() local
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()
2489 if (gi->cpu_map[unit] != NR_CPUS) in pcpu_dump_alloc_info()
2491 cpu_width, gi->cpu_map[unit]); in pcpu_dump_alloc_info()
2627 const struct pcpu_group_info *gi = &ai->groups[group]; in pcpu_setup_first_chunk() local
2629 group_offsets[group] = gi->base_offset; in pcpu_setup_first_chunk()
2630 group_sizes[group] = gi->nr_units * ai->unit_size; in pcpu_setup_first_chunk()
2632 for (i = 0; i < gi->nr_units; i++) { in pcpu_setup_first_chunk()
2633 cpu = gi->cpu_map[i]; in pcpu_setup_first_chunk()
2642 unit_off[cpu] = gi->base_offset + i * ai->unit_size; in pcpu_setup_first_chunk()
2931 struct pcpu_group_info *gi = &ai->groups[group]; in pcpu_build_alloc_info() local
2938 gi->base_offset = unit * ai->unit_size; in pcpu_build_alloc_info()
2942 gi->cpu_map[gi->nr_units++] = cpu; in pcpu_build_alloc_info()
2943 gi->nr_units = roundup(gi->nr_units, upa); in pcpu_build_alloc_info()
2944 unit += gi->nr_units; in pcpu_build_alloc_info()
3049 struct pcpu_group_info *gi = &ai->groups[group]; in pcpu_embed_first_chunk() local
3053 for (i = 0; i < gi->nr_units && cpu == NR_CPUS; i++) in pcpu_embed_first_chunk()
3054 cpu = gi->cpu_map[i]; in pcpu_embed_first_chunk()
3058 ptr = pcpu_fc_alloc(cpu, gi->nr_units * ai->unit_size, atom_size, cpu_to_nd_fn); in pcpu_embed_first_chunk()
3091 struct pcpu_group_info *gi = &ai->groups[group]; in pcpu_embed_first_chunk() local
3094 for (i = 0; i < gi->nr_units; i++, ptr += ai->unit_size) { in pcpu_embed_first_chunk()
3095 if (gi->cpu_map[i] == NR_CPUS) { in pcpu_embed_first_chunk()