• Home
  • Raw
  • Download

Lines Matching refs:size

258 		unsigned long size, align;  in memory_present()  local
260 size = sizeof(struct mem_section*) * NR_SECTION_ROOTS; in memory_present()
262 mem_section = memblock_alloc(size, align); in memory_present()
265 __func__, size, align); in memory_present()
350 unsigned long size) in sparse_early_usemaps_alloc_pgdat_section() argument
369 usage = memblock_alloc_try_nid(size, SMP_CACHE_BYTES, goal, limit, nid); in sparse_early_usemaps_alloc_pgdat_section()
422 unsigned long size) in sparse_early_usemaps_alloc_pgdat_section() argument
424 return memblock_alloc_node(size, SMP_CACHE_BYTES, pgdat->node_id); in sparse_early_usemaps_alloc_pgdat_section()
448 unsigned long size = section_map_size(); in __populate_section_memmap() local
449 struct page *map = sparse_buffer_alloc(size); in __populate_section_memmap()
455 map = memblock_alloc_try_nid_raw(size, size, addr, in __populate_section_memmap()
459 __func__, size, PAGE_SIZE, nid, &addr); in __populate_section_memmap()
468 static inline void __meminit sparse_buffer_free(unsigned long size) in sparse_buffer_free() argument
470 WARN_ON(!sparsemap_buf || size == 0); in sparse_buffer_free()
471 memblock_free_early(__pa(sparsemap_buf), size); in sparse_buffer_free()
474 static void __init sparse_buffer_init(unsigned long size, int nid) in sparse_buffer_init() argument
483 sparsemap_buf = memblock_alloc_exact_nid_raw(size, section_map_size(), in sparse_buffer_init()
485 sparsemap_buf_end = sparsemap_buf + size; in sparse_buffer_init()
490 unsigned long size = sparsemap_buf_end - sparsemap_buf; in sparse_buffer_fini() local
492 if (sparsemap_buf && size > 0) in sparse_buffer_fini()
493 sparse_buffer_free(size); in sparse_buffer_fini()
497 void * __meminit sparse_buffer_alloc(unsigned long size) in sparse_buffer_alloc() argument
502 ptr = (void *) roundup((unsigned long)sparsemap_buf, size); in sparse_buffer_alloc()
503 if (ptr + size > sparsemap_buf_end) in sparse_buffer_alloc()
509 sparsemap_buf = ptr + size; in sparse_buffer_alloc()