Lines Matching refs:gi
2194 const struct pcpu_group_info *gi = &ai->groups[group]; in pcpu_dump_alloc_info() local
2197 BUG_ON(gi->nr_units % upa); in pcpu_dump_alloc_info()
2198 for (alloc_end += gi->nr_units / upa; in pcpu_dump_alloc_info()
2207 if (gi->cpu_map[unit] != NR_CPUS) in pcpu_dump_alloc_info()
2209 cpu_width, gi->cpu_map[unit]); in pcpu_dump_alloc_info()
2348 const struct pcpu_group_info *gi = &ai->groups[group]; in pcpu_setup_first_chunk() local
2350 group_offsets[group] = gi->base_offset; in pcpu_setup_first_chunk()
2351 group_sizes[group] = gi->nr_units * ai->unit_size; in pcpu_setup_first_chunk()
2353 for (i = 0; i < gi->nr_units; i++) { in pcpu_setup_first_chunk()
2354 cpu = gi->cpu_map[i]; in pcpu_setup_first_chunk()
2363 unit_off[cpu] = gi->base_offset + i * ai->unit_size; in pcpu_setup_first_chunk()
2644 struct pcpu_group_info *gi = &ai->groups[group]; in pcpu_build_alloc_info() local
2651 gi->base_offset = unit * ai->unit_size; in pcpu_build_alloc_info()
2655 gi->cpu_map[gi->nr_units++] = cpu; in pcpu_build_alloc_info()
2656 gi->nr_units = roundup(gi->nr_units, upa); in pcpu_build_alloc_info()
2657 unit += gi->nr_units; in pcpu_build_alloc_info()
2728 struct pcpu_group_info *gi = &ai->groups[group]; in pcpu_embed_first_chunk() local
2732 for (i = 0; i < gi->nr_units && cpu == NR_CPUS; i++) in pcpu_embed_first_chunk()
2733 cpu = gi->cpu_map[i]; in pcpu_embed_first_chunk()
2737 ptr = alloc_fn(cpu, gi->nr_units * ai->unit_size, atom_size); in pcpu_embed_first_chunk()
2770 struct pcpu_group_info *gi = &ai->groups[group]; in pcpu_embed_first_chunk() local
2773 for (i = 0; i < gi->nr_units; i++, ptr += ai->unit_size) { in pcpu_embed_first_chunk()
2774 if (gi->cpu_map[i] == NR_CPUS) { in pcpu_embed_first_chunk()