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