Lines Matching refs:p2m_entry
155 struct xen_p2m_entry *p2m_entry; in __set_phys_to_machine_multi() local
162 p2m_entry = rb_entry(n, struct xen_p2m_entry, rbnode_phys); in __set_phys_to_machine_multi()
163 if (p2m_entry->pfn <= pfn && in __set_phys_to_machine_multi()
164 p2m_entry->pfn + p2m_entry->nr_pages > pfn) { in __set_phys_to_machine_multi()
165 rb_erase(&p2m_entry->rbnode_phys, &phys_to_mach); in __set_phys_to_machine_multi()
167 kfree(p2m_entry); in __set_phys_to_machine_multi()
170 if (pfn < p2m_entry->pfn) in __set_phys_to_machine_multi()
179 p2m_entry = kzalloc(sizeof(*p2m_entry), GFP_NOWAIT); in __set_phys_to_machine_multi()
180 if (!p2m_entry) in __set_phys_to_machine_multi()
183 p2m_entry->pfn = pfn; in __set_phys_to_machine_multi()
184 p2m_entry->nr_pages = nr_pages; in __set_phys_to_machine_multi()
185 p2m_entry->mfn = mfn; in __set_phys_to_machine_multi()
188 rc = xen_add_phys_to_mach_entry(p2m_entry); in __set_phys_to_machine_multi()
191 kfree(p2m_entry); in __set_phys_to_machine_multi()