Lines Matching refs:p2m_entry
156 struct xen_p2m_entry *p2m_entry;
163 p2m_entry = rb_entry(n, struct xen_p2m_entry, rbnode_phys);
164 if (p2m_entry->pfn <= pfn &&
165 p2m_entry->pfn + p2m_entry->nr_pages > pfn) {
166 rb_erase(&p2m_entry->rbnode_phys, &phys_to_mach);
168 kfree(p2m_entry);
171 if (pfn < p2m_entry->pfn)
180 p2m_entry = kzalloc(sizeof(*p2m_entry), GFP_NOWAIT);
181 if (!p2m_entry)
184 p2m_entry->pfn = pfn;
185 p2m_entry->nr_pages = nr_pages;
186 p2m_entry->mfn = mfn;
189 rc = xen_add_phys_to_mach_entry(p2m_entry);
192 kfree(p2m_entry);