Lines Matching refs:nid
193 phys_addr_t size, phys_addr_t align, int nid, in __memblock_find_range_bottom_up() argument
199 for_each_free_mem_range(i, nid, flags, &this_start, &this_end, NULL) { in __memblock_find_range_bottom_up()
228 phys_addr_t size, phys_addr_t align, int nid, in __memblock_find_range_top_down() argument
234 for_each_free_mem_range_reverse(i, nid, flags, &this_start, &this_end, in __memblock_find_range_top_down()
267 phys_addr_t end, int nid, in memblock_find_in_range_node() argument
281 nid, flags); in memblock_find_in_range_node()
284 nid, flags); in memblock_find_in_range_node()
522 int nid, in memblock_insert_region() argument
532 memblock_set_region_node(rgn, nid); in memblock_insert_region()
555 int nid, enum memblock_flags flags) in memblock_add_range() argument
572 memblock_set_region_node(&type->regions[0], nid); in memblock_add_range()
599 WARN_ON(nid != memblock_get_region_node(rgn)); in memblock_add_range()
605 rbase - base, nid, in memblock_add_range()
617 nid, flags); in memblock_add_range()
652 int nid) in memblock_add_node() argument
654 return memblock_add_range(&memblock.memory, base, size, nid, 0); in memblock_add_node()
939 static bool should_skip_region(struct memblock_region *m, int nid, int flags) in should_skip_region() argument
944 if (nid != NUMA_NO_NODE && nid != m_nid) in should_skip_region()
988 void __init_memblock __next_mem_range(u64 *idx, int nid, in __next_mem_range() argument
998 if (WARN_ONCE(nid == MAX_NUMNODES, in __next_mem_range()
1000 nid = NUMA_NO_NODE; in __next_mem_range()
1009 if (should_skip_region(m, nid, flags)) in __next_mem_range()
1085 void __init_memblock __next_mem_range_rev(u64 *idx, int nid, in __next_mem_range_rev() argument
1095 …if (WARN_ONCE(nid == MAX_NUMNODES, "Usage of MAX_NUMNODES is deprecated. Use NUMA_NO_NODE instead\… in __next_mem_range_rev()
1096 nid = NUMA_NO_NODE; in __next_mem_range_rev()
1113 if (should_skip_region(m, nid, flags)) in __next_mem_range_rev()
1170 void __init_memblock __next_mem_pfn_range(int *idx, int nid, in __next_mem_pfn_range() argument
1182 if (nid == MAX_NUMNODES || nid == r->nid) in __next_mem_pfn_range()
1195 *out_nid = r->nid; in __next_mem_pfn_range()
1212 struct memblock_type *type, int nid) in memblock_set_node() argument
1222 memblock_set_region_node(&type->regions[i], nid); in memblock_set_node()
1250 int nid; in __next_mem_pfn_range_in_zone() local
1254 &spa, &epa, &nid); in __next_mem_pfn_range_in_zone()
1281 &spa, &epa, &nid); in __next_mem_pfn_range_in_zone()
1319 phys_addr_t end, int nid) in memblock_alloc_range_nid() argument
1324 …if (WARN_ONCE(nid == MAX_NUMNODES, "Usage of MAX_NUMNODES is deprecated. Use NUMA_NO_NODE instead\… in memblock_alloc_range_nid()
1325 nid = NUMA_NO_NODE; in memblock_alloc_range_nid()
1334 found = memblock_find_in_range_node(size, align, start, end, nid, in memblock_alloc_range_nid()
1339 if (nid != NUMA_NO_NODE) { in memblock_alloc_range_nid()
1403 phys_addr_t __init memblock_phys_alloc_try_nid(phys_addr_t size, phys_addr_t align, int nid) in memblock_phys_alloc_try_nid() argument
1406 MEMBLOCK_ALLOC_ACCESSIBLE, nid); in memblock_phys_alloc_try_nid()
1431 int nid) in memblock_alloc_internal() argument
1441 return kzalloc_node(size, GFP_NOWAIT, nid); in memblock_alloc_internal()
1446 alloc = memblock_alloc_range_nid(size, align, min_addr, max_addr, nid); in memblock_alloc_internal()
1450 alloc = memblock_alloc_range_nid(size, align, 0, max_addr, nid); in memblock_alloc_internal()
1480 int nid) in memblock_alloc_try_nid_raw() argument
1485 __func__, (u64)size, (u64)align, nid, &min_addr, in memblock_alloc_try_nid_raw()
1489 min_addr, max_addr, nid); in memblock_alloc_try_nid_raw()
1516 int nid) in memblock_alloc_try_nid() argument
1521 __func__, (u64)size, (u64)align, nid, &min_addr, in memblock_alloc_try_nid()
1524 min_addr, max_addr, nid); in memblock_alloc_try_nid()
1737 return type->regions[mid].nid; in memblock_search_pfn_nid()