Lines Matching refs:from

83     xen_vaddr_t from;  member
128 static int count_pgtables(struct xc_dom_image *dom, xen_vaddr_t from, in count_pgtables() argument
146 pfn_end = pfn + ((to - from) >> PAGE_SHIFT_X86); in count_pgtables()
157 if ( from < map_cmp->area.to && to > map_cmp->area.from ) in count_pgtables()
166 map->area.from = from & domx86->params->vaddr_mask; in count_pgtables()
177 map->lvls[l].from = 0; in count_pgtables()
187 map->lvls[l].from = map->area.from & ~mask; in count_pgtables()
200 if ( map_cmp->lvls[l].from == map_cmp->lvls[l].to ) in count_pgtables()
202 if ( map->lvls[l].from >= map_cmp->lvls[l].from && in count_pgtables()
205 map->lvls[l].from = 0; in count_pgtables()
209 assert(map->lvls[l].from >= map_cmp->lvls[l].from || in count_pgtables()
211 if ( map->lvls[l].from >= map_cmp->lvls[l].from && in count_pgtables()
212 map->lvls[l].from <= map_cmp->lvls[l].to ) in count_pgtables()
213 map->lvls[l].from = map_cmp->lvls[l].to + 1; in count_pgtables()
214 if ( map->lvls[l].to >= map_cmp->lvls[l].from && in count_pgtables()
216 map->lvls[l].to = map_cmp->lvls[l].from - 1; in count_pgtables()
218 if ( map->lvls[l].from < map->lvls[l].to ) in count_pgtables()
220 ((map->lvls[l].to - map->lvls[l].from) >> bits) + 1; in count_pgtables()
223 map->lvls[l].from, map->lvls[l].to, map->lvls[l].pgtables); in count_pgtables()
396 xen_vaddr_t from, to; in setup_pgtables_x86() local
406 from = map1->lvls[l].from; in setup_pgtables_x86()
417 if ( lvl->from >= to || lvl->to <= from ) in setup_pgtables_x86()
419 p_s = (max(from, lvl->from) - from) >> in setup_pgtables_x86()
421 p_e = (min(to, lvl->to) - from) >> in setup_pgtables_x86()
423 pfn = ((max(from, lvl->from) - lvl->from) >> in setup_pgtables_x86()
514 xen_vaddr_t from, to; in alloc_p2m_list_x86_64() local
520 from = dom->parms.p2m_base; in alloc_p2m_list_x86_64()
521 to = from + p2m_alloc_size - 1; in alloc_p2m_list_x86_64()
522 if ( count_pgtables(dom, from, to, dom->pfn_alloc_end) ) in alloc_p2m_list_x86_64()