Home
last modified time | relevance | path

Searched refs:ref_count (Results 1 – 25 of 82) sorted by relevance

1234

/freebsd-12.1/sys/dev/vmware/vmci/
H A Dvmci_queue_pair.c28 uint32_t ref_count; member
354 entry->qp.ref_count = 0; in vmci_qp_guest_endpoints_exit()
466 entry->qp.ref_count = 0; in qp_guest_endpoint_create()
496 ASSERT(entry->qp.ref_count == 0); in qp_guest_endpoint_destroy()
717 queue_pair_entry->qp.ref_count++; in vmci_queue_pair_alloc_guest_work()
810 uint32_t ref_count; in vmci_queue_pair_detach_guest_work() local
828 if (entry->qp.ref_count > 1) { in vmci_queue_pair_detach_guest_work()
879 entry->qp.ref_count--; in vmci_queue_pair_detach_guest_work()
880 if (entry->qp.ref_count == 0) in vmci_queue_pair_detach_guest_work()
884 ref_count = entry ? entry->qp.ref_count : in vmci_queue_pair_detach_guest_work()
[all …]
H A Dvmci_hashtable.c129 entry->ref_count = 0; in vmci_hashtable_init_entry()
171 entry->ref_count++; in vmci_hashtable_add_entry()
214 entry->ref_count--; in vmci_hashtable_remove_entry()
215 if (entry->ref_count == 0) { in vmci_hashtable_remove_entry()
265 cur->ref_count++; in vmci_hashtable_get_entry_locked()
336 entry->ref_count++; in vmci_hashtable_hold_entry()
368 entry->ref_count--; in vmci_hashtable_release_entry_locked()
370 if (entry->ref_count == 0) { in vmci_hashtable_release_entry_locked()
H A Dvmci_event.c24 int ref_count; member
197 entry->ref_count++; in vmci_event_get()
221 ASSERT(entry->ref_count > 0); in vmci_event_release()
223 entry->ref_count--; in vmci_event_release()
224 if (entry->ref_count == 0) in vmci_event_release()
536 sub->ref_count = 1; in vmci_event_register_subscription()
H A Dvmci_hashtable.h19 int ref_count; member
/freebsd-12.1/sys/kern/
H A Dsubr_sfbuf.c129 sf->ref_count++; in sf_buf_alloc()
130 if (sf->ref_count == 1) { in sf_buf_alloc()
160 sf->ref_count = 1; in sf_buf_alloc()
184 sf->ref_count--; in sf_buf_free()
185 if (sf->ref_count == 0) { in sf_buf_free()
206 KASSERT(sf->ref_count > 0, ("%s: sf %p not allocated", __func__, sf)); in sf_buf_ref()
207 sf->ref_count++; in sf_buf_ref()
/freebsd-12.1/sys/ofed/drivers/infiniband/core/
H A Dib_fmr_pool.c157 if (fmr->ref_count !=0) { in ib_fmr_batch_release()
159 fmr, fmr->ref_count); in ib_fmr_batch_release()
303 fmr->ref_count = 0; in ib_create_fmr_pool()
436 ++fmr->ref_count; in ib_fmr_pool_map_phys()
437 if (fmr->ref_count == 1) { in ib_fmr_pool_map_phys()
470 fmr->ref_count = 1; in ib_fmr_pool_map_phys()
503 --fmr->ref_count; in ib_fmr_pool_unmap()
504 if (!fmr->ref_count) { in ib_fmr_pool_unmap()
517 if (fmr->ref_count < 0) in ib_fmr_pool_unmap()
519 fmr, fmr->ref_count); in ib_fmr_pool_unmap()
/freebsd-12.1/sys/vm/
H A Dvm_object.c222 object->ref_count = 0; in vm_object_zinit()
279 object->ref_count = 1; in _vm_object_allocate()
467 object->ref_count++; in vm_object_reference_locked()
487 if (object->ref_count == 0) { in vm_object_vndeallocate()
496 object->ref_count--; in vm_object_vndeallocate()
535 object->ref_count--; in vm_object_deallocate()
555 object->ref_count, in vm_object_deallocate()
563 object->ref_count++; in vm_object_deallocate()
585 robject->ref_count++; in vm_object_deallocate()
611 robject->ref_count--; in vm_object_deallocate()
[all …]
H A Dvm_pageout.c794 if (object->ref_count != 0) in vm_pageout_launder()
806 if (object->ref_count != 0) { in vm_pageout_launder()
843 if (object->ref_count != 0) { in vm_pageout_launder()
1232 if (m->object->ref_count != 0) in vm_pageout_scan_active()
1482 if (object->ref_count != 0) in vm_pageout_scan_inactive()
1494 if (object->ref_count != 0) { in vm_pageout_scan_inactive()
1520 if (object->ref_count != 0) { in vm_pageout_scan_inactive()
1722 obj->ref_count != 1) in vm_pageout_oom_pagecount()
H A Dvnode_pager.c158 object->ref_count--; in vnode_create_vobject()
178 if (obj->ref_count == 0) { in vnode_destroy_vobject()
262 KASSERT(object->ref_count == 1, in vnode_pager_alloc()
263 ("leaked ref %p %d", object, object->ref_count)); in vnode_pager_alloc()
265 object->ref_count = 0; in vnode_pager_alloc()
273 object->ref_count++; in vnode_pager_alloc()
298 refs = object->ref_count; in vnode_pager_dealloc()
H A Dvm_meter.c155 return (obj->ref_count > obj->shadow_count); in is_object_active()
251 if (object->ref_count == 0) { in vmtotal()
258 if (object->ref_count == 1 && in vmtotal()
/freebsd-12.1/sys/fs/procfs/
H A Dprocfs_map.c88 int error, privateresident, ref_count, resident, shadow_count, flags; in procfs_doprocmap() local
189 ref_count = obj->ref_count; in procfs_doprocmap()
199 ref_count = 0; in procfs_doprocmap()
220 ref_count, shadow_count, flags, in procfs_doprocmap()
/freebsd-12.1/contrib/subversion/subversion/libsvn_subr/
H A Dobject_pool.c59 volatile svn_atomic_t ref_count; member
124 if (svn_atomic_read(&object_ref->ref_count) == 0) in remove_unused_objects()
155 if (svn_atomic_dec(&object->ref_count) == 0) in object_ref_cleanup()
172 if (svn_atomic_inc(&object_ref->ref_count) == 0) in add_object_ref()
/freebsd-12.1/contrib/gcc/
H A Dtree-ssa-live.h49 int *ref_count; member
98 gcc_assert (map->ref_count); in version_ref_count()
99 return map->ref_count[version]; in version_ref_count()
188 if (is_use && map->ref_count) in register_ssa_partition()
189 map->ref_count[version]++; in register_ssa_partition()
/freebsd-12.1/sys/dev/mlx4/mlx4_core/
H A Dmlx4_resource_tracker.c57 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
1981 ++res->ref_count; in mac_add_to_slave()
1996 res->ref_count = 1; in mac_add_to_slave()
2013 if (!--res->ref_count) { in mac_del_from_slave()
2088 ++res->ref_count; in vlan_add_to_slave()
[all …]
/freebsd-12.1/contrib/subversion/subversion/libsvn_fs_fs/
H A Dstats.c88 apr_uint32_t ref_count; member
632 if (++text->ref_count == 1) in read_noderev()
643 if (++props->ref_count == 1) in read_noderev()
649 if (text && text->ref_count == 1) in read_noderev()
652 if (props && props->ref_count == 1) in read_noderev()
659 if ( noderev->kind == svn_node_dir && text && text->ref_count == 1 in read_noderev()
1250 if (rep->ref_count == 1) in add_rep_stats()
1255 stats->references += rep->ref_count; in add_rep_stats()
1256 stats->expanded_size += rep->ref_count * rep->expanded_size; in add_rep_stats()
/freebsd-12.1/sys/riscv/riscv/
H A Dbusdma_machdep.c156 common->ref_count = 1; /* Count ourself */ in common_bus_dma_tag_create()
185 atomic_add_int(&parent->ref_count, 1); in common_bus_dma_tag_create()
/freebsd-12.1/sys/arm64/arm64/
H A Dbusdma_machdep.c156 common->ref_count = 1; /* Count ourself */ in common_bus_dma_tag_create()
185 atomic_add_int(&parent->ref_count, 1); in common_bus_dma_tag_create()
/freebsd-12.1/sys/netinet/
H A Dsctp_timer.c690 atomic_add_int(&alt->ref_count, 1); in sctp_mark_all_for_resend()
752 atomic_add_int(&alt->ref_count, 1); in sctp_mark_all_for_resend()
958 atomic_add_int(&stcb->asoc.alternate->ref_count, 1); in sctp_t3rxt_timer()
1089 atomic_add_int(&alt->ref_count, 1); in sctp_cookie_timer()
1134 atomic_add_int(&alt->ref_count, 1); in sctp_strreset_timer()
1147 atomic_add_int(&alt->ref_count, 1); in sctp_strreset_timer()
1216 atomic_add_int(&alt->ref_count, 1); in sctp_asconf_timer()
1230 atomic_add_int(&alt->ref_count, 1); in sctp_asconf_timer()
1237 atomic_add_int(&alt->ref_count, 1); in sctp_asconf_timer()
/freebsd-12.1/sys/x86/x86/
H A Dbusdma_machdep.c159 common->ref_count = 1; /* Count ourself */ in common_bus_dma_tag_create()
189 atomic_add_int(&parent->ref_count, 1); in common_bus_dma_tag_create()
/freebsd-12.1/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_core.c186 BUG_ON(service->ref_count == 0); in find_service_by_handle()
187 service->ref_count++; in find_service_by_handle()
208 service->ref_count++; in find_service_by_port()
232 service->ref_count++; in find_service_for_instance()
257 service->ref_count++; in find_closed_service_for_instance()
283 service->ref_count++; in next_service_by_instance()
300 service->ref_count++; in lock_service()
311 service->ref_count--; in unlock_service()
312 if (!service->ref_count) { in unlock_service()
2570 service->ref_count = 1; in vchiq_add_service_internal()
[all …]
/freebsd-12.1/sys/ofed/include/rdma/
H A Dib_fmr_pool.h76 int ref_count; member
/freebsd-12.1/contrib/libpcap/
H A Dpcap-dos.c89 static int ref_count = 0; variable
201 pcap->fd = ++ref_count; in pcap_activate_dos()
477 if (ref_count > 0) in pcap_cleanup_dos()
478 ref_count--; in pcap_cleanup_dos()
479 if (ref_count > 0) in pcap_cleanup_dos()
/freebsd-12.1/sys/netpfil/ipfw/
H A Ddn_aqm_codel.c312 codel_desc.ref_count++; in aqm_codel_init()
329 codel_desc.ref_count--; in aqm_codel_cleanup()
H A Ddn_sched_fq_codel.c477 fq_codel_desc.ref_count++; in fq_codel_new_sched()
492 fq_codel_desc.ref_count--; in fq_codel_free_sched()
615 _SI( .ref_count = ) 0
H A Ddn_aqm.h112 int ref_count; /*Number of queues instances in the system */ member

1234