/freebsd/sys/dev/vmware/vmci/ |
H A D | vmci_queue_pair.c | 26 uint32_t ref_count; member 355 entry->qp.ref_count = 0; in vmci_qp_guest_endpoints_exit() 467 entry->qp.ref_count = 0; in qp_guest_endpoint_create() 497 ASSERT(entry->qp.ref_count == 0); in qp_guest_endpoint_destroy() 614 if (queue_pair_entry->qp.ref_count > 1) { in vmci_queue_pair_alloc_guest_work() 718 queue_pair_entry->qp.ref_count++; in vmci_queue_pair_alloc_guest_work() 729 queue_pair_entry->qp.ref_count == 1) { in vmci_queue_pair_alloc_guest_work() 753 ASSERT(queue_pair_entry->qp.ref_count > 0); in vmci_queue_pair_alloc_guest_work() 811 uint32_t ref_count; in vmci_queue_pair_detach_guest_work() local 824 ASSERT(entry->qp.ref_count >= 1); in vmci_queue_pair_detach_guest_work() [all …]
|
H A D | vmci_hashtable.c | 127 entry->ref_count = 0; in vmci_hashtable_init_entry() 169 entry->ref_count++; in vmci_hashtable_add_entry() 212 entry->ref_count--; in vmci_hashtable_remove_entry() 213 if (entry->ref_count == 0) { in vmci_hashtable_remove_entry() 263 cur->ref_count++; in vmci_hashtable_get_entry_locked() 334 entry->ref_count++; in vmci_hashtable_hold_entry() 366 entry->ref_count--; in vmci_hashtable_release_entry_locked() 368 if (entry->ref_count == 0) { in vmci_hashtable_release_entry_locked()
|
H A D | vmci_event.c | 22 int ref_count; member 194 entry->ref_count++; in vmci_event_get() 218 ASSERT(entry->ref_count > 0); in vmci_event_release() 220 entry->ref_count--; in vmci_event_release() 221 if (entry->ref_count == 0) in vmci_event_release() 533 sub->ref_count = 1; in vmci_event_register_subscription()
|
H A D | vmci_hashtable.h | 17 int ref_count; member
|
/freebsd/sys/kern/ |
H A D | subr_sfbuf.c | 126 sf->ref_count++; in sf_buf_alloc() 127 if (sf->ref_count == 1) { in sf_buf_alloc() 157 sf->ref_count = 1; in sf_buf_alloc() 181 sf->ref_count--; in sf_buf_free() 182 if (sf->ref_count == 0) { in sf_buf_free() 203 KASSERT(sf->ref_count > 0, ("%s: sf %p not allocated", __func__, sf)); in sf_buf_ref() 204 sf->ref_count++; in sf_buf_ref()
|
/freebsd/sys/vm/ |
H A D | vm_object.c | 182 KASSERT(object->ref_count == 0, in vm_object_zdtor() 183 ("object %p ref_count = %d", object, object->ref_count)); in vm_object_zdtor() 221 refcount_init(&object->ref_count, 0); in vm_object_zinit() 261 refcount_init(&object->ref_count, 1); in _vm_object_allocate() 489 if (!refcount_acquire_if_gt(&object->ref_count, 0)) { in vm_object_reference_vnode() 491 old = refcount_acquire(&object->ref_count); in vm_object_reference_vnode() 513 refcount_acquire(&object->ref_count); in vm_object_reference() 531 old = refcount_acquire(&object->ref_count); in vm_object_reference_locked() 552 last = refcount_release(&object->ref_count); in vm_object_deallocate_vnode() 580 backing_object->ref_count, in vm_object_deallocate_anon() [all …]
|
H A D | vm_page.c | 506 m->ref_count = 0; in vm_page_init_page() 1337 m->ref_count = 1; in vm_page_initfake() 1503 m->ref_count |= VPRC_OBJREF; in vm_page_insert_lookup() 1519 m->ref_count &= ~VPRC_OBJREF; in vm_page_insert_lookup() 1601 KASSERT((m->ref_count & VPRC_OBJREF) != 0, in vm_page_insert_radixdone() 1658 KASSERT((m->ref_count & VPRC_OBJREF) != 0, in vm_page_remove_radixdone() 1706 m->ref_count == VPRC_OBJREF, in vm_page_free_object_prep() 1708 __func__, m, m->ref_count)); in vm_page_free_object_prep() 1710 m->ref_count -= VPRC_OBJREF; in vm_page_free_object_prep() 2021 KASSERT(mnew->object == NULL && (mnew->ref_count & VPRC_OBJREF) == 0, in vm_page_replace_hold() [all …]
|
H A D | vm_page.h | 241 u_int ref_count; /* page references (A) */ member 962 r = m->ref_count; in vm_page_clearref() 963 while (atomic_fcmpset_int(&m->ref_count, &r, r & (VPRC_BLOCKED | in vm_page_clearref() 983 old = atomic_fetchadd_int(&m->ref_count, -val); in vm_page_drop() 1001 return (VPRC_WIRE_COUNT(m->ref_count) > 0); in vm_page_wired()
|
H A D | vm_pageout.c | 780 refs = object->ref_count != 0 ? pmap_ts_referenced(m) : 0; in vm_pageout_launder() 800 } else if (object->ref_count != 0) { in vm_pageout_launder() 846 if (object->ref_count != 0) { in vm_pageout_launder() 1247 refs = object->ref_count != 0 ? pmap_ts_referenced(m) : 0; in vm_pageout_scan_active() 1511 refs = object->ref_count != 0 ? pmap_ts_referenced(m) : 0; in vm_pageout_scan_inactive() 1531 } else if (object->ref_count != 0) { in vm_pageout_scan_inactive() 1569 if (object->ref_count != 0) { in vm_pageout_scan_inactive() 1857 obj->ref_count != 1) in vm_pageout_oom_pagecount()
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_fmr_pool.c | 155 if (fmr->ref_count !=0) { in ib_fmr_batch_release() 157 fmr, fmr->ref_count); in ib_fmr_batch_release() 301 fmr->ref_count = 0; in ib_create_fmr_pool() 434 ++fmr->ref_count; in ib_fmr_pool_map_phys() 435 if (fmr->ref_count == 1) { in ib_fmr_pool_map_phys() 468 fmr->ref_count = 1; in ib_fmr_pool_map_phys() 501 --fmr->ref_count; in ib_fmr_pool_unmap() 502 if (!fmr->ref_count) { in ib_fmr_pool_unmap() 515 if (fmr->ref_count < 0) in ib_fmr_pool_unmap() 517 fmr, fmr->ref_count); in ib_fmr_pool_unmap()
|
/freebsd/sys/fs/procfs/ |
H A D | procfs_map.c | 85 int error, flags, kvme, privateresident, ref_count, resident; in procfs_doprocmap() local 185 ref_count = obj->ref_count; in procfs_doprocmap() 195 ref_count = 0; in procfs_doprocmap() 217 ref_count, shadow_count, flags, in procfs_doprocmap()
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_uar.c | 82 struct mlx5_uars_page *up = container_of(kref, struct mlx5_uars_page, ref_count); in up_rel_func() 146 kref_init(&up->ref_count); in alloc_uars_page() 169 kref_get(&ret->ref_count); in mlx5_get_uars_page() 186 kref_put(&up->ref_count, up_rel_func); in mlx5_put_uars_page() 230 kref_get(&up->ref_count); in alloc_bfreg() 321 kref_put(&up->ref_count, up_rel_func); in mlx5_free_bfreg()
|
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_resource_tracker.c | 57 int ref_count; member 65 int ref_count; member 115 atomic_t ref_count; member 144 atomic_t ref_count; member 180 atomic_t ref_count; member 193 atomic_t ref_count; member 1010 atomic_set(&ret->ref_count, 0); in alloc_qp_tr() 1026 atomic_set(&ret->ref_count, 0); in alloc_mtt_tr() 1070 atomic_set(&ret->ref_count, 0); in alloc_cq_tr() 1085 atomic_set(&ret->ref_count, 0); in alloc_srq_tr() [all …]
|
/freebsd/sys/dev/qat/qat_common/ |
H A D | adf_dev_mgr.c | 340 return atomic_read(&accel_dev->ref_count) != 0; in adf_dev_in_use() 357 if (atomic_add_return(1, &accel_dev->ref_count) == 1) in adf_dev_get() 375 if (atomic_sub_return(1, &accel_dev->ref_count) == 0) in adf_dev_put()
|
/freebsd/sys/dev/bnxt/bnxt_en/ |
H A D | bnxt_ulp.c | 73 atomic_set(&ulp->ref_count, 0); in bnxt_register_dev() 109 while (atomic_read(&ulp->ref_count) != 0 && i < 10) { in bnxt_unregister_dev() 219 atomic_inc(&ulp->ref_count); in bnxt_ulp_get() 224 atomic_dec(&ulp->ref_count); in bnxt_ulp_put()
|
/freebsd/sys/dev/bnxt/bnxt_re/ |
H A D | bnxt_re.h | 483 atomic_t ref_count; member 735 atomic_inc(&rdev->ref_count); in bnxt_re_hold() 737 "Hold ref_count = 0x%x", atomic_read(&rdev->ref_count)); in bnxt_re_hold() 742 atomic_dec(&rdev->ref_count); in bnxt_re_put() 744 "Put ref_count = 0x%x", atomic_read(&rdev->ref_count)); in bnxt_re_put()
|
/freebsd/sys/netinet/ |
H A D | sctp_timer.c | 697 atomic_add_int(&alt->ref_count, 1); in sctp_mark_all_for_resend() 759 atomic_add_int(&alt->ref_count, 1); in sctp_mark_all_for_resend() 961 atomic_add_int(&stcb->asoc.alternate->ref_count, 1); in sctp_t3rxt_timer() 1097 atomic_add_int(&alt->ref_count, 1); in sctp_cookie_timer() 1140 atomic_add_int(&alt->ref_count, 1); in sctp_strreset_timer() 1153 atomic_add_int(&alt->ref_count, 1); in sctp_strreset_timer() 1224 atomic_add_int(&alt->ref_count, 1); in sctp_asconf_timer() 1238 atomic_add_int(&alt->ref_count, 1); in sctp_asconf_timer() 1245 atomic_add_int(&alt->ref_count, 1); in sctp_asconf_timer()
|
/freebsd/sys/dev/gve/ |
H A D | gve_rx_dqo.c | 227 u_int ref_count = atomic_load_int(&page->ref_count); in gve_clear_rx_ring_dqo() local 233 if (VPRC_WIRE_COUNT(ref_count) == 1) in gve_clear_rx_ring_dqo() 376 u_int ref_count; in gve_rx_maybe_extract_from_used_bufs() local 385 ref_count = atomic_load_int(&page->ref_count); in gve_rx_maybe_extract_from_used_bufs() 387 if (VPRC_WIRE_COUNT(ref_count) != 1) { in gve_rx_maybe_extract_from_used_bufs()
|
H A D | gve_rx.c | 427 u_int ref_count; in gve_rx_create_mbuf() local 461 ref_count = atomic_load_int(&page_info->page->ref_count); in gve_rx_create_mbuf() 462 can_flip = VPRC_WIRE_COUNT(ref_count) == 1; in gve_rx_create_mbuf()
|
/freebsd/sys/ofed/include/rdma/ |
H A D | ib_fmr_pool.h | 74 int ref_count; member
|
/freebsd/sys/contrib/vchiq/interface/vchiq_arm/ |
H A D | vchiq_core.c | 186 BUG_ON(service->ref_count == 0); in find_service_by_handle() 187 service->ref_count++; in find_service_by_handle() 207 BUG_ON(service->ref_count == 0); in find_service_by_port() 208 service->ref_count++; in find_service_by_port() 231 BUG_ON(service->ref_count == 0); in find_service_for_instance() 232 service->ref_count++; in find_service_for_instance() 256 BUG_ON(service->ref_count == 0); in find_closed_service_for_instance() 257 service->ref_count++; in find_closed_service_for_instance() 282 BUG_ON(service->ref_count == 0); in next_service_by_instance() 283 service->ref_count++; in next_service_by_instance() [all …]
|
/freebsd/sys/riscv/riscv/ |
H A D | pmap.c | 1424 KASSERT(m->ref_count > 0, in pmap_unwire_ptp() 1427 --m->ref_count; in pmap_unwire_ptp() 1428 if (m->ref_count == 0) { in pmap_unwire_ptp() 1667 pdpg->ref_count++; in _pmap_alloc_l3() 1692 pdpg->ref_count++; in _pmap_alloc_l3() 1716 pdpg->ref_count++; in _pmap_alloc_l3() 1756 l2pg->ref_count++; in pmap_alloc_l2() 1790 m->ref_count++; in pmap_alloc_l3() 2452 KASSERT(ml3->ref_count == Ln_ENTRIES, in pmap_remove_l2() 2454 ml3->ref_count = 1; in pmap_remove_l2() [all …]
|
/freebsd/sys/powerpc/aim/ |
H A D | mmu_radix.c | 1539 m_pc->ref_count = 1; in reclaim_pv_chunk() 2592 dst_pdpg->ref_count--; in mmu_radix_copy() 2598 KASSERT(srcmpte->ref_count > 0, in mmu_radix_copy() 2616 dstmpte->ref_count++; in mmu_radix_copy() 2653 if (dstmpte->ref_count >= srcmpte->ref_count) in mmu_radix_copy() 2905 mpte->ref_count++; in mmu_radix_enter() 2959 mpte->ref_count--; in mmu_radix_enter() 2960 KASSERT(mpte->ref_count > 0, in mmu_radix_enter() 3119 if ((mpte == NULL || mpte->ref_count in mmu_radix_enter() [all...] |
/freebsd/sys/arm64/arm64/ |
H A D | pmap.c | 2417 --m->ref_count; in pmap_unwire_l3() 2418 if (m->ref_count == 0) { in pmap_unwire_l3() 2692 l1pg->ref_count++; in _pmap_alloc_l3() 2735 l2pg->ref_count++; in _pmap_alloc_l3() 2769 l2pg->ref_count++; in pmap_alloc_l2() 2838 m->ref_count++; in pmap_alloc_l3() 3234 m_pc->ref_count = 1; in reclaim_pv_chunk_domain() 3758 KASSERT(ml3->ref_count == NL3PG, in pmap_remove_l2() 3760 ml3->ref_count = 0; in pmap_remove_l2() 3885 ml3->ref_count -= L3C_ENTRIES; in pmap_remove_l3c() [all …]
|
/freebsd/sys/arm64/iommu/ |
H A D | iommu_pmap.c | 338 --m->ref_count; in smmu_pmap_unwire_l3() 339 if (m->ref_count == 0) { in smmu_pmap_unwire_l3() 495 l1pg->ref_count++; in _pmap_alloc_l3() 535 l2pg->ref_count++; in _pmap_alloc_l3()
|