Searched refs:ref_cnt (Results 1 – 13 of 13) sorted by relevance
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | IntrusiveRefCntPtr.h | 42 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()
|
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/ |
D | user_mbuf.c | 236 m->m_ext.ref_cnt = refcnt; in clust_constructor_dup() 668 m->m_ext.ref_cnt = refcnt; in mb_ctor_clust() 732 …%p, ref_cnt = %d.\n", (void *)m, m->m_ext.ext_size, (void *)m->m_ext.ext_buf, *(m->m_ext.ref_cnt)); 760 KASSERT(m->m_ext.ref_cnt != NULL, ("%s: ref_cnt not set", __func__)); in mb_free_ext() 778 if (atomic_fetchadd_int(m->m_ext.ref_cnt, -1) == 0) in mb_free_ext() 780 if (SCTP_DECREMENT_AND_CHECK_REFCOUNT(m->m_ext.ref_cnt)) in mb_free_ext() 788 SCTP_ZONE_FREE(zone_ext_refcnt, (u_int*)m->m_ext.ref_cnt); in mb_free_ext() 789 m->m_ext.ref_cnt = NULL; in mb_free_ext() 804 m->m_ext.ref_cnt = NULL; in mb_free_ext() 1091 KASSERT(m->m_ext.ref_cnt != NULL, ("%s: ref_cnt not set", __func__)); in mb_dupcl() [all …]
|
D | user_mbuf.h | 196 volatile u_int *ref_cnt; /* pointer to ref count info */ member 333 (*((m)->m_ext.ref_cnt) == 1)) ) \
|
/third_party/mesa3d/src/gallium/frontends/lavapipe/ |
D | lvp_private.h | 361 uint32_t ref_cnt; member 393 assert(layout && layout->ref_cnt >= 1); in lvp_descriptor_set_layout_ref() 394 p_atomic_inc(&layout->ref_cnt); in lvp_descriptor_set_layout_ref() 401 assert(layout && layout->ref_cnt >= 1); in lvp_descriptor_set_layout_unref() 402 if (p_atomic_dec_zero(&layout->ref_cnt)) in lvp_descriptor_set_layout_unref()
|
D | lvp_descriptor_set.c | 72 set_layout->ref_cnt = 1; in lvp_CreateDescriptorSetLayout() 188 assert(layout->ref_cnt == 0); in lvp_descriptor_set_layout_destroy()
|
/third_party/mesa3d/src/broadcom/vulkan/ |
D | v3dv_private.h | 1729 uint32_t ref_cnt; member 1928 assert(shared_data && shared_data->ref_cnt >= 1); in v3dv_pipeline_shared_data_ref() 1929 p_atomic_inc(&shared_data->ref_cnt); in v3dv_pipeline_shared_data_ref() 1940 assert(shared_data && shared_data->ref_cnt >= 1); in v3dv_pipeline_shared_data_unref() 1941 if (p_atomic_dec_zero(&shared_data->ref_cnt)) in v3dv_pipeline_shared_data_unref()
|
D | v3dv_pipeline_cache.c | 342 assert(shared_data->ref_cnt == 0); in v3dv_pipeline_shared_data_destroy() 384 new_entry->ref_cnt = 1; in v3dv_pipeline_shared_data_new()
|
D | v3dv_pipeline.c | 2137 new_entry->ref_cnt = 1; in v3dv_pipeline_shared_data_new_empty()
|
/third_party/mesa3d/src/intel/vulkan/ |
D | anv_private.h | 1922 uint32_t ref_cnt; member 1957 assert(layout && layout->ref_cnt >= 1); in anv_descriptor_set_layout_ref() 1958 p_atomic_inc(&layout->ref_cnt); in anv_descriptor_set_layout_ref() 1965 assert(layout && layout->ref_cnt >= 1); in anv_descriptor_set_layout_unref() 1966 if (p_atomic_dec_zero(&layout->ref_cnt)) in anv_descriptor_set_layout_unref() 3433 uint32_t ref_cnt; member 3470 assert(shader && shader->ref_cnt >= 1); in anv_shader_bin_ref() 3471 p_atomic_inc(&shader->ref_cnt); in anv_shader_bin_ref() 3477 assert(shader && shader->ref_cnt >= 1); in anv_shader_bin_unref() 3478 if (p_atomic_dec_zero(&shader->ref_cnt)) in anv_shader_bin_unref()
|
D | anv_pipeline_cache.c | 68 shader->ref_cnt = 1; in anv_shader_bin_create() 156 assert(shader->ref_cnt == 0); in anv_shader_bin_destroy()
|
D | anv_descriptor_set.c | 396 set_layout->ref_cnt = 1; in anv_CreateDescriptorSetLayout() 556 assert(layout->ref_cnt == 0); in anv_descriptor_set_layout_destroy()
|
/third_party/libcoap/examples/ |
D | coap-server.c | 158 size_t ref_cnt; member 185 transient_value->ref_cnt = 1; in alloc_resource_data() 202 if (--transient_value->ref_cnt > 0) in release_resource_data() 216 entry->ref_cnt++; in reference_resource_data()
|
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/ |
D | sctp_os_userspace.h | 899 #define SCTP_BUF_EXTEND_REFCNT(m) (*m->m_ext.ref_cnt)
|