Home
last modified time | relevance | path

Searched refs:ref_cnt (Results 1 – 19 of 19) sorted by relevance

/netbsd-src/sys/dev/dm/
H A Ddm_pdev.c98 dmp->ref_cnt++; in dm_pdev_insert()
128 dmp->ref_cnt = 1; in dm_pdev_insert()
164 dmp->ref_cnt = 0; in dm_pdev_alloc()
235 if (--dmp->ref_cnt == 0) { in dm_pdev_decr()
256 dmp->name, dmp->ref_cnt, dmp->list_ref_cnt);
H A Ddm_dev.c61 while (dmv->ref_cnt != 0) in disable_dev()
289 while (dmv->ref_cnt != 0) in dm_dev_destroy()
351 dmv->ref_cnt++; in dm_dev_busy()
359 KASSERT(dmv->ref_cnt != 0); in dm_dev_unbusy()
362 if (--dmv->ref_cnt == 0) in dm_dev_unbusy()
H A Ddm_target.c58 atomic_inc_32(&target->ref_cnt); in dm_target_busy()
68 KASSERT(target->ref_cnt > 0); in dm_target_unbusy()
69 atomic_dec_32(&target->ref_cnt); in dm_target_unbusy()
209 if (dmt->ref_cnt > 0) { in dm_target_rem()
H A Ddm.h120 int ref_cnt; /* reference counter for users of this pdev */ member
144 uint32_t ref_cnt; member
201 uint32_t ref_cnt; member
H A Ddm_ioctl.c238 dmv->ref_cnt = 0; in dm_dev_create_ioctl()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/bio/
H A Dossl_core_bio.c19 CRYPTO_REF_COUNT ref_cnt; member
32 cb->ref_cnt = 1; in core_bio_new()
40 return CRYPTO_UP_REF(&cb->ref_cnt, &ref, cb->ref_lock); in ossl_core_bio_up_ref()
48 CRYPTO_DOWN_REF(&cb->ref_cnt, &ref, cb->ref_lock); in ossl_core_bio_free()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/base/
H A Dheimbase.c45 heim_base_atomic_type ref_cnt; member
54 heim_base_atomic_type ref_cnt; member
97 if (p->ref_cnt == heim_base_atomic_max) in heim_retain()
100 if ((heim_base_atomic_inc(&p->ref_cnt) - 1) == 0) in heim_retain()
121 if (p->ref_cnt == heim_base_atomic_max) in heim_release()
124 old = heim_base_atomic_dec(&p->ref_cnt) + 1; in heim_release()
163 p->ref_cnt = heim_base_atomic_max; in _heim_make_permanent()
303 p->ref_cnt = 1; in heim_alloc()
344 p->ref_cnt = 1; in _heim_alloc_object()
/netbsd-src/sys/arch/ews4800mips/ews4800mips/
H A Dtr2a_intr.c88 int ref_cnt; member
143 if (ic->ref_cnt++ == 0) in tr2a_intr_establish()
163 if (--ic->ref_cnt == 0) in tr2a_intr_disestablish()
/netbsd-src/sys/dev/dm/doc/
H A Dlocking.txt50 uint32_t ref_cnt;
228 dmv->ref_cnt++;
235 KASSERT(dmv->ref_cnt != 0);
238 if (--dmv->ref_cnt == 0)
H A Dproposal-dm.txt43 uint32_t ref_cnt;
H A Ddesign.txt240 counters for all added pdevs (I remove pdevs with ref_cnt == 0).
/netbsd-src/external/apache2/llvm/dist/clang/tools/libclang/
H A DCXIndexDataConsumer.h245 unsigned ref_cnt; variable
265 void Retain() { ++ref_cnt; } in Retain()
267 assert (ref_cnt > 0 && "Reference count is already zero."); in Release()
268 if (--ref_cnt == 0) { in Release()
H A DCXIndexDataConsumer.cpp280 : SA(IdxCtx), ref_cnt(0) { in AttrListInfo()
/netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/
H A Ddnsrps.c282 rpsdb->ref_cnt = 1; in dns_dnsrps_rewrite_init()
372 ++rpsdb->ref_cnt; in rpsdb_attach()
381 REQUIRE(rpsdb->ref_cnt > 0); in rpsdb_detach()
388 if (--rpsdb->ref_cnt != 0) { in rpsdb_detach()
408 ++rpsdb->ref_cnt; in rpsdb_attachnode()
/netbsd-src/external/mpl/bind/dist/lib/dns/
H A Ddnsrps.c
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/
H A Dtcs_key_mem_cache.c397 entry->ref_cnt = 0; in mc_add_entry()
403 entry->ref_cnt = 1; in mc_add_entry()
528 entry->ref_cnt = 1; in mc_add_entry_init()
639 cur->ref_cnt++; in key_mgr_inc_ref_count()
659 cur->ref_cnt--; in key_mgr_dec_ref_count()
680 if (cur->ref_cnt == 0) { in key_mgr_ref_count()
/netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/include/dns/
H A Ddnsrps.h53 int ref_cnt; member
/netbsd-src/external/mpl/bind/dist/lib/dns/include/dns/
H A Ddnsrps.h53 int ref_cnt;
52 int ref_cnt; global() member
/netbsd-src/crypto/external/cpl/trousers/dist/src/include/
H A Dtcs_utils.h26 int ref_cnt; member