Lines Matching refs:pages
397 pgcnt_t pages = 0; in segkp_get_internal() local
430 pages = btop(SEGKP_MAPLEN(len, flags)); in segkp_get_internal()
431 if (page_resv(pages, kmflag) == 0) { in segkp_get_internal()
437 atomic_add_long(&anon_segkp_pages_locked, pages); in segkp_get_internal()
464 -pages); in segkp_get_internal()
465 page_unresv(pages); in segkp_get_internal()
748 pgcnt_t pages = btop(SEGKP_MAPLEN(kpd->kp_len, kpd->kp_flags)); in segkp_release_internal() local
750 atomic_add_long(&anon_segkp_pages_locked, -pages); in segkp_release_internal()
751 page_unresv(pages); in segkp_release_internal()
1106 pgcnt_t pages = btop(len); in segkp_load() local
1108 atomic_add_long(&anon_segkp_pages_locked, pages); in segkp_load()
1109 (void) page_resv(pages, KM_SLEEP); in segkp_load()
1261 pgcnt_t pages = btopr(len); in segkp_unlock() local
1263 atomic_add_long(&anon_segkp_pages_locked, -pages); in segkp_unlock()
1264 page_unresv(pages); in segkp_unlock()