Lines Matching refs:memblock

111 struct memblock memblock __initdata_memblock = {
141 static __refdata struct memblock_type *memblock_memory = &memblock.memory;
291 end = memblock.current_limit; in memblock_find_in_range_node()
365 if (memblock.reserved.regions != memblock_reserved_init_regions) { in memblock_discard()
366 addr = __pa(memblock.reserved.regions); in memblock_discard()
368 memblock.reserved.max); in memblock_discard()
372 if (memblock.memory.regions != memblock_memory_init_regions) { in memblock_discard()
373 addr = __pa(memblock.memory.regions); in memblock_discard()
375 memblock.memory.max); in memblock_discard()
425 if (type == &memblock.memory) in memblock_double_array()
436 if (type != &memblock.reserved) in memblock_double_array()
440 memblock.current_limit, in memblock_double_array()
444 min(new_area_start, memblock.current_limit), in memblock_double_array()
674 return memblock_add_range(&memblock.memory, base, size, nid, flags); in memblock_add_node()
695 return memblock_add_range(&memblock.memory, base, size, MAX_NUMNODES, 0); in memblock_add()
796 return memblock_remove_range(&memblock.memory, base, size); in memblock_remove()
829 return memblock_remove_range(&memblock.reserved, base, size); in memblock_phys_free()
839 return memblock_add_range(&memblock.reserved, base, size, MAX_NUMNODES, 0); in memblock_reserve()
868 struct memblock_type *type = &memblock.memory; in memblock_setclr_flag()
1201 struct memblock_type *type = &memblock.memory; in __next_mem_pfn_range()
1284 &memblock.memory, &memblock.reserved, in __next_mem_pfn_range_in_zone()
1311 &memblock.memory, &memblock.reserved, in __next_mem_pfn_range_in_zone()
1484 if (max_addr > memblock.current_limit) in memblock_alloc_internal()
1485 max_addr = memblock.current_limit; in memblock_alloc_internal()
1631 return memblock.memory.total_size; in memblock_phys_mem_size()
1636 return memblock.reserved.total_size; in memblock_reserved_size()
1642 return memblock.memory.regions[0].base; in memblock_start_of_DRAM()
1647 int idx = memblock.memory.cnt - 1; in memblock_end_of_DRAM()
1649 return (memblock.memory.regions[idx].base + memblock.memory.regions[idx].size); in memblock_end_of_DRAM()
1687 memblock_remove_range(&memblock.memory, max_addr, in memblock_enforce_memory_limit()
1689 memblock_remove_range(&memblock.reserved, max_addr, in memblock_enforce_memory_limit()
1706 ret = memblock_isolate_range(&memblock.memory, base, size, in memblock_cap_memory_range()
1712 for (i = memblock.memory.cnt - 1; i >= end_rgn; i--) in memblock_cap_memory_range()
1713 if (!memblock_is_nomap(&memblock.memory.regions[i])) in memblock_cap_memory_range()
1714 memblock_remove_region(&memblock.memory, i); in memblock_cap_memory_range()
1717 if (!memblock_is_nomap(&memblock.memory.regions[i])) in memblock_cap_memory_range()
1718 memblock_remove_region(&memblock.memory, i); in memblock_cap_memory_range()
1721 memblock_remove_range(&memblock.reserved, 0, base); in memblock_cap_memory_range()
1722 memblock_remove_range(&memblock.reserved, in memblock_cap_memory_range()
1762 return memblock_search(&memblock.reserved, addr) != -1; in memblock_is_reserved()
1767 return memblock_search(&memblock.memory, addr) != -1; in memblock_is_memory()
1772 int i = memblock_search(&memblock.memory, addr); in memblock_is_map_memory()
1776 return !memblock_is_nomap(&memblock.memory.regions[i]); in memblock_is_map_memory()
1782 struct memblock_type *type = &memblock.memory; in memblock_search_pfn_nid()
1806 int idx = memblock_search(&memblock.memory, base); in memblock_is_region_memory()
1811 return (memblock.memory.regions[idx].base + in memblock_is_region_memory()
1812 memblock.memory.regions[idx].size) >= end; in memblock_is_region_memory()
1828 return memblock_overlaps_region(&memblock.reserved, base, size); in memblock_is_region_reserved()
1849 memblock_remove_region(&memblock.memory, in memblock_trim_memory()
1850 r - memblock.memory.regions); in memblock_trim_memory()
1858 memblock.current_limit = limit; in memblock_set_current_limit()
1863 return memblock.current_limit; in memblock_get_current_limit()
1896 &memblock.memory.total_size, in __memblock_dump_all()
1897 &memblock.reserved.total_size); in __memblock_dump_all()
1899 memblock_dump(&memblock.memory); in __memblock_dump_all()
1900 memblock_dump(&memblock.reserved); in __memblock_dump_all()
2140 &memblock.memory, &memblock_debug_fops); in memblock_init_debugfs()
2142 &memblock.reserved, &memblock_debug_fops); in memblock_init_debugfs()