Lines Matching refs:start_pfn
93 static void __init xen_add_extra_mem(unsigned long start_pfn, in xen_add_extra_mem() argument
105 xen_extra_mem[i].start_pfn = start_pfn; in xen_add_extra_mem()
110 if (xen_extra_mem[i].start_pfn + xen_extra_mem[i].n_pfns == in xen_add_extra_mem()
111 start_pfn) { in xen_add_extra_mem()
119 memblock_reserve(PFN_PHYS(start_pfn), PFN_PHYS(n_pfns)); in xen_add_extra_mem()
122 static void __init xen_del_extra_mem(unsigned long start_pfn, in xen_del_extra_mem() argument
129 start_r = xen_extra_mem[i].start_pfn; in xen_del_extra_mem()
133 if (start_r == start_pfn) { in xen_del_extra_mem()
135 xen_extra_mem[i].start_pfn += n_pfns; in xen_del_extra_mem()
140 if (start_r + size_r == start_pfn + n_pfns) { in xen_del_extra_mem()
146 if (start_pfn > start_r && start_pfn < start_r + size_r) { in xen_del_extra_mem()
147 BUG_ON(start_pfn + n_pfns > start_r + size_r); in xen_del_extra_mem()
148 xen_extra_mem[i].n_pfns = start_pfn - start_r; in xen_del_extra_mem()
150 xen_add_extra_mem(start_pfn + n_pfns, start_r + size_r - in xen_del_extra_mem()
151 (start_pfn + n_pfns)); in xen_del_extra_mem()
155 memblock_free(PFN_PHYS(start_pfn), PFN_PHYS(n_pfns)); in xen_del_extra_mem()
168 if (pfn >= xen_extra_mem[i].start_pfn && in xen_chk_extra_mem()
169 pfn < xen_extra_mem[i].start_pfn + xen_extra_mem[i].n_pfns) in xen_chk_extra_mem()
187 pfn_s = xen_extra_mem[i].start_pfn; in xen_inv_extra_mem()
253 static void __init xen_set_identity_and_release_chunk(unsigned long start_pfn, in xen_set_identity_and_release_chunk() argument
259 WARN_ON(start_pfn > end_pfn); in xen_set_identity_and_release_chunk()
263 for (pfn = start_pfn; pfn < end; pfn++) { in xen_set_identity_and_release_chunk()
281 set_phys_range_identity(start_pfn, end_pfn); in xen_set_identity_and_release_chunk()
333 unsigned long start_pfn, unsigned long size, unsigned long remap_pfn) in xen_do_set_identity_and_remap_chunk() argument
338 unsigned long ident_end_pfn = start_pfn + size; in xen_do_set_identity_and_remap_chunk()
348 for (ident_pfn_iter = start_pfn, remap_pfn_iter = remap_pfn; in xen_do_set_identity_and_remap_chunk()
389 unsigned long start_pfn, unsigned long end_pfn, unsigned long nr_pages, in xen_set_identity_and_remap_chunk() argument
394 unsigned long n = end_pfn - start_pfn; in xen_set_identity_and_remap_chunk()
400 unsigned long cur_pfn = start_pfn + i; in xen_set_identity_and_remap_chunk()
436 for (pfn = start_pfn; pfn <= max_pfn_mapped && pfn < end_pfn; pfn++) in xen_set_identity_and_remap_chunk()
445 unsigned long start_pfn, unsigned long end_pfn, unsigned long nr_pages, in xen_count_remap_pages() argument
448 if (start_pfn >= nr_pages) in xen_count_remap_pages()
451 return remap_pages + min(end_pfn, nr_pages) - start_pfn; in xen_count_remap_pages()
455 unsigned long (*func)(unsigned long start_pfn, unsigned long end_pfn, in xen_foreach_remap_area() argument
477 unsigned long start_pfn = PFN_DOWN(start); in xen_foreach_remap_area() local
483 if (start_pfn < end_pfn) in xen_foreach_remap_area()
484 ret_val = func(start_pfn, end_pfn, nr_pages, in xen_foreach_remap_area()