Lines Matching refs:start
27 if (mi->blk[i].start != mi->blk[i].end &&
133 static int __init numa_add_memblk_to(int nid, u64 start, u64 end,
137 if (start == end)
141 if (start > end || nid < 0 || nid >= MAX_NUMNODES) {
143 nid, start, end - 1);
152 mi->blk[mi->nr_blks].start = start;
190 * @start: Start address of the new memblk
198 int __init numa_add_memblk(int nid, u64 start, u64 end)
200 return numa_add_memblk_to(nid, start, end, &numa_meminfo);
206 * @start: Start address of the new memblk
220 int __init numa_add_reserved_memblk(int nid, u64 start, u64 end)
222 return numa_add_memblk_to(nid, start, end, &numa_reserved_meminfo);
247 bi->start, bi->end - bi->start)) {
253 bi->start = max(bi->start, low);
263 if (bi->start >= bi->end)
273 u64 start, end;
280 if (bi->end > bj->start && bi->start < bj->end) {
283 bi->nid, bi->start, bi->end - 1,
284 bj->nid, bj->start, bj->end - 1);
288 bi->nid, bi->start, bi->end - 1,
289 bj->start, bj->end - 1);
299 start = min(bi->start, bj->start);
306 if (start < bk->end && end > bk->start)
312 bi->nid, bi->start, bi->end - 1, bj->start,
313 bj->end - 1, start, end - 1);
314 bi->start = start;
322 mi->blk[i].start = mi->blk[i].end = 0;
357 ret = memblock_set_node(mb->start, mb->end - mb->start,
392 memblock_clear_hotplug(mb->start, mb->end - mb->start);
409 memblock_set_node(mb->start, mb->end - mb->start,
489 return (ma->start > mb->start) - (ma->start < mb->start);
496 * @start: address to begin fill
500 * address range @start-@end
504 * NUMA_NO_MEMBLK : No memblks exist in address range @start-@end
507 int __init numa_fill_memblks(u64 start, u64 end)
516 * overlap start, end. The list is used to make in-place
522 if (memblock_addrs_overlap(start, end - start, bi->start,
523 bi->end - bi->start)) {
531 /* Sort the list of pointers in memblk->start order */
534 /* Make sure the first/last memblks include start/end */
535 blk[0]->start = min(blk[0]->start, start);
546 if (prev_end >= curr->start) {
550 curr->start = prev_end;
558 static int meminfo_to_nid(struct numa_meminfo *mi, u64 start)
563 if (mi->blk[i].start <= start && mi->blk[i].end > start)
568 int phys_to_target_node(u64 start)
570 int nid = meminfo_to_nid(&numa_meminfo, start);
579 return meminfo_to_nid(&numa_reserved_meminfo, start);
583 int memory_add_physaddr_to_nid(u64 start)
585 int nid = meminfo_to_nid(&numa_meminfo, start);