Lines Matching refs:vmd
391 void vm_domain_set(struct vm_domain *vmd);
392 void vm_domain_clear(struct vm_domain *vmd);
393 int vm_domain_allocate(struct vm_domain *vmd, int req, int npages);
412 vm_paging_target(struct vm_domain *vmd) in vm_paging_target() argument
415 return (vmd->vmd_free_target - vmd->vmd_free_count); in vm_paging_target()
422 vm_paging_needed(struct vm_domain *vmd, u_int free_count) in vm_paging_needed() argument
425 return (free_count < vmd->vmd_pageout_wakeup_thresh); in vm_paging_needed()
432 vm_paging_min(struct vm_domain *vmd) in vm_paging_min() argument
435 return (vmd->vmd_free_min > vmd->vmd_free_count); in vm_paging_min()
442 vm_paging_severe(struct vm_domain *vmd) in vm_paging_severe() argument
445 return (vmd->vmd_free_severe > vmd->vmd_free_count); in vm_paging_severe()
453 vm_laundry_target(struct vm_domain *vmd) in vm_laundry_target() argument
456 return (vm_paging_target(vmd)); in vm_laundry_target()
462 vm_domain_freecnt_inc(struct vm_domain *vmd, int adj) in vm_domain_freecnt_inc() argument
466 old = atomic_fetchadd_int(&vmd->vmd_free_count, adj); in vm_domain_freecnt_inc()
472 if (old < vmd->vmd_free_min && (new >= vmd->vmd_free_min || in vm_domain_freecnt_inc()
473 (old < vmd->vmd_free_severe && new >= vmd->vmd_free_severe) || in vm_domain_freecnt_inc()
474 (old < vmd->vmd_pageout_free_min && in vm_domain_freecnt_inc()
475 new >= vmd->vmd_pageout_free_min))) in vm_domain_freecnt_inc()
476 vm_domain_clear(vmd); in vm_domain_freecnt_inc()