Lines Matching refs:p2m_entry
126 struct xen_p2m_entry *p2m_entry; in __set_phys_to_machine_multi() local
132 p2m_entry = rb_entry(n, struct xen_p2m_entry, rbnode_phys); in __set_phys_to_machine_multi()
133 if (p2m_entry->pfn <= pfn && in __set_phys_to_machine_multi()
134 p2m_entry->pfn + p2m_entry->nr_pages > pfn) { in __set_phys_to_machine_multi()
135 rb_erase(&p2m_entry->rbnode_phys, &phys_to_mach); in __set_phys_to_machine_multi()
137 kfree(p2m_entry); in __set_phys_to_machine_multi()
140 if (pfn < p2m_entry->pfn) in __set_phys_to_machine_multi()
149 p2m_entry = kzalloc(sizeof(*p2m_entry), GFP_NOWAIT); in __set_phys_to_machine_multi()
150 if (!p2m_entry) in __set_phys_to_machine_multi()
153 p2m_entry->pfn = pfn; in __set_phys_to_machine_multi()
154 p2m_entry->nr_pages = nr_pages; in __set_phys_to_machine_multi()
155 p2m_entry->mfn = mfn; in __set_phys_to_machine_multi()
158 rc = xen_add_phys_to_mach_entry(p2m_entry); in __set_phys_to_machine_multi()
161 kfree(p2m_entry); in __set_phys_to_machine_multi()