Lines Matching defs:pages

1174 	u_int slabs, pages;
1186 pages = keg->uk_domain[0].ud_pages;
1195 if ((slabs = pages / keg->uk_ppera) > keg->uk_hash.uh_hashsize) {
1272 * path, otherwise, we can recurse on the vm while allocating pages.
1690 * Frees pages from a keg back to the system. This is done on demand from
1780 * This reproduces the old vm_zone behavior of zero filling pages the
1805 /* For HASH zones all pages go to the same uma_domain. */
1879 int i, pages;
1881 pages = howmany(bytes, PAGE_SIZE);
1882 KASSERT(pages > 0, ("%s can't reserve 0 pages", __func__));
1886 VM_ALLOC_WIRED, pages, (vm_paddr_t)0, ~(vm_paddr_t)0, 1, 0,
1892 for (i = 0; i < pages; i++, pa += PAGE_SIZE) {
1901 m->phys_addr + (pages * PAGE_SIZE), VM_PROT_READ | VM_PROT_WRITE));
1929 * Allocates a number of pages from the system
2006 * Allocates a number of pages not belonging to a VM object
2046 * Page allocation failed, free intermediate pages and
2068 * Allocate physically contiguous pages.
2103 * Frees a number of pages to the system
2302 u_int pages;
2339 * To do this we will span pages. We will also extend the item
2351 * Start with a slab size of as many pages as it takes to
2428 pages = atop(kl.slabsize);
2430 pages *= mp_maxid + 1;
2434 keg->uk_ppera = pages;
2452 pages);
2456 keg->uk_ipers, pages));
2688 "pages per-slab allocation");
2710 "pages", CTLFLAG_RD, &dom->ud_pages, 0,
2711 "Total pages currently allocated from VM");
3012 uint32_t free, pages;
3016 free = pages = 0;
3019 pages += keg->uk_domain[i].ud_pages;
3022 if (pages != 0)
3024 " Lost %u pages of memory.\n",
3026 pages / keg->uk_ppera * keg->uk_ipers - free, pages);
3114 * Initialize the kernel memory allocator. This is done after pages can be
5201 u_int pages;
5207 pages = howmany(count, keg->uk_ipers) * keg->uk_ppera;
5214 kva = kva_alloc((vm_size_t)pages * PAGE_SIZE);
5223 zone->uz_max_items = pages * keg->uk_ipers;
5344 * we visit again so that we can free pages that are empty once other
5549 uint32_t kfree, pages;
5579 kfree = pages = 0;
5582 pages += kz->uk_domain[i].ud_pages;
5595 uth.uth_pages = pages;