/third_party/e2fsprogs/e2fsck/ |
D | ea_refcount.c | 40 void ea_refcount_free(ext2_refcount_t refcount) in ea_refcount_free() argument 42 if (!refcount) in ea_refcount_free() 45 if (refcount->list) in ea_refcount_free() 46 ext2fs_free_mem(&refcount->list); in ea_refcount_free() 47 ext2fs_free_mem(&refcount); in ea_refcount_free() 52 ext2_refcount_t refcount; in ea_refcount_create() local 56 retval = ext2fs_get_memzero(sizeof(struct ea_refcount), &refcount); in ea_refcount_create() 62 refcount->size = size; in ea_refcount_create() 66 refcount->size, bytes); in ea_refcount_create() 68 retval = ext2fs_get_memzero(bytes, &refcount->list); in ea_refcount_create() [all …]
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
D | ObjectBaseTests.cpp | 37 int refcount = 1; in TEST() local 39 Object obj(&refcount); in TEST() 40 ASSERT_EQ(2, refcount); in TEST() 42 ASSERT_EQ(1, refcount); in TEST() 47 int refcount = 1; in TEST() local 49 Object object = Object::Acquire(&refcount); in TEST() 50 ASSERT_EQ(1, refcount); in TEST() 52 ASSERT_EQ(0, refcount); in TEST() 57 int refcount = 1; in TEST() local 59 Object obj1(&refcount); in TEST() [all …]
|
/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/ |
D | ObjectBaseTests.cpp | 37 int refcount = 1; in TEST() local 39 Object obj(&refcount); in TEST() 40 ASSERT_EQ(2, refcount); in TEST() 42 ASSERT_EQ(1, refcount); in TEST() 47 int refcount = 1; in TEST() local 49 Object object = Object::Acquire(&refcount); in TEST() 50 ASSERT_EQ(1, refcount); in TEST() 52 ASSERT_EQ(0, refcount); in TEST() 57 int refcount = 1; in TEST() local 59 Object obj1(&refcount); in TEST() [all …]
|
/third_party/grpc/src/core/lib/slice/ |
D | slice.cc | 97 if (s.refcount == nullptr || s.refcount == &grpc_core::kNoopRefcount) { in grpc_slice_memory_usage() 116 slice.refcount = in grpc_slice_new_with_user_data() 201 slice.refcount = (new grpc_core::NewWithLenSliceRefcount(destroy, p, len)) in grpc_slice_new_with_len() 211 refcount = nullptr; in UnmanagedMemorySlice() 238 slice.refcount = nullptr; in grpc_slice_from_moved_buffer() 242 slice.refcount = (new grpc_core::MovedStringSliceRefCount(std::move(p))) in grpc_slice_from_moved_buffer() 258 slice.refcount = nullptr; in grpc_slice_from_cpp_string() 265 slice.refcount = in grpc_slice_from_cpp_string() 320 refcount = rc->base_refcount(); in HeapInit() 336 refcount = nullptr; in UnmanagedMemorySlice() [all …]
|
D | slice_internal.h | 217 GPR_DEBUG_ASSERT(slice.refcount != nullptr); in grpc_refcounted_slice_length() 222 GPR_DEBUG_ASSERT(slice.refcount != nullptr); in grpc_refcounted_slice_data() 227 GPR_DEBUG_ASSERT(a.refcount != nullptr); in Eq() 228 GPR_DEBUG_ASSERT(a.refcount == this); in Eq() 233 (a.refcount == b.refcount)); in Eq() 235 return a.refcount == b.refcount; in Eq() 247 GPR_DEBUG_ASSERT(slice.refcount != nullptr); in Hash() 248 GPR_DEBUG_ASSERT(slice.refcount == this); in Hash() 254 return reinterpret_cast<grpc_core::InternedSliceRefcount*>(slice.refcount) in Hash() 266 if (slice.refcount) { in grpc_slice_ref_internal() [all …]
|
D | slice_utils.h | 55 if (a.refcount == b_static_interned.refcount) { in grpc_slice_eq_static_interned() 105 refcount = nullptr; in ManagedMemorySlice() 113 if (refcount == other.refcount) { 128 refcount = nullptr; in UnmanagedMemorySlice() 158 refcount = ref; in ExternallyManagedSlice() 177 refcount = ref; in StaticMetadataSlice()
|
/third_party/grpc/src/core/lib/transport/ |
D | transport.h | 66 void grpc_stream_ref_init(grpc_stream_refcount* refcount, int initial_refs, 72 void grpc_stream_ref_init(grpc_stream_refcount* refcount, int initial_refs, 82 inline void grpc_stream_ref(grpc_stream_refcount* refcount, in grpc_stream_ref() argument 85 gpr_log(GPR_DEBUG, "%s %p:%p REF %s", refcount->object_type, refcount, in grpc_stream_ref() 86 refcount->destroy.cb_arg, reason); in grpc_stream_ref() 88 refcount->refs.RefNonZero(DEBUG_LOCATION, reason); in grpc_stream_ref() 91 inline void grpc_stream_ref(grpc_stream_refcount* refcount) { in grpc_stream_ref() argument 92 refcount->refs.RefNonZero(); in grpc_stream_ref() 96 void grpc_stream_destroy(grpc_stream_refcount* refcount); 99 inline void grpc_stream_unref(grpc_stream_refcount* refcount, in grpc_stream_unref() argument [all …]
|
D | transport.cc | 42 void grpc_stream_destroy(grpc_stream_refcount* refcount) { in grpc_stream_destroy() argument 53 grpc_core::Executor::Run(&refcount->destroy, GRPC_ERROR_NONE); in grpc_stream_destroy() 55 grpc_core::ExecCtx::Run(DEBUG_LOCATION, &refcount->destroy, in grpc_stream_destroy() 68 grpc_slice grpc_slice_from_stream_owned_buffer(grpc_stream_refcount* refcount, in grpc_slice_from_stream_owned_buffer() argument 71 grpc_stream_ref(STREAM_REF_FROM_SLICE_REF(&refcount->slice_refcount), in grpc_slice_from_stream_owned_buffer() 74 grpc_stream_ref(STREAM_REF_FROM_SLICE_REF(&refcount->slice_refcount)); in grpc_slice_from_stream_owned_buffer() 77 res.refcount = &refcount->slice_refcount; in grpc_slice_from_stream_owned_buffer() 84 void grpc_stream_ref_init(grpc_stream_refcount* refcount, int /*initial_refs*/, argument 87 refcount->object_type = object_type; 89 void grpc_stream_ref_init(grpc_stream_refcount* refcount, int /*initial_refs*/, [all …]
|
/third_party/grpc/src/core/lib/channel/ |
D | channel_stack.h | 183 grpc_stream_refcount refcount; member 197 grpc_stream_refcount refcount; member 236 grpc_stream_ref(&(call_stack)->refcount, reason) 238 grpc_stream_unref(&(call_stack)->refcount, reason) 240 grpc_stream_ref(&(channel_stack)->refcount, reason) 242 grpc_stream_unref(&(channel_stack)->refcount, reason) 246 grpc_stream_ref(&(call_stack)->refcount); \ 251 grpc_stream_unref(&(call_stack)->refcount); \ 256 grpc_stream_ref(&(channel_stack)->refcount); \ 261 grpc_stream_unref(&(channel_stack)->refcount); \
|
/third_party/grpc/include/grpc/impl/codegen/ |
D | slice.h | 61 struct grpc_slice_refcount* refcount; member 97 ((slice).refcount ? (slice).data.refcounted.bytes \ 100 ((slice).refcount ? (slice).data.refcounted.length \ 103 ((slice).refcount ? ((slice).data.refcounted.length = (size_t)(newlen)) \ 113 ((slice).refcount ? (slice).data.refcounted.bytes \ 116 ((slice).refcount ? (slice).data.refcounted.length \ 119 ((slice).refcount ? ((slice).data.refcounted.length = (size_t)(newlen)) \
|
/third_party/NuttX/drivers/usbdev/gadget/fconfig/include/ |
D | obj_ref.h | 60 atomic_t refcount; member 65 atomic_set(&ref->refcount, val); in objref_init() 70 atomic_inc(&ref->refcount); in objref_get() 75 if (atomic_dec_and_test(&ref->refcount)) in objref_put() 85 return atomic_read(&ref->refcount); in objref_read()
|
/third_party/abseil-cpp/absl/strings/internal/ |
D | cord_internal.h | 50 int32_t refcount = count_.load(std::memory_order_acquire); in Decrement() local 51 assert(refcount > 0); in Decrement() 52 return refcount != 1 && count_.fetch_sub(1, std::memory_order_acq_rel) != 1; in Decrement() 57 int32_t refcount = count_.fetch_sub(1, std::memory_order_acq_rel); in DecrementExpectHighRefcount() local 58 assert(refcount > 0); in DecrementExpectHighRefcount() 59 return refcount != 1; in DecrementExpectHighRefcount() 92 Refcount refcount; member
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
D | cordz_info.cc | 81 size_t refcount = rep->refcount.Get(); in AnalyzeCordRep() local 82 RepRef repref{rep, (refcount > 1) ? refcount - 1 : 1}; in AnalyzeCordRep() 113 size_t refcount; member 118 return RepRef{child, refcount * child->refcount.Get()}; in Child() 129 void Add(size_t size, size_t refcount) { in Add() 131 fair_share += static_cast<double>(size) / refcount; in Add() 171 memory_usage.Add(sizeof(CordRepSubstring), rep.refcount); in CountLinearReps() 179 memory_usage.Add(size, rep.refcount); in CountLinearReps() 188 memory_usage.Add(size, rep.refcount); in CountLinearReps() 206 memory_usage_.Add(sizeof(CordRepConcat), rep.refcount); in AnalyzeConcat() [all …]
|
D | cord_internal.h | 104 int32_t refcount = count_.load(std::memory_order_acquire) & kRefcountMask; in Decrement() local 105 assert(refcount > 0 || refcount & kImmortalFlag); in Decrement() 106 return refcount != kRefIncrement && in Decrement() 113 int32_t refcount = in DecrementExpectHighRefcount() local 116 assert(refcount > 0 || refcount & kImmortalFlag); in DecrementExpectHighRefcount() 117 return refcount != kRefIncrement; in DecrementExpectHighRefcount() 209 : length(l), refcount(immortal), tag(EXTERNAL), storage{} {} in CordRep() 214 RefcountAndFlags refcount; member 582 rep->refcount.Increment(); in Ref() 590 if (ABSL_PREDICT_FALSE(!rep->refcount.DecrementExpectHighRefcount())) { in Unref()
|
/third_party/python/Doc/tools/extensions/ |
D | c_annotations.py | 62 function, type, arg, refcount, comment = parts 68 if not refcount or refcount == "null": 69 refcount = None 71 refcount = int(refcount) 75 entry.args.append((arg, type, refcount)) 78 entry.result_refs = refcount
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_wire/client/ |
D | ObjectBase.h | 29 ObjectBase(Device* device, uint32_t refcount, uint32_t id) in ObjectBase() 30 : device(device), refcount(refcount), id(id) { in ObjectBase() 34 uint32_t refcount; member
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | BuddyMemoryAllocator.cpp | 68 if (mTrackedSubAllocations[memoryIndex].refcount == 0) { in Allocate() 75 mTrackedSubAllocations[memoryIndex].refcount++; in Allocate() 95 ASSERT(mTrackedSubAllocations[memoryIndex].refcount > 0); in Deallocate() 96 mTrackedSubAllocations[memoryIndex].refcount--; in Deallocate() 98 if (mTrackedSubAllocations[memoryIndex].refcount == 0) { in Deallocate() 113 if (allocation.refcount > 0) { in ComputeTotalNumOfHeapsForTesting()
|
/third_party/gettext/gettext-tools/src/ |
D | rc-str-list.h | 34 unsigned int refcount; member 42 rslp->refcount++; in add_reference() 51 if (rslp->refcount > 1) in drop_reference() 52 rslp->refcount--; in drop_reference()
|
/third_party/skia/third_party/externals/dawn/src/dawn_wire/client/ |
D | ObjectBase.h | 33 ObjectBase(Client* client, uint32_t refcount, uint32_t id) in ObjectBase() 34 : client(client), refcount(refcount), id(id) { in ObjectBase() 45 uint32_t refcount; member
|
/third_party/mesa3d/src/mesa/drivers/dri/i915/ |
D | intel_regions.c | 71 region->refcount = 1; in intel_region_alloc_internal() 193 *dst, *dst ? (*dst)->refcount : 0, src, src ? src->refcount : 0); in intel_region_reference() 200 src->refcount++; in intel_region_reference() 215 DBG("%s %p %d\n", __func__, region, region->refcount - 1); in intel_region_release() 217 assert(region->refcount > 0); in intel_region_release() 218 region->refcount--; in intel_region_release() 220 if (region->refcount == 0) { in intel_region_release()
|
/third_party/ffmpeg/libavfilter/ |
D | formats.c | 41 if (!(tmp = av_realloc_array(ret->refs, ret->refcount + a->refcount, \ 46 for (i = 0; i < a->refcount; i ++) { \ 47 ret->refs[ret->refcount] = a->refs[i]; \ 48 *ret->refs[ret->refcount++] = ret; \ 145 av_assert2(a->refcount && b->refcount); in ff_merge_formats() 165 av_assert2(a->refcount && b->refcount); in ff_merge_samplerates() 177 av_assert2(a->refcount && b->refcount); in ff_merge_channel_layouts() 247 if (a->refcount > b->refcount) in ff_merge_channel_layouts() 452 tmp = av_realloc_array(f->refs, sizeof(*f->refs), f->refcount + 1); \ 458 f->refs[f->refcount++] = ref; \ [all …]
|
/third_party/eudev/src/libudev/ |
D | libudev-queue.c | 48 int refcount; member 72 udev_queue->refcount = 1; in udev_queue_new() 91 udev_queue->refcount++; in udev_queue_ref() 109 udev_queue->refcount--; in udev_queue_unref() 110 if (udev_queue->refcount > 0) in udev_queue_unref()
|
/third_party/eudev/src/udev/ |
D | udev-ctrl.c | 53 int refcount; member 59 int refcount; member 70 int refcount; member 83 uctrl->refcount = 1; in udev_ctrl_new_from_fd() 146 uctrl->refcount++; in udev_ctrl_ref() 152 if (uctrl && -- uctrl->refcount == 0) { in udev_ctrl_unref() 196 conn->refcount = 1; in udev_ctrl_get_connection() 243 conn->refcount++; in udev_ctrl_connection_ref() 248 if (conn && -- conn->refcount == 0) { in udev_ctrl_connection_unref() 363 uctrl_msg->refcount = 1; in udev_ctrl_receive_msg() [all …]
|
/third_party/ffmpeg/libavutil/ |
D | buffer.c | 45 atomic_init(&buf->refcount, 1); in av_buffer_create() 102 atomic_fetch_add_explicit(&buf->buffer->refcount, 1, memory_order_relaxed); in av_buffer_ref() 119 if (atomic_fetch_sub_explicit(&b->refcount, 1, memory_order_acq_rel) == 1) { in buffer_replace() 138 return atomic_load(&buf->buffer->refcount) == 1; in av_buffer_is_writable() 148 return atomic_load(&buf->buffer->refcount); in av_buffer_get_ref_count() 261 atomic_init(&pool->refcount, 1); in av_buffer_pool_init2() 277 atomic_init(&pool->refcount, 1); in av_buffer_pool_init() 321 if (atomic_fetch_sub_explicit(&pool->refcount, 1, memory_order_acq_rel) == 1) in av_buffer_pool_uninit() 338 if (atomic_fetch_sub_explicit(&pool->refcount, 1, memory_order_acq_rel) == 1) in pool_release_buffer() 393 atomic_fetch_add_explicit(&pool->refcount, 1, memory_order_relaxed); in av_buffer_pool_get()
|
/third_party/libwebsockets/lib/misc/lwsac/ |
D | cached-file.c | 83 lachead->refcount++; in lwsac_use_cached_file_start() 99 if (!lachead->refcount) in lwsac_use_cached_file_end() 102 if (lachead->refcount && !--lachead->refcount && lachead->detached) { in lwsac_use_cached_file_end() 118 if (lachead->refcount) in lwsac_use_cached_file_detach()
|