Lines Matching refs:pages
540 xen_pfn_t pages) in xc_dom_chk_alloc_pages() argument
544 if ( pages > dom->total_pages || /* multiple test avoids overflow probs */ in xc_dom_chk_alloc_pages()
546 pages > dom->total_pages - dom->pfn_alloc_end + dom->rambase_pfn ) in xc_dom_chk_alloc_pages()
551 pages, dom->total_pages, in xc_dom_chk_alloc_pages()
556 dom->pfn_alloc_end += pages; in xc_dom_chk_alloc_pages()
557 dom->virt_alloc_end += pages * page_size; in xc_dom_chk_alloc_pages()
568 xen_pfn_t pages; in xc_dom_alloc_pad() local
584 pages = (boundary - dom->virt_alloc_end) / page_size; in xc_dom_alloc_pad()
586 return xc_dom_chk_alloc_pages(dom, "padding", pages); in xc_dom_alloc_pad()
594 xen_pfn_t pages; in xc_dom_alloc_segment() local
600 pages = (size + page_size - 1) / page_size; in xc_dom_alloc_segment()
604 seg->pages = pages; in xc_dom_alloc_segment()
606 if ( xc_dom_chk_alloc_pages(dom, name, pages) ) in xc_dom_alloc_segment()
613 memset(ptr, 0, pages * page_size); in xc_dom_alloc_segment()
620 __FUNCTION__, name, seg->vstart, seg->vend, seg->pfn, pages); in xc_dom_alloc_segment()
1274 dom->initrd_len = page_size * dom->modules[mod].seg.pages; in xc_dom_build_image()