Lines Matching refs:pages
531 xen_pfn_t pages) in xc_dom_chk_alloc_pages() argument
535 if ( pages > dom->total_pages || /* multiple test avoids overflow probs */ in xc_dom_chk_alloc_pages()
537 pages > dom->total_pages - dom->pfn_alloc_end + dom->rambase_pfn ) in xc_dom_chk_alloc_pages()
542 pages, dom->total_pages, in xc_dom_chk_alloc_pages()
547 dom->pfn_alloc_end += pages; in xc_dom_chk_alloc_pages()
548 dom->virt_alloc_end += pages * page_size; in xc_dom_chk_alloc_pages()
559 xen_pfn_t pages; in xc_dom_alloc_pad() local
575 pages = (boundary - dom->virt_alloc_end) / page_size; in xc_dom_alloc_pad()
577 return xc_dom_chk_alloc_pages(dom, "padding", pages); in xc_dom_alloc_pad()
585 xen_pfn_t pages; in xc_dom_alloc_segment() local
591 pages = (size + page_size - 1) / page_size; in xc_dom_alloc_segment()
595 seg->pages = pages; in xc_dom_alloc_segment()
597 if ( xc_dom_chk_alloc_pages(dom, name, pages) ) in xc_dom_alloc_segment()
604 memset(ptr, 0, pages * page_size); in xc_dom_alloc_segment()
611 __FUNCTION__, name, seg->vstart, seg->vend, seg->pfn, pages); in xc_dom_alloc_segment()
1245 dom->initrd_len = page_size * dom->modules[mod].seg.pages; in xc_dom_build_image()