Lines Matching refs:alloc_size

1347 	size_t alloc_size;  in pcpu_alloc_first_chunk()  local
1363 alloc_size = struct_size(chunk, populated, in pcpu_alloc_first_chunk()
1365 chunk = memblock_alloc(alloc_size, SMP_CACHE_BYTES); in pcpu_alloc_first_chunk()
1368 alloc_size); in pcpu_alloc_first_chunk()
1379 alloc_size = BITS_TO_LONGS(region_bits) * sizeof(chunk->alloc_map[0]); in pcpu_alloc_first_chunk()
1380 chunk->alloc_map = memblock_alloc(alloc_size, SMP_CACHE_BYTES); in pcpu_alloc_first_chunk()
1383 alloc_size); in pcpu_alloc_first_chunk()
1385 alloc_size = in pcpu_alloc_first_chunk()
1387 chunk->bound_map = memblock_alloc(alloc_size, SMP_CACHE_BYTES); in pcpu_alloc_first_chunk()
1390 alloc_size); in pcpu_alloc_first_chunk()
1392 alloc_size = pcpu_chunk_nr_blocks(chunk) * sizeof(chunk->md_blocks[0]); in pcpu_alloc_first_chunk()
1393 chunk->md_blocks = memblock_alloc(alloc_size, SMP_CACHE_BYTES); in pcpu_alloc_first_chunk()
1396 alloc_size); in pcpu_alloc_first_chunk()
2501 upa = ai->alloc_size / ai->unit_size; in pcpu_dump_alloc_info()
2507 ai->unit_size, ai->alloc_size / ai->atom_size, ai->atom_size); in pcpu_dump_alloc_info()
2601 size_t alloc_size; in pcpu_setup_first_chunk() local
2633 alloc_size = ai->nr_groups * sizeof(group_offsets[0]); in pcpu_setup_first_chunk()
2634 group_offsets = memblock_alloc(alloc_size, SMP_CACHE_BYTES); in pcpu_setup_first_chunk()
2637 alloc_size); in pcpu_setup_first_chunk()
2639 alloc_size = ai->nr_groups * sizeof(group_sizes[0]); in pcpu_setup_first_chunk()
2640 group_sizes = memblock_alloc(alloc_size, SMP_CACHE_BYTES); in pcpu_setup_first_chunk()
2643 alloc_size); in pcpu_setup_first_chunk()
2645 alloc_size = nr_cpu_ids * sizeof(unit_map[0]); in pcpu_setup_first_chunk()
2646 unit_map = memblock_alloc(alloc_size, SMP_CACHE_BYTES); in pcpu_setup_first_chunk()
2649 alloc_size); in pcpu_setup_first_chunk()
2651 alloc_size = nr_cpu_ids * sizeof(unit_off[0]); in pcpu_setup_first_chunk()
2652 unit_off = memblock_alloc(alloc_size, SMP_CACHE_BYTES); in pcpu_setup_first_chunk()
2655 alloc_size); in pcpu_setup_first_chunk()
2862 size_t size_sum, min_unit_size, alloc_size; in pcpu_build_alloc_info() local
2888 alloc_size = roundup(min_unit_size, atom_size); in pcpu_build_alloc_info()
2889 upa = alloc_size / min_unit_size; in pcpu_build_alloc_info()
2890 while (alloc_size % upa || (offset_in_page(alloc_size / upa))) in pcpu_build_alloc_info()
2926 if (alloc_size % upa || (offset_in_page(alloc_size / upa))) in pcpu_build_alloc_info()
2969 ai->unit_size = alloc_size / upa; in pcpu_build_alloc_info()
2971 ai->alloc_size = alloc_size; in pcpu_build_alloc_info()
3276 upa = ai->alloc_size/ai->unit_size; in pcpu_page_first_chunk()
3425 ai->alloc_size = unit_size; in setup_per_cpu_areas()