Lines Matching full:start

27 		if (mi->blk[i].start != mi->blk[i].end &&  in numa_nodemask_from_meminfo()
133 static int __init numa_add_memblk_to(int nid, u64 start, u64 end, in numa_add_memblk_to() argument
137 if (start == end) in numa_add_memblk_to()
141 if (start > end || nid < 0 || nid >= MAX_NUMNODES) { in numa_add_memblk_to()
143 nid, start, end - 1); in numa_add_memblk_to()
152 mi->blk[mi->nr_blks].start = start; in numa_add_memblk_to()
190 * @start: Start address of the new memblk
198 int __init numa_add_memblk(int nid, u64 start, u64 end) in numa_add_memblk() argument
200 return numa_add_memblk_to(nid, start, end, &numa_meminfo); in numa_add_memblk()
225 bi->start, bi->end - bi->start)) { in numa_cleanup_meminfo()
231 bi->start = max(bi->start, low); in numa_cleanup_meminfo()
241 if (bi->start >= bi->end) in numa_cleanup_meminfo()
251 u64 start, end; in numa_cleanup_meminfo() local
258 if (bi->end > bj->start && bi->start < bj->end) { in numa_cleanup_meminfo()
261 bi->nid, bi->start, bi->end - 1, in numa_cleanup_meminfo()
262 bj->nid, bj->start, bj->end - 1); in numa_cleanup_meminfo()
266 bi->nid, bi->start, bi->end - 1, in numa_cleanup_meminfo()
267 bj->start, bj->end - 1); in numa_cleanup_meminfo()
277 start = min(bi->start, bj->start); in numa_cleanup_meminfo()
284 if (start < bk->end && end > bk->start) in numa_cleanup_meminfo()
290 bi->nid, bi->start, bi->end - 1, bj->start, in numa_cleanup_meminfo()
291 bj->end - 1, start, end - 1); in numa_cleanup_meminfo()
292 bi->start = start; in numa_cleanup_meminfo()
300 mi->blk[i].start = mi->blk[i].end = 0; in numa_cleanup_meminfo()
335 ret = memblock_set_node(mb->start, mb->end - mb->start, in numa_clear_kernel_node_hotplug()
370 memblock_clear_hotplug(mb->start, mb->end - mb->start); in numa_clear_kernel_node_hotplug()
387 memblock_set_node(mb->start, mb->end - mb->start, in numa_register_meminfo()
467 return (ma->start > mb->start) - (ma->start < mb->start); in cmp_memblk()
474 * @start: address to begin fill
478 * address range @start-@end
482 * NUMA_NO_MEMBLK : No memblks exist in address range @start-@end
485 int __init numa_fill_memblks(u64 start, u64 end) in numa_fill_memblks() argument
494 * overlap start, end. The list is used to make in-place in numa_fill_memblks()
500 if (memblock_addrs_overlap(start, end - start, bi->start, in numa_fill_memblks()
501 bi->end - bi->start)) { in numa_fill_memblks()
509 /* Sort the list of pointers in memblk->start order */ in numa_fill_memblks()
512 /* Make sure the first/last memblks include start/end */ in numa_fill_memblks()
513 blk[0]->start = min(blk[0]->start, start); in numa_fill_memblks()
524 if (prev_end >= curr->start) { in numa_fill_memblks()
528 curr->start = prev_end; in numa_fill_memblks()
536 static int meminfo_to_nid(struct numa_meminfo *mi, u64 start) in meminfo_to_nid() argument
541 if (mi->blk[i].start <= start && mi->blk[i].end > start) in meminfo_to_nid()
546 int phys_to_target_node(u64 start) in phys_to_target_node() argument
548 int nid = meminfo_to_nid(&numa_meminfo, start); in phys_to_target_node()
557 return meminfo_to_nid(&numa_reserved_meminfo, start); in phys_to_target_node()
561 int memory_add_physaddr_to_nid(u64 start) in memory_add_physaddr_to_nid() argument
563 int nid = meminfo_to_nid(&numa_meminfo, start); in memory_add_physaddr_to_nid()