Lines Matching refs:end

32 static u64 __init mem_hole_size(u64 start, u64 end)  in mem_hole_size()  argument
35 unsigned long end_pfn = PFN_DOWN(end); in mem_hole_size()
60 eb->end = pb->start + size; in emu_setup_memblk()
67 if (pb->start >= pb->end) { in emu_setup_memblk()
68 WARN_ON_ONCE(pb->start > pb->end); in emu_setup_memblk()
73 nid, eb->start, eb->end - 1, (eb->end - eb->start) >> 20); in emu_setup_memblk()
129 u64 start, limit, end; in split_nodes_interleave() local
138 limit = pi->blk[phys_blk].end; in split_nodes_interleave()
139 end = start + size; in split_nodes_interleave()
142 end += FAKE_NODE_MIN_SIZE; in split_nodes_interleave()
148 while (end - start - mem_hole_size(start, end) < size) { in split_nodes_interleave()
149 end += FAKE_NODE_MIN_SIZE; in split_nodes_interleave()
150 if (end > limit) { in split_nodes_interleave()
151 end = limit; in split_nodes_interleave()
161 if (end < dma32_end && dma32_end - end - in split_nodes_interleave()
162 mem_hole_size(end, dma32_end) < FAKE_NODE_MIN_SIZE) in split_nodes_interleave()
163 end = dma32_end; in split_nodes_interleave()
170 if (limit - end - mem_hole_size(end, limit) < size) in split_nodes_interleave()
171 end = limit; in split_nodes_interleave()
175 min(end, limit) - start); in split_nodes_interleave()
189 u64 end = start + size; in find_end_of_node() local
191 while (end - start - mem_hole_size(start, end) < size) { in find_end_of_node()
192 end += FAKE_NODE_MIN_SIZE; in find_end_of_node()
193 if (end > max_addr) { in find_end_of_node()
194 end = max_addr; in find_end_of_node()
198 return end; in find_end_of_node()
276 u64 start, limit, end; in split_nodes_size_interleave_uniform() local
286 limit = pi->blk[phys_blk].end; in split_nodes_size_interleave_uniform()
289 end = start + size; in split_nodes_size_interleave_uniform()
291 end = find_end_of_node(start, limit, size); in split_nodes_size_interleave_uniform()
297 if (end < dma32_end && dma32_end - end - in split_nodes_size_interleave_uniform()
298 mem_hole_size(end, dma32_end) < FAKE_NODE_MIN_SIZE) in split_nodes_size_interleave_uniform()
299 end = dma32_end; in split_nodes_size_interleave_uniform()
306 if ((limit - end - mem_hole_size(end, limit) < size) in split_nodes_size_interleave_uniform()
308 end = limit; in split_nodes_size_interleave_uniform()
312 min(end, limit) - start); in split_nodes_size_interleave_uniform()
412 pi.blk[0].start, pi.blk[0].end, 0, in numa_emulation()
476 if (ei.blk[i].start != ei.blk[i].end && in numa_emulation()