Lines Matching refs:ref_count

505 	m->ref_count = 0;  in vm_page_init_page()
1334 m->ref_count = 1; in vm_page_initfake()
1500 m->ref_count |= VPRC_OBJREF; in vm_page_insert_lookup()
1516 m->ref_count &= ~VPRC_OBJREF; in vm_page_insert_lookup()
1598 KASSERT((m->ref_count & VPRC_OBJREF) != 0, in vm_page_insert_radixdone()
1655 KASSERT((m->ref_count & VPRC_OBJREF) != 0, in vm_page_remove_radixdone()
1703 m->ref_count == VPRC_OBJREF, in vm_page_free_object_prep()
1705 __func__, m, m->ref_count)); in vm_page_free_object_prep()
1707 m->ref_count -= VPRC_OBJREF; in vm_page_free_object_prep()
1983 KASSERT(mnew->object == NULL && (mnew->ref_count & VPRC_OBJREF) == 0, in vm_page_replace_hold()
1994 atomic_set_int(&mnew->ref_count, VPRC_OBJREF); in vm_page_replace_hold()
2055 KASSERT((m->ref_count & VPRC_OBJREF) != 0, in vm_page_iter_rename()
2314 m->ref_count = 1; in vm_page_alloc_domain_after()
2321 m->ref_count = 0; in vm_page_alloc_domain_after()
2520 m->ref_count = 1; in vm_page_alloc_contig_domain()
2533 m->ref_count = 0; in vm_page_alloc_contig_domain()
2625 m->ref_count = 1; in vm_page_alloc_noobj_domain()
2767 m->ref_count = 1; in vm_page_alloc_noobj_contig_domain()
2798 KASSERT(m->ref_count == 0, ("page %p has references", m)); in vm_page_alloc_check()
2897 KASSERT((m->flags & PG_FICTITIOUS) == 0 || m->ref_count >= 1, in vm_page_scan_contig()
3152 if (object->ref_count != 0 && in vm_page_reclaim_run()
4108 KASSERT(m->ref_count > 0, in vm_page_enqueue()
4174 KASSERT(m->ref_count == 1, in vm_page_free_prep()
4192 if (m->ref_count != 0) in vm_page_free_prep()
4287 VPRC_WIRE_COUNT(m->ref_count) >= 1, in vm_page_wire()
4290 old = atomic_fetchadd_int(&m->ref_count, 1); in vm_page_wire()
4312 old = atomic_load_int(&m->ref_count); in vm_page_wire_mapped()
4318 } while (!atomic_fcmpset_int(&m->ref_count, &old, old + 1)); in vm_page_wire_mapped()
4346 old = atomic_load_int(&m->ref_count); in vm_page_unwire_managed()
4375 } while (!atomic_fcmpset_rel_int(&m->ref_count, &old, old - 1)); in vm_page_unwire_managed()
4402 if (vm_page_unwire_noq(m) && m->ref_count == 0) in vm_page_unwire()
4444 KASSERT(m->ref_count > 0, in vm_page_mvqueue()
4615 (m->object->ref_count == 0 || !pmap_page_is_mapped(m)) && in vm_page_release_locked()
4644 old = atomic_load_int(&m->ref_count); in vm_page_try_blocked_op()
4652 } while (!atomic_fcmpset_int(&m->ref_count, &old, old | VPRC_BLOCKED)); in vm_page_try_blocked_op()
5703 if (object->ref_count != 0 && vm_page_all_valid(m) && bits != 0) in vm_page_set_invalid()
6002 m->a.queue, m->ref_count, m->a.flags, m->oflags, in DB_SHOW_COMMAND()