Lines Matching defs:pages

1023 	u_int slabs, pages;
1035 pages = keg->uk_domain[0].ud_pages;
1044 if ((slabs = pages / keg->uk_ppera) > keg->uk_hash.uh_hashsize) {
1119 * path, otherwise, we can recurse on the vm while allocating pages.
1530 * Frees pages from a keg back to the system. This is done on demand from
1638 * This reproduces the old vm_zone behavior of zero filling pages the
1663 /* For HASH zones all pages go to the same uma_domain. */
1733 int pages;
1736 pages = howmany(bytes, PAGE_SIZE);
1737 KASSERT(pages > 0, ("%s can't reserve 0 pages", __func__));
1741 malloc2vm_flags(wait) | VM_ALLOC_NOOBJ | VM_ALLOC_WIRED, pages,
1747 for (i = 0; i < pages; i++, pa += PAGE_SIZE) {
1756 m->phys_addr + (pages * PAGE_SIZE), VM_PROT_READ | VM_PROT_WRITE);
1758 bzero(mem, pages * PAGE_SIZE);
1789 * Allocates a number of pages from the system
1867 * Allocates a number of pages from within an object
1906 * Page allocation failed, free intermediate pages and
1928 * Allocate physically contiguous pages.
1941 * Frees a number of pages to the system
2125 u_int pages;
2154 * To do this we will span pages. We will also extend the item
2166 * Start with a slab size of as many pages as it takes to
2243 pages = atop(kl.slabsize);
2245 pages *= mp_maxid + 1;
2249 keg->uk_ppera = pages;
2267 pages);
2271 keg->uk_ipers, pages));
2503 "pages per-slab allocation");
2525 "pages", CTLFLAG_RD, &dom->ud_pages, 0,
2526 "Total pages currently allocated from VM");
2821 uint32_t free, pages;
2825 free = pages = 0;
2828 pages += keg->uk_domain[i].ud_pages;
2831 if (pages != 0)
2833 " Lost %u pages of memory.\n",
2835 pages / keg->uk_ppera * keg->uk_ipers - free, pages);
2923 * Initialize the kernel memory allocator. This is done after pages can be
4902 u_int pages;
4908 pages = howmany(count, keg->uk_ipers) * keg->uk_ppera;
4915 kva = kva_alloc((vm_size_t)pages * PAGE_SIZE);
4924 zone->uz_max_items = pages * keg->uk_ipers;
5030 * we visit again so that we can free pages that are empty once other
5238 uint32_t kfree, pages;
5268 kfree = pages = 0;
5271 pages += kz->uk_domain[i].ud_pages;
5284 uth.uth_pages = pages;