Lines Matching refs:n_pfns
87 unsigned long n_pfns) in xen_del_extra_mem() argument
94 size_r = xen_extra_mem[i].n_pfns; in xen_del_extra_mem()
98 BUG_ON(n_pfns > size_r); in xen_del_extra_mem()
99 xen_extra_mem[i].start_pfn += n_pfns; in xen_del_extra_mem()
100 xen_extra_mem[i].n_pfns -= n_pfns; in xen_del_extra_mem()
104 if (start_r + size_r == start_pfn + n_pfns) { in xen_del_extra_mem()
105 BUG_ON(n_pfns > size_r); in xen_del_extra_mem()
106 xen_extra_mem[i].n_pfns -= n_pfns; in xen_del_extra_mem()
111 BUG_ON(start_pfn + n_pfns > start_r + size_r); in xen_del_extra_mem()
112 xen_extra_mem[i].n_pfns = start_pfn - start_r; in xen_del_extra_mem()
114 xen_add_extra_mem(start_pfn + n_pfns, start_r + size_r - in xen_del_extra_mem()
115 (start_pfn + n_pfns)); in xen_del_extra_mem()
119 memblock_phys_free(PFN_PHYS(start_pfn), PFN_PHYS(n_pfns)); in xen_del_extra_mem()
133 pfn < xen_extra_mem[i].start_pfn + xen_extra_mem[i].n_pfns) in xen_chk_extra_mem()
149 if (!xen_extra_mem[i].n_pfns) in xen_inv_extra_mem()
152 pfn_e = pfn_s + xen_extra_mem[i].n_pfns; in xen_inv_extra_mem()
794 unsigned long pfn_s, n_pfns; in xen_memory_setup() local
914 n_pfns = PFN_DOWN(addr + chunk_size) - pfn_s; in xen_memory_setup()
915 extra_pages -= n_pfns; in xen_memory_setup()
916 xen_add_extra_mem(pfn_s, n_pfns); in xen_memory_setup()
917 xen_max_p2m_pfn = pfn_s + n_pfns; in xen_memory_setup()