/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | space_reftree.c | 87 space_reftree_add_node(avl_tree_t *t, uint64_t offset, int64_t refcnt) in space_reftree_add_node() argument 93 sr->sr_refcnt = refcnt; in space_reftree_add_node() 100 int64_t refcnt) in space_reftree_add_seg() argument 102 space_reftree_add_node(t, start, refcnt); in space_reftree_add_seg() 103 space_reftree_add_node(t, end, -refcnt); in space_reftree_add_seg() 110 space_reftree_add_map(avl_tree_t *t, range_tree_t *rt, int64_t refcnt) in space_reftree_add_map() argument 117 rt), refcnt); in space_reftree_add_map() 129 int64_t refcnt = 0; in space_reftree_generate_map() local 135 refcnt += sr->sr_refcnt; in space_reftree_generate_map() 136 if (refcnt >= minref) { in space_reftree_generate_map() [all …]
|
/freebsd/usr.sbin/bluetooth/btpand/ |
H A D | packet.c | 53 chan->refcnt++; in packet_alloc() 63 if (pkt->refcnt-- > 0) in packet_free() 71 pkt->chan->refcnt--; in packet_free() 72 if (pkt->chan->refcnt == 0) in packet_free() 82 assert(pkt->refcnt == 0); in packet_adj() 101 pkt->refcnt++; in pkthdr_alloc()
|
H A D | channel.c | 84 assert(chan->refcnt == 0); in channel_open() 109 chan->refcnt++; in channel_open() 130 chan->refcnt--; in channel_close() 144 if (chan->refcnt == 0) in channel_close() 152 assert(chan->refcnt == 0); in channel_free()
|
/freebsd/sys/fs/devfs/ |
H A D | devfs_dir.c | 46 int refcnt; member 101 dle_new->refcnt = 1; in devfs_dir_ref() 106 dle->refcnt++; in devfs_dir_ref() 138 dle->refcnt--; in devfs_dir_unref() 139 KASSERT(dle->refcnt >= 0, ("devfs_dir_unref: negative refcnt")); in devfs_dir_unref() 140 if (dle->refcnt == 0) { in devfs_dir_unref()
|
/freebsd/contrib/ofed/libibverbs/ |
H A D | memory.c | 57 int refcnt; member 172 mm_root->refcnt = 0; in ibv_fork_init() 518 prev->refcnt = node->refcnt; in merge_ranges() 534 new_node->refcnt = node->refcnt; in split_range() 551 if (tmp && tmp->refcnt == node->refcnt + inc) in get_start_node() 573 node->refcnt += inc; in undo_node() 580 if (tmp && tmp->refcnt == node->refcnt) in undo_node() 584 if (tmp && tmp->refcnt == node->refcnt) in undo_node() 629 if ((inc == -1 && node->refcnt == 1) || in ibv_madvise_range() 630 (inc == 1 && node->refcnt == 0)) { in ibv_madvise_range() [all …]
|
/freebsd/lib/libsysdecode/ |
H A D | utrace.c | 45 int refcnt; member 59 mode = ut->refcnt; in print_utrace_rtld() 82 ut->refcnt); in print_utrace_rtld() 86 ut->refcnt); in print_utrace_rtld() 104 ut->handle, ut->name, ut->refcnt); in print_utrace_rtld() 193 ur.refcnt = pr->refcnt; in sysdecode_utrace()
|
/freebsd/sys/contrib/openzfs/lib/libzutil/ |
H A D | zutil_pool.c | 38 char refcnt[6]; in dump_ddt_stat() local 46 (void) strcpy(refcnt, "Total"); in dump_ddt_stat() 48 zfs_nicenum(1ULL << h, refcnt, sizeof (refcnt)); in dump_ddt_stat() 60 refcnt, in dump_ddt_stat()
|
/freebsd/sys/kern/ |
H A D | subr_firmware.c | 83 int refcnt; /* reference count */ member 250 } else if (fp->refcnt != 0) { /* cannot unregister */ in firmware_unregister() 433 if (fp->refcnt == 0 && fp->parent != NULL) in firmware_get_flags() 434 fp->parent->refcnt++; in firmware_get_flags() 435 fp->refcnt++; in firmware_get_flags() 462 fp->refcnt--; in firmware_put() 463 if (fp->refcnt == 0) { in firmware_put() 465 fp->parent->refcnt--; in firmware_put() 519 fp->refcnt != 0 || (fp->flags & FW_UNLOAD) == 0) in unloadentry() 594 fp->refcnt in firmware_binary_files() [all...] |
H A D | kern_mbuf.c | 861 volatile u_int *refcnt; in mb_unmapped_compress() local 874 refcnt = &m->m_ext.ext_count; in mb_unmapped_compress() 878 refcnt = m->m_ext.ext_cnt; in mb_unmapped_compress() 881 if (*refcnt != 1) in mb_unmapped_compress() 946 volatile u_int *refcnt; in _mb_unmapped_to_ext() local 956 refcnt = &m->m_ext.ext_count; in _mb_unmapped_to_ext() 961 refcnt = m->m_ext.ext_cnt; in _mb_unmapped_to_ext() 962 mref = __containerof(refcnt, struct mbuf, m_ext.ext_count); in _mb_unmapped_to_ext() 1045 if (*refcnt == 1) in _mb_unmapped_to_ext() 1046 *refcnt += ref_inc; in _mb_unmapped_to_ext() [all …]
|
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_doorbell.c | 41 int refcnt; member 63 page->refcnt = 0; in mlx4_ib_db_map_user() 77 ++page->refcnt; in mlx4_ib_db_map_user() 89 if (!--db->u.user_page->refcnt) { in mlx4_ib_db_unmap_user()
|
/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_doorbell.c | 39 int refcnt; member 61 page->refcnt = 0; in mlx5_ib_db_map_user() 75 ++page->refcnt; in mlx5_ib_db_map_user() 87 if (!--db->u.user_page->refcnt) { in mlx5_ib_db_unmap_user()
|
/freebsd/tools/bus_space/ |
H A D | busdma.c | 50 u_int refcnt; member 128 if (obj->refcnt == 0) { in obj_lookup() 167 tag->refcnt = 1; in bd_tag_new() 221 ptag->refcnt++; in bd_tag_derive() 234 if (tag->refcnt > 1) in bd_tag_destroy() 244 tag->parent->refcnt--; in bd_tag_destroy() 259 seg->refcnt = 1; in bd_md_add_seg() 306 md->refcnt = 1; in bd_md_create() 309 tag->refcnt++; in bd_md_create() 330 md->parent->refcnt--; in bd_md_destroy() [all …]
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_l2t.c | 83 if (atomic_load_acq_int(&e->refcnt) == 0) in t4_alloc_l2e() 86 for (e = d->l2tab; atomic_load_acq_int(&e->refcnt); ++e) in t4_alloc_l2e() 117 if (atomic_load_acq_int(&e->refcnt) == 0) { in find_or_alloc_l2e() 233 if (atomic_fetchadd_int(&e->refcnt, 1) == 0) { in t4_l2t_alloc_tls() 240 KASSERT(e->refcnt > 0, in t4_l2t_alloc_tls() 270 atomic_store_rel_int(&e->refcnt, 1); in t4_l2t_alloc_tls() 300 if (atomic_load_acq_int(&e->refcnt) == 0) { in t4_l2t_alloc_switching() 308 atomic_store_rel_int(&e->refcnt, 1); in t4_l2t_alloc_switching() 317 atomic_add_int(&e->refcnt, 1); in t4_l2t_alloc_switching() 352 atomic_store_rel_int(&e->refcnt, 0); in t4_init_l2t() [all …]
|
H A D | t4_smt.c | 78 if (atomic_load_acq_int(&e->refcnt) == 0) { in t4_find_or_alloc_sme() 101 atomic_add_int(&e->refcnt, 1); in t4_find_or_alloc_sme() 208 if (atomic_load_acq_int(&e->refcnt) == 1) { in t4_smt_set_switching() 244 atomic_store_rel_int(&e->refcnt, 0); in t4_init_smt() 333 smt_state(e), atomic_load_acq_int(&e->refcnt)); in sysctl_smt()
|
/freebsd/crypto/openssl/providers/implementations/keymgmt/ |
H A D | kdf_legacy_kmgmt.c | 46 kdfdata->refcnt = 1; in ossl_kdf_data_new() 58 CRYPTO_DOWN_REF(&kdfdata->refcnt, &ref, kdfdata->lock); in ossl_kdf_data_free() 80 CRYPTO_UP_REF(&kdfdata->refcnt, &ref, kdfdata->lock); in ossl_kdf_data_up_ref()
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | listener.c | 83 short refcnt; member 125 ++listener->refcnt; 132 int refcnt = --listener->refcnt; in listener_decref_and_unlock() local 133 if (refcnt == 0) { in listener_decref_and_unlock() 189 lev->base.refcnt = 1; in evconnlistener_new() 420 ++lev->refcnt; in listener_read_cb() 427 if (lev->refcnt == 1) { in listener_read_cb() 432 --lev->refcnt; in listener_read_cb() 445 ++lev->refcnt; in listener_read_cb() 630 ++lev->refcnt; in accepted_socket_invoke_user_cb() [all …]
|
H A D | bufferevent_filter.c | 240 if (BEV_UPCAST(bevf->underlying)->refcnt < 2) { in be_filter_unlink() 448 EVUTIL_ASSERT(bufev_private->refcnt >= 0); in be_filter_read_nolock_() 451 if (bufev_private->refcnt > 0) { in be_filter_read_nolock_() 539 EVUTIL_ASSERT(bufev_private->refcnt >= 0); in be_filter_writecb() 542 if (bufev_private->refcnt > 0) { in be_filter_writecb() 560 EVUTIL_ASSERT(bufev_private->refcnt >= 0); in be_filter_eventcb() 563 if (bufev_private->refcnt > 0) { in be_filter_eventcb()
|
/freebsd/contrib/libevent/ |
H A D | listener.c | 83 short refcnt; member 125 ++listener->refcnt; 132 int refcnt = --listener->refcnt; in listener_decref_and_unlock() local 133 if (refcnt == 0) { in listener_decref_and_unlock() 189 lev->base.refcnt = 1; in evconnlistener_new() 420 ++lev->refcnt; in listener_read_cb() 427 if (lev->refcnt == 1) { in listener_read_cb() 432 --lev->refcnt; in listener_read_cb() 445 ++lev->refcnt; in listener_read_cb() 630 ++lev->refcnt; in accepted_socket_invoke_user_cb() [all …]
|
H A D | bufferevent_filter.c | 240 if (BEV_UPCAST(bevf->underlying)->refcnt < 2) { in be_filter_unlink() 448 EVUTIL_ASSERT(bufev_private->refcnt >= 0); in be_filter_read_nolock_() 451 if (bufev_private->refcnt > 0) { in be_filter_read_nolock_() 539 EVUTIL_ASSERT(bufev_private->refcnt >= 0); in be_filter_writecb() 542 if (bufev_private->refcnt > 0) { in be_filter_writecb() 560 EVUTIL_ASSERT(bufev_private->refcnt >= 0); in be_filter_eventcb() 563 if (bufev_private->refcnt > 0) { in be_filter_eventcb()
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | evp_local.h | 90 CRYPTO_REF_COUNT refcnt; /* Context reference count */ member 101 CRYPTO_REF_COUNT refcnt; member 141 CRYPTO_REF_COUNT refcnt; member 161 CRYPTO_REF_COUNT refcnt; member 196 CRYPTO_REF_COUNT refcnt; member 217 CRYPTO_REF_COUNT refcnt; member
|
/freebsd/sys/netpfil/ipfw/ |
H A D | ip_fw_iface.c | 317 iif->no.refcnt++; in ipfw_iface_ref() 337 iif->no.refcnt = 1; in ipfw_iface_ref() 343 tmp->no.refcnt++; in ipfw_iface_ref() 411 iif->no.refcnt--; in ipfw_iface_unref() 481 i->refcnt = iif->no.refcnt; in export_iface_internal()
|
/freebsd/sys/dev/filemon/ |
H A D | filemon.c | 90 u_int refcnt; /* Pointer reference count. */ member 102 refcount_acquire(&filemon->refcnt); in filemon_acquire() 113 if (refcount_release(&filemon->refcnt) == 0) in filemon_release() 172 KASSERT(filemon->refcnt > 1, ("%s: proc %p dropping filemon %p " in filemon_proc_drop() 241 KASSERT(filemon->refcnt > 0, ("%s: filemon %p should have " in filemon_untrack_processes() 429 refcount_init(&filemon->refcnt, 1); in filemon_open()
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | mcache.c | 40 unsigned int refcnt; member 96 m->refcnt = 1; in mcc_alloc() 119 m->refcnt++; in mcc_resolve() 174 if (--m->refcnt != 0) in mcc_close_internal() 200 if (m->refcnt == 0) in mcc_destroy() 370 iter->cache->refcnt++; in mcc_get_cache_first() 390 m->next->refcnt++; in mcc_get_cache_next()
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | space_reftree.h | 48 int64_t refcnt); 49 void space_reftree_add_map(avl_tree_t *t, range_tree_t *rt, int64_t refcnt);
|
/freebsd/contrib/ofed/libmlx5/ |
H A D | srq.c | 213 if (ctx->srq_table[tind].refcnt) in mlx5_find_srq() 224 if (!ctx->srq_table[tind].refcnt) { in mlx5_store_srq() 231 ++ctx->srq_table[tind].refcnt; in mlx5_store_srq() 240 if (!--ctx->srq_table[tind].refcnt) in mlx5_clear_srq()
|