Searched refs:npage (Results 1 – 2 of 2) sorted by relevance
162 int npage = (nent * sizeof (void *) + PAGE_SIZE - 1) / PAGE_SIZE; in mthca_array_init() local165 array->page_list = kmalloc(npage * sizeof *array->page_list, GFP_KERNEL); in mthca_array_init()169 for (i = 0; i < npage; ++i) { in mthca_array_init()
1623 vm_ooffset_t npage; in mdcreate_swap() local1641 npage = mdr->md_mediasize / PAGE_SIZE; in mdcreate_swap()1646 sc->object = vm_pager_allocate(OBJT_SWAP, NULL, PAGE_SIZE * npage, in mdcreate_swap()1652 if (swap_pager_reserve(sc->object, 0, npage) < 0) { in mdcreate_swap()