Lines Matching defs:pma
201 uvmpd_pma_done(struct uvm_pmalloc *pma)
203 if (pma == NULL || (pma->pm_flags & UVM_PMA_FREED))
215 struct uvm_pmalloc *pma;
241 if ((pma = TAILQ_FIRST(&uvm.pmr_control.allocs)) != NULL) {
242 pma->pm_flags |= UVM_PMA_BUSY;
243 constraint = pma->pm_constraint;
265 if (pma != NULL)
266 size += pma->pm_size >> PAGE_SHIFT;
296 if (!uvmpd_pma_done(pma) ||
298 uvmpd_scan(pma, shortage, inactive_shortage);
310 if (pma != NULL) {
316 pma->pm_flags &= ~UVM_PMA_BUSY;
317 if (pma->pm_flags & UVM_PMA_FREED) {
318 pma->pm_flags &= ~UVM_PMA_LINKED;
319 TAILQ_REMOVE(&uvm.pmr_control.allocs, pma, pmq);
320 wakeup(pma);
466 uvmpd_scan_inactive(struct uvm_pmalloc *pma, int shortage)
499 if (uvmpd_pma_done(pma) ||
500 uvmpd_match_constraint(p, &pma->pm_constraint))
515 if ((uvmpd_pma_done(pma) &&
541 !uvmpd_pma_done(pma) &&
542 !uvmpd_match_constraint(p, &pma->pm_constraint))
622 if (uvmpd_pma_done(pma) &&
912 uvmpd_scan(struct uvm_pmalloc *pma, int shortage, int inactive_shortage)
940 pages_freed = uvmpd_scan_inactive(pma, shortage);
957 uvmpd_scan_active(pma, swap_shortage, inactive_shortage);
961 uvmpd_scan_active(struct uvm_pmalloc *pma, int swap_shortage,
986 !uvmpd_pma_done(pma) &&
987 !uvmpd_match_constraint(p, &pma->pm_constraint))