Lines Matching refs:popcnt
156 * within that object. The reservation's "popcnt" tracks the number of these
170 int popcnt; /* # of pages in use */
192 * "object" field and a non-zero "popcnt" field. In other words, every active
262 fullpop += rv->popcnt == VM_LEVEL_0_NPAGES;
290 unused_pages += VM_LEVEL_0_NPAGES - rv->popcnt;
319 KASSERT(rv->popcnt > 0,
320 ("vm_reserv_depopulate: reserv %p's popcnt is corrupted", rv));
331 rv->popcnt--;
332 if (rv->popcnt == 0) {
380 KASSERT(rv->popcnt < VM_LEVEL_0_NPAGES,
389 rv->popcnt++;
390 if (rv->popcnt < VM_LEVEL_0_NPAGES) {
553 KASSERT(rv->popcnt == 0,
554 ("vm_reserv_alloc_contig: reserv %p's popcnt is corrupted",
698 KASSERT(rv->popcnt == 0,
699 ("vm_reserv_alloc_page: reserv %p's popcnt is corrupted", rv));
754 rv->popcnt++;
763 rv->popcnt -= NBPOPMAP - hi;
768 rv->popcnt -= NBPOPMAP;
782 rv->popcnt -= lo - hi;
795 KASSERT(rv->popcnt == 0,
796 ("vm_reserv_break: reserv %p's popcnt is corrupted", rv));
907 return (rv->popcnt == VM_LEVEL_0_NPAGES ? 0 : -1);