• Home
  • Raw
  • Download

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()
2504 upa = ai->alloc_size / ai->unit_size; in pcpu_dump_alloc_info()
2510 ai->unit_size, ai->alloc_size / ai->atom_size, ai->atom_size); in pcpu_dump_alloc_info()
2604 size_t alloc_size; in pcpu_setup_first_chunk() local
2636 alloc_size = ai->nr_groups * sizeof(group_offsets[0]); in pcpu_setup_first_chunk()
2637 group_offsets = memblock_alloc(alloc_size, SMP_CACHE_BYTES); in pcpu_setup_first_chunk()
2640 alloc_size); in pcpu_setup_first_chunk()
2642 alloc_size = ai->nr_groups * sizeof(group_sizes[0]); in pcpu_setup_first_chunk()
2643 group_sizes = memblock_alloc(alloc_size, SMP_CACHE_BYTES); in pcpu_setup_first_chunk()
2646 alloc_size); in pcpu_setup_first_chunk()
2648 alloc_size = nr_cpu_ids * sizeof(unit_map[0]); in pcpu_setup_first_chunk()
2649 unit_map = memblock_alloc(alloc_size, SMP_CACHE_BYTES); in pcpu_setup_first_chunk()
2652 alloc_size); in pcpu_setup_first_chunk()
2654 alloc_size = nr_cpu_ids * sizeof(unit_off[0]); in pcpu_setup_first_chunk()
2655 unit_off = memblock_alloc(alloc_size, SMP_CACHE_BYTES); in pcpu_setup_first_chunk()
2658 alloc_size); in pcpu_setup_first_chunk()
2865 size_t size_sum, min_unit_size, alloc_size; in pcpu_build_alloc_info() local
2891 alloc_size = roundup(min_unit_size, atom_size); in pcpu_build_alloc_info()
2892 upa = alloc_size / min_unit_size; in pcpu_build_alloc_info()
2893 while (alloc_size % upa || (offset_in_page(alloc_size / upa))) in pcpu_build_alloc_info()
2929 if (alloc_size % upa || (offset_in_page(alloc_size / upa))) in pcpu_build_alloc_info()
2972 ai->unit_size = alloc_size / upa; in pcpu_build_alloc_info()
2974 ai->alloc_size = alloc_size; in pcpu_build_alloc_info()
3181 upa = ai->alloc_size/ai->unit_size; in pcpu_page_first_chunk()
3342 ai->alloc_size = unit_size; in setup_per_cpu_areas()