Lines Matching refs:unit_size
2478 upa = ai->alloc_size / ai->unit_size;
2484 ai->unit_size, ai->alloc_size / ai->atom_size, ai->atom_size);
2534 * @ai->reserved_size + @ai->dyn_size and @ai->unit_size is unused.
2536 * @ai->unit_size specifies unit size and must be aligned to PAGE_SIZE
2545 * @ai->unit_size is larger than @ai->atom_size.
2596 PCPU_SETUP_BUG_ON(ai->unit_size < size_sum);
2597 PCPU_SETUP_BUG_ON(offset_in_page(ai->unit_size));
2598 PCPU_SETUP_BUG_ON(ai->unit_size < PCPU_MIN_UNIT_SIZE);
2599 PCPU_SETUP_BUG_ON(!IS_ALIGNED(ai->unit_size, PCPU_BITMAP_BLOCK_SIZE));
2629 group_sizes[group] = gi->nr_units * ai->unit_size;
2641 unit_off[cpu] = gi->base_offset + i * ai->unit_size;
2668 pcpu_unit_pages = ai->unit_size >> PAGE_SHIFT;
2871 * Expand the unit_size until we use >= 75% of the units allocated.
2872 * Related to atom_size, which could be much larger than the unit_size.
2922 ai->unit_size = alloc_size / upa;
2934 gi->base_offset = unit * ai->unit_size;
3054 ptr = pcpu_fc_alloc(cpu, gi->nr_units * ai->unit_size, atom_size, cpu_to_nd_fn);
3068 max_distance += ai->unit_size * ai->groups[highest_group].nr_units;
3090 for (i = 0; i < gi->nr_units; i++, ptr += ai->unit_size) {
3093 pcpu_fc_free(ptr, ai->unit_size);
3098 pcpu_fc_free(ptr + size_sum, ai->unit_size - size_sum);
3109 ai->dyn_size, ai->unit_size);
3118 ai->groups[group].nr_units * ai->unit_size);
3212 upa = ai->alloc_size/ai->unit_size;
3219 unit_pages = ai->unit_size >> PAGE_SHIFT;
3247 vm.size = num_possible_cpus() * ai->unit_size;
3252 (unsigned long)vm.addr + unit * ai->unit_size;
3263 flush_cache_vmap_early(unit_addr, unit_addr + ai->unit_size);
3336 const size_t unit_size =
3343 fc = memblock_alloc_from(unit_size, PAGE_SIZE, __pa(MAX_DMA_ADDRESS));
3349 ai->dyn_size = unit_size;
3350 ai->unit_size = unit_size;
3351 ai->atom_size = unit_size;
3352 ai->alloc_size = unit_size;