/external/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 …]
|
/external/grpc-grpc/src/core/lib/slice/ |
D | slice.cc | 40 out.refcount = nullptr; in grpc_empty_slice() 53 if (slice.refcount) { in grpc_slice_ref_internal() 54 slice.refcount->vtable->ref(slice.refcount); in grpc_slice_ref_internal() 60 if (slice.refcount) { in grpc_slice_unref_internal() 61 slice.refcount->vtable->unref(slice.refcount); in grpc_slice_unref_internal() 93 slice.refcount = &noop_refcount; in grpc_slice_from_static_buffer() 141 slice.refcount = &rc->rc; in grpc_slice_new_with_user_data() 191 slice.refcount = &rc->rc; in grpc_slice_new_with_len() 253 slice.refcount = &rc->base; in grpc_slice_malloc_large() 268 slice.refcount = nullptr; in grpc_slice_malloc() [all …]
|
/external/grpc-grpc/src/core/lib/transport/ |
D | transport.cc | 40 void grpc_stream_ref(grpc_stream_refcount* refcount, const char* reason) { argument 42 gpr_atm val = gpr_atm_no_barrier_load(&refcount->refs.count); 44 refcount->object_type, refcount, refcount->destroy.cb_arg, val, 48 void grpc_stream_ref(grpc_stream_refcount* refcount) { 50 gpr_ref_non_zero(&refcount->refs); 54 void grpc_stream_unref(grpc_stream_refcount* refcount, const char* reason) { argument 56 gpr_atm val = gpr_atm_no_barrier_load(&refcount->refs.count); 58 refcount->object_type, refcount, refcount->destroy.cb_arg, val, 62 void grpc_stream_unref(grpc_stream_refcount* refcount) { 64 if (gpr_unref(&refcount->refs)) { [all …]
|
/external/rust/crates/grpcio-sys/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()
|
/external/rust/crates/grpcio-sys/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 …]
|
/external/webrtc/third_party/abseil-cpp/absl/strings/internal/ |
D | cord_rep_crc_test.cc | 44 EXPECT_TRUE(crc->refcount.IsOne()); in TEST() 47 EXPECT_TRUE(rep->refcount.IsOne()); in TEST() 56 EXPECT_TRUE(new_crc->refcount.IsOne()); in TEST() 59 EXPECT_TRUE(rep->refcount.IsOne()); in TEST() 70 EXPECT_TRUE(new_crc->refcount.IsOne()); in TEST() 71 EXPECT_TRUE(crc->refcount.IsOne()); in TEST() 72 EXPECT_FALSE(rep->refcount.IsOne()); in TEST() 84 EXPECT_TRUE(crc->refcount.IsOne()); in TEST() 88 EXPECT_TRUE(crc->refcount.IsOne()); in TEST() 104 EXPECT_TRUE(rep->refcount.IsOne()); in TEST() [all …]
|
D | cordz_info.cc | 84 size_t refcount = rep->refcount.Get(); in AnalyzeCordRep() local 85 RepRef repref{rep, (refcount > 1) ? refcount - 1 : 1}; in AnalyzeCordRep() 91 memory_usage_.Add(sizeof(CordRepCrc), repref.refcount); in AnalyzeCordRep() 122 size_t refcount; member 127 return RepRef{child, refcount * child->refcount.Get()}; in Child() 138 void Add(size_t size, size_t refcount) { in Add() 140 fair_share += static_cast<double>(size) / refcount; in Add() 172 memory_usage.Add(sizeof(CordRepSubstring), rep.refcount); in CountLinearReps() 180 memory_usage.Add(size, rep.refcount); in CountLinearReps() 189 memory_usage.Add(size, rep.refcount); in CountLinearReps() [all …]
|
/external/cronet/third_party/abseil-cpp/absl/strings/internal/ |
D | cord_rep_crc_test.cc | 52 EXPECT_TRUE(crc->refcount.IsOne()); in TEST() 55 EXPECT_TRUE(rep->refcount.IsOne()); in TEST() 64 EXPECT_TRUE(new_crc->refcount.IsOne()); in TEST() 67 EXPECT_TRUE(rep->refcount.IsOne()); in TEST() 78 EXPECT_TRUE(new_crc->refcount.IsOne()); in TEST() 79 EXPECT_TRUE(crc->refcount.IsOne()); in TEST() 80 EXPECT_FALSE(rep->refcount.IsOne()); in TEST() 92 EXPECT_TRUE(crc->refcount.IsOne()); in TEST() 96 EXPECT_TRUE(crc->refcount.IsOne()); in TEST() 112 EXPECT_TRUE(rep->refcount.IsOne()); in TEST() [all …]
|
D | cordz_info.cc | 85 size_t refcount = rep->refcount.Get(); in AnalyzeCordRep() local 86 RepRef repref{rep, (refcount > 1) ? refcount - 1 : 1}; in AnalyzeCordRep() 92 memory_usage_.Add(sizeof(CordRepCrc), repref.refcount); in AnalyzeCordRep() 123 size_t refcount; member 128 return RepRef{child, refcount * child->refcount.Get()}; in Child() 139 void Add(size_t size, size_t refcount) { in Add() 141 fair_share += static_cast<double>(size) / refcount; in Add() 173 memory_usage.Add(sizeof(CordRepSubstring), rep.refcount); in CountLinearReps() 181 memory_usage.Add(size, rep.refcount); in CountLinearReps() 190 memory_usage.Add(size, rep.refcount); in CountLinearReps() [all …]
|
/external/angle/third_party/abseil-cpp/absl/strings/internal/ |
D | cord_rep_crc_test.cc | 52 EXPECT_TRUE(crc->refcount.IsOne()); in TEST() 55 EXPECT_TRUE(rep->refcount.IsOne()); in TEST() 64 EXPECT_TRUE(new_crc->refcount.IsOne()); in TEST() 67 EXPECT_TRUE(rep->refcount.IsOne()); in TEST() 78 EXPECT_TRUE(new_crc->refcount.IsOne()); in TEST() 79 EXPECT_TRUE(crc->refcount.IsOne()); in TEST() 80 EXPECT_FALSE(rep->refcount.IsOne()); in TEST() 92 EXPECT_TRUE(crc->refcount.IsOne()); in TEST() 96 EXPECT_TRUE(crc->refcount.IsOne()); in TEST() 112 EXPECT_TRUE(rep->refcount.IsOne()); in TEST() [all …]
|
D | cordz_info.cc | 85 size_t refcount = rep->refcount.Get(); in AnalyzeCordRep() local 86 RepRef repref{rep, (refcount > 1) ? refcount - 1 : 1}; in AnalyzeCordRep() 92 memory_usage_.Add(sizeof(CordRepCrc), repref.refcount); in AnalyzeCordRep() 123 size_t refcount; member 128 return RepRef{child, refcount * child->refcount.Get()}; in Child() 139 void Add(size_t size, size_t refcount) { in Add() 141 fair_share += static_cast<double>(size) / refcount; in Add() 173 memory_usage.Add(sizeof(CordRepSubstring), rep.refcount); in CountLinearReps() 181 memory_usage.Add(size, rep.refcount); in CountLinearReps() 190 memory_usage.Add(size, rep.refcount); in CountLinearReps() [all …]
|
/external/grpc-grpc/src/core/lib/channel/ |
D | channel_stack.h | 175 grpc_stream_refcount refcount; member 189 grpc_stream_refcount refcount; member 228 grpc_stream_ref(&(call_stack)->refcount, reason) 230 grpc_stream_unref(&(call_stack)->refcount, reason) 232 grpc_stream_ref(&(channel_stack)->refcount, reason) 234 grpc_stream_unref(&(channel_stack)->refcount, reason) 237 grpc_stream_ref(&(call_stack)->refcount) 239 grpc_stream_unref(&(call_stack)->refcount) 241 grpc_stream_ref(&(channel_stack)->refcount) 243 grpc_stream_unref(&(channel_stack)->refcount)
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/channel/ |
D | channel_stack.h | 183 grpc_stream_refcount refcount; member 197 grpc_stream_refcount refcount; member 244 grpc_stream_ref(&(call_stack)->refcount, reason) 246 grpc_stream_unref(&(call_stack)->refcount, reason) 248 grpc_stream_ref(&(channel_stack)->refcount, reason) 250 grpc_stream_unref(&(channel_stack)->refcount, reason) 254 grpc_stream_ref(&(call_stack)->refcount); \ 259 grpc_stream_unref(&(call_stack)->refcount); \ 264 grpc_stream_ref(&(channel_stack)->refcount); \ 269 grpc_stream_unref(&(channel_stack)->refcount); \
|
/external/abseil-cpp/absl/strings/internal/ |
D | cord_rep_crc_test.cc | 47 EXPECT_TRUE(crc->refcount.IsOne()); in TEST() 50 EXPECT_TRUE(rep->refcount.IsOne()); in TEST() 59 EXPECT_TRUE(new_crc->refcount.IsOne()); in TEST() 62 EXPECT_TRUE(rep->refcount.IsOne()); in TEST() 73 EXPECT_TRUE(new_crc->refcount.IsOne()); in TEST() 74 EXPECT_TRUE(crc->refcount.IsOne()); in TEST() 75 EXPECT_FALSE(rep->refcount.IsOne()); in TEST() 97 EXPECT_TRUE(rep->refcount.IsOne()); in TEST() 107 EXPECT_FALSE(rep->refcount.IsOne()); in TEST()
|
D | cordz_info.cc | 84 size_t refcount = rep->refcount.Get(); in AnalyzeCordRep() local 85 RepRef repref{rep, (refcount > 1) ? refcount - 1 : 1}; in AnalyzeCordRep() 91 memory_usage_.Add(sizeof(CordRepCrc), repref.refcount); in AnalyzeCordRep() 122 size_t refcount; member 127 return RepRef{child, refcount * child->refcount.Get()}; in Child() 138 void Add(size_t size, size_t refcount) { in Add() 140 fair_share += static_cast<double>(size) / refcount; in Add() 172 memory_usage.Add(sizeof(CordRepSubstring), rep.refcount); in CountLinearReps() 180 memory_usage.Add(size, rep.refcount); in CountLinearReps() 189 memory_usage.Add(size, rep.refcount); in CountLinearReps() [all …]
|
/external/tensorflow/third_party/absl/abseil-cpp/absl/strings/internal/ |
D | cord_rep_crc_test.cc | 47 EXPECT_TRUE(crc->refcount.IsOne()); in TEST() 50 EXPECT_TRUE(rep->refcount.IsOne()); in TEST() 59 EXPECT_TRUE(new_crc->refcount.IsOne()); in TEST() 62 EXPECT_TRUE(rep->refcount.IsOne()); in TEST() 73 EXPECT_TRUE(new_crc->refcount.IsOne()); in TEST() 74 EXPECT_TRUE(crc->refcount.IsOne()); in TEST() 75 EXPECT_FALSE(rep->refcount.IsOne()); in TEST() 97 EXPECT_TRUE(rep->refcount.IsOne()); in TEST() 107 EXPECT_FALSE(rep->refcount.IsOne()); in TEST()
|
D | cordz_info.cc | 84 size_t refcount = rep->refcount.Get(); in AnalyzeCordRep() local 85 RepRef repref{rep, (refcount > 1) ? refcount - 1 : 1}; in AnalyzeCordRep() 91 memory_usage_.Add(sizeof(CordRepCrc), repref.refcount); in AnalyzeCordRep() 122 size_t refcount; member 127 return RepRef{child, refcount * child->refcount.Get()}; in Child() 138 void Add(size_t size, size_t refcount) { in Add() 140 fair_share += static_cast<double>(size) / refcount; in Add() 172 memory_usage.Add(sizeof(CordRepSubstring), rep.refcount); in CountLinearReps() 180 memory_usage.Add(size, rep.refcount); in CountLinearReps() 189 memory_usage.Add(size, rep.refcount); in CountLinearReps() [all …]
|
/external/python/cpython2/Doc/tools/extensions/ |
D | c_annotations.py | 50 function, type, arg, refcount, comment = parts 56 if not refcount or refcount == "null": 57 refcount = None 59 refcount = int(refcount) 63 entry.args.append((arg, type, refcount)) 66 entry.result_refs = refcount
|
/external/rust/crates/grpcio-sys/grpc/spm-core-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)) \
|
/external/rust/crates/grpcio-sys/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)) \
|
/external/grpc-grpc/include/grpc/impl/codegen/ |
D | slice.h | 81 struct grpc_slice_refcount* refcount; member 117 ((slice).refcount ? (slice).data.refcounted.bytes \ 120 ((slice).refcount ? (slice).data.refcounted.length \ 123 ((slice).refcount ? ((slice).data.refcounted.length = (size_t)(newlen)) \ 133 ((slice).refcount ? (slice).data.refcounted.bytes \ 136 ((slice).refcount ? (slice).data.refcounted.length \ 139 ((slice).refcount ? ((slice).data.refcounted.length = (size_t)(newlen)) \
|
/external/openscreen/third_party/abseil/src/absl/strings/internal/ |
D | cord_internal.h | 53 int32_t refcount = count_.load(std::memory_order_acquire); in Decrement() local 54 assert(refcount > 0 || refcount & kImmortalTag); in Decrement() 55 return refcount != kRefIncrement && in Decrement() 62 int32_t refcount = in DecrementExpectHighRefcount() local 64 assert(refcount > 0 || refcount & kImmortalTag); in DecrementExpectHighRefcount() 65 return refcount != kRefIncrement; in DecrementExpectHighRefcount() 128 : length(l), refcount(immortal), tag(EXTERNAL), data{} {} in CordRep() 133 Refcount refcount; member
|