Lines Matching refs:start_pfn
94 static void __init xen_add_extra_mem(unsigned long start_pfn, in xen_add_extra_mem() argument
106 xen_extra_mem[i].start_pfn = start_pfn; in xen_add_extra_mem()
111 if (xen_extra_mem[i].start_pfn + xen_extra_mem[i].n_pfns == in xen_add_extra_mem()
112 start_pfn) { in xen_add_extra_mem()
120 memblock_reserve(PFN_PHYS(start_pfn), PFN_PHYS(n_pfns)); in xen_add_extra_mem()
123 static void __init xen_del_extra_mem(unsigned long start_pfn, in xen_del_extra_mem() argument
130 start_r = xen_extra_mem[i].start_pfn; in xen_del_extra_mem()
134 if (start_r == start_pfn) { in xen_del_extra_mem()
136 xen_extra_mem[i].start_pfn += n_pfns; in xen_del_extra_mem()
141 if (start_r + size_r == start_pfn + n_pfns) { in xen_del_extra_mem()
147 if (start_pfn > start_r && start_pfn < start_r + size_r) { in xen_del_extra_mem()
148 BUG_ON(start_pfn + n_pfns > start_r + size_r); in xen_del_extra_mem()
149 xen_extra_mem[i].n_pfns = start_pfn - start_r; in xen_del_extra_mem()
151 xen_add_extra_mem(start_pfn + n_pfns, start_r + size_r - in xen_del_extra_mem()
152 (start_pfn + n_pfns)); in xen_del_extra_mem()
156 memblock_phys_free(PFN_PHYS(start_pfn), PFN_PHYS(n_pfns)); in xen_del_extra_mem()
169 if (pfn >= xen_extra_mem[i].start_pfn && in xen_chk_extra_mem()
170 pfn < xen_extra_mem[i].start_pfn + xen_extra_mem[i].n_pfns) in xen_chk_extra_mem()
188 pfn_s = xen_extra_mem[i].start_pfn; in xen_inv_extra_mem()
254 static void __init xen_set_identity_and_release_chunk(unsigned long start_pfn, in xen_set_identity_and_release_chunk() argument
260 WARN_ON(start_pfn > end_pfn); in xen_set_identity_and_release_chunk()
264 for (pfn = start_pfn; pfn < end; pfn++) { in xen_set_identity_and_release_chunk()
282 set_phys_range_identity(start_pfn, end_pfn); in xen_set_identity_and_release_chunk()
330 unsigned long start_pfn, unsigned long size, unsigned long remap_pfn) in xen_do_set_identity_and_remap_chunk() argument
335 unsigned long ident_end_pfn = start_pfn + size; in xen_do_set_identity_and_remap_chunk()
343 for (ident_pfn_iter = start_pfn, remap_pfn_iter = remap_pfn; in xen_do_set_identity_and_remap_chunk()
384 unsigned long start_pfn, unsigned long end_pfn, unsigned long nr_pages, in xen_set_identity_and_remap_chunk() argument
389 unsigned long n = end_pfn - start_pfn; in xen_set_identity_and_remap_chunk()
395 unsigned long cur_pfn = start_pfn + i; in xen_set_identity_and_remap_chunk()
431 for (pfn = start_pfn; pfn <= max_pfn_mapped && pfn < end_pfn; pfn++) in xen_set_identity_and_remap_chunk()
440 unsigned long start_pfn, unsigned long end_pfn, unsigned long nr_pages, in xen_count_remap_pages() argument
443 if (start_pfn >= nr_pages) in xen_count_remap_pages()
446 return remap_pages + min(end_pfn, nr_pages) - start_pfn; in xen_count_remap_pages()
450 unsigned long (*func)(unsigned long start_pfn, unsigned long end_pfn, in xen_foreach_remap_area() argument
472 unsigned long start_pfn = PFN_DOWN(start); in xen_foreach_remap_area() local
478 if (start_pfn < end_pfn) in xen_foreach_remap_area()
479 ret_val = func(start_pfn, end_pfn, nr_pages, in xen_foreach_remap_area()