Home
last modified time | relevance | path

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

/external/llvm/include/llvm/ADT/
DIntrusiveRefCntPtr.h45 mutable unsigned ref_cnt; variable
48 RefCountedBase() : ref_cnt(0) {} in RefCountedBase()
49 RefCountedBase(const RefCountedBase &) : ref_cnt(0) {} in RefCountedBase()
51 void Retain() const { ++ref_cnt; } in Retain()
53 assert (ref_cnt > 0 && "Reference count is already zero."); in Release()
54 if (--ref_cnt == 0) delete static_cast<const Derived*>(this); in Release()
67 mutable unsigned ref_cnt; variable
71 RefCountedBaseVPTR() : ref_cnt(0) {} in RefCountedBaseVPTR()
72 RefCountedBaseVPTR(const RefCountedBaseVPTR &) : ref_cnt(0) {} in RefCountedBaseVPTR()
76 void Retain() const { ++ref_cnt; } in Retain()
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DIntrusiveRefCntPtr.h42 mutable unsigned ref_cnt = 0; variable
46 RefCountedBase(const RefCountedBase &) : ref_cnt(0) {} in RefCountedBase()
48 void Retain() const { ++ref_cnt; } in Retain()
50 assert (ref_cnt > 0 && "Reference count is already zero."); in Release()
51 if (--ref_cnt == 0) delete static_cast<const Derived*>(this); in Release()
64 mutable unsigned ref_cnt = 0; variable
70 RefCountedBaseVPTR(const RefCountedBaseVPTR &) : ref_cnt(0) {} in RefCountedBaseVPTR()
74 void Retain() const { ++ref_cnt; } in Retain()
76 assert (ref_cnt > 0 && "Reference count is already zero."); in Release()
77 if (--ref_cnt == 0) delete this; in Release()
/external/rust/crates/grpcio/src/
Dcq.rs24 ref_cnt: AtomicIsize, field
34 ref_cnt: AtomicIsize::new(1), in new()
39 let mut cnt = self.ref_cnt.load(Ordering::SeqCst); in add_ref()
46 match self.ref_cnt.compare_exchange_weak( in add_ref()
59 let mut cnt = self.ref_cnt.load(Ordering::SeqCst); in unref()
64 match self.ref_cnt.compare_exchange_weak( in unref()
82 let mut cnt = self.ref_cnt.load(Ordering::SeqCst); in shutdown()
92 match self.ref_cnt.compare_exchange_weak( in shutdown()
/external/usrsctp/usrsctplib/
Duser_mbuf.c237 m->m_ext.ref_cnt = refcnt; in clust_constructor_dup()
689 m->m_ext.ref_cnt = refcnt; in mb_ctor_clust()
753 …%p, ref_cnt = %d.\n", (void *)m, m->m_ext.ext_size, (void *)m->m_ext.ext_buf, *(m->m_ext.ref_cnt));
781 KASSERT(m->m_ext.ref_cnt != NULL, ("%s: ref_cnt not set", __func__)); in mb_free_ext()
799 if (atomic_fetchadd_int(m->m_ext.ref_cnt, -1) == 0) in mb_free_ext()
801 if (SCTP_DECREMENT_AND_CHECK_REFCOUNT(m->m_ext.ref_cnt)) in mb_free_ext()
809 SCTP_ZONE_FREE(zone_ext_refcnt, (u_int*)m->m_ext.ref_cnt); in mb_free_ext()
810 m->m_ext.ref_cnt = NULL; in mb_free_ext()
825 m->m_ext.ref_cnt = NULL; in mb_free_ext()
1115 KASSERT(m->m_ext.ref_cnt != NULL, ("%s: ref_cnt not set", __func__)); in mb_dupcl()
[all …]
Duser_mbuf.h225 volatile u_int *ref_cnt; /* pointer to ref count info */ member
365 (*((m)->m_ext.ref_cnt) == 1)) ) \
/external/llvm/test/CodeGen/PowerPC/
Dmerge-st-chain-op.ll16 %ref_cnt.i.i = bitcast i8* %call2 to i32*
23 store i32 1, i32* %ref_cnt.i.i, align 4
/external/llvm-project/llvm/test/CodeGen/PowerPC/
Dmerge-st-chain-op.ll16 %ref_cnt.i.i = bitcast i8* %call2 to i32*
23 store i32 1, i32* %ref_cnt.i.i, align 4
/external/llvm-project/clang/tools/libclang/
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()
DCXIndexDataConsumer.cpp280 : SA(IdxCtx), ref_cnt(0) { in AttrListInfo()
/external/clang/tools/libclang/
DCXIndexDataConsumer.h247 unsigned ref_cnt; variable
267 void Retain() { ++ref_cnt; } in Retain()
269 assert (ref_cnt > 0 && "Reference count is already zero."); in Release()
270 if (--ref_cnt == 0) { in Release()
DCXIndexDataConsumer.cpp277 : SA(IdxCtx), ref_cnt(0) { in AttrListInfo()
/external/rust/crates/bytes/src/
Dbytes.rs940 ref_cnt: AtomicUsize, field
970 let old_size = (*shared).ref_cnt.fetch_add(1, Ordering::Relaxed); in shallow_clone_arc()
1009 ref_cnt: AtomicUsize::new(2), in shallow_clone_vec()
1058 if (*ptr).ref_cnt.fetch_sub(1, Ordering::Release) != 1 { in release_shared()
Dbytes_mut.rs846 unsafe fn promote_to_shared(&mut self, ref_cnt: usize) { in promote_to_shared()
848 debug_assert!(ref_cnt == 1 || ref_cnt == 2); in promote_to_shared()
867 ref_count: AtomicUsize::new(ref_cnt), in promote_to_shared()
/external/libcap-ng/libcap-ng-0.7/utils/
Dnetcap.c392 unsigned int ref_cnt, type, proto, iface, r, rmem, uid; in read_packet() local
410 &sk, &ref_cnt, &type, &proto, &iface, in read_packet()
/external/mesa3d/src/broadcom/vulkan/
Dv3dv_private.h1274 uint32_t ref_cnt; member
1840 assert(variant && variant->ref_cnt >= 1); in v3dv_shader_variant_ref()
1841 p_atomic_inc(&variant->ref_cnt); in v3dv_shader_variant_ref()
1848 assert(variant && variant->ref_cnt >= 1); in v3dv_shader_variant_unref()
1849 if (p_atomic_dec_zero(&variant->ref_cnt)) in v3dv_shader_variant_unref()
Dv3dv_pipeline.c1450 variant->ref_cnt = 1; in v3dv_shader_variant_create()
/external/mesa3d/src/intel/vulkan/
Danv_private.h2004 uint32_t ref_cnt; member
2039 assert(layout && layout->ref_cnt >= 1); in anv_descriptor_set_layout_ref()
2040 p_atomic_inc(&layout->ref_cnt); in anv_descriptor_set_layout_ref()
2047 assert(layout && layout->ref_cnt >= 1); in anv_descriptor_set_layout_unref()
2048 if (p_atomic_dec_zero(&layout->ref_cnt)) in anv_descriptor_set_layout_unref()
3356 uint32_t ref_cnt; member
3393 assert(shader && shader->ref_cnt >= 1); in anv_shader_bin_ref()
3394 p_atomic_inc(&shader->ref_cnt); in anv_shader_bin_ref()
3400 assert(shader && shader->ref_cnt >= 1); in anv_shader_bin_unref()
3401 if (p_atomic_dec_zero(&shader->ref_cnt)) in anv_shader_bin_unref()
Danv_pipeline_cache.c72 shader->ref_cnt = 1; in anv_shader_bin_create()
140 assert(shader->ref_cnt == 0); in anv_shader_bin_destroy()
Danv_descriptor_set.c395 set_layout->ref_cnt = 1; in anv_CreateDescriptorSetLayout()
554 assert(layout->ref_cnt == 0); in anv_descriptor_set_layout_destroy()
/external/usrsctp/usrsctplib/netinet/
Dsctp_os_userspace.h939 #define SCTP_BUF_EXTEND_REFCNT(m) (*m->m_ext.ref_cnt)
/external/libabigail/tests/data/test-diff-filter/
Dtest-PR27569-v1.abi59673 …<var-decl name="ref_cnt" type-id="95e97e5e" visibility="default" filepath="include/linux/regulator…
60647 …<var-decl name="ref_cnt" type-id="95e97e5e" visibility="default" filepath="include/linux/regulator…
Dtest-PR27569-v0.abi59659 …<var-decl name="ref_cnt" type-id="95e97e5e" visibility="default" filepath="include/linux/regulator…
60633 …<var-decl name="ref_cnt" type-id="95e97e5e" visibility="default" filepath="include/linux/regulator…