/fuchsia/zircon/third_party/ulib/jemalloc/test/unit/ |
H A D | junk.c | 25 arena_dalloc_junk_small_intercept(void *ptr, const arena_bin_info_t *bin_info) argument 29 arena_dalloc_junk_small_orig(ptr, bin_info); 31 assert_u_eq(((uint8_t *)ptr)[i], JEMALLOC_FREE_JUNK, 35 if (ptr == watch_for_junking) 40 large_dalloc_junk_intercept(void *ptr, size_t usize) argument 44 large_dalloc_junk_orig(ptr, usize); 46 assert_u_eq(((uint8_t *)ptr)[i], JEMALLOC_FREE_JUNK, 50 if (ptr == watch_for_junking) 55 large_dalloc_maybe_junk_intercept(void *ptr, size_t usize) argument 57 large_dalloc_maybe_junk_orig(ptr, usiz [all...] |
/fuchsia/zircon/system/ulib/fbl/include/fbl/ |
H A D | ref_ptr.h | 28 RefPtr<T> AdoptRef(T* ptr); 31 RefPtr<T> WrapRefPtr(T* ptr); 35 RefPtr<T> MakeRefPtrNoAdopt(T* ptr); 38 RefPtr<T> MakeRefPtrUpgradeFromRaw(T* ptr, const Mutex& lock); 138 // ptr must be the same object as base.ptr_. 140 RefPtr(T* ptr, RefPtr<BaseType>&& base) argument 141 : ptr_(ptr) { 171 void reset(T* ptr = nullptr) { 172 RefPtr(ptr).swap(*this); 217 RefPtr(T* ptr, AdoptTa argument 224 RefPtr(T* ptr, NoAdoptTag) argument 227 RefPtr(T* ptr, const Mutex& dtor_lock) argument 234 recycle(T* ptr) argument 264 AdoptRef(T* ptr) argument 270 WrapRefPtr(T* ptr) argument 279 MakeRefPtrNoAdopt(T* ptr) argument 344 MakeRefPtrUpgradeFromRaw(T* ptr, const Mutex& lock) argument [all...] |
H A D | recycler.h | 106 static inline void recycle(T* ptr) { ZX_ASSERT(false); } argument 111 static inline void recycle(T* ptr) { argument 113 const_cast<typename remove_cv<T>::type *>(ptr)); 124 // way, managed pointer types can say internal::recycler<T>::recycle(ptr) 131 static void fbl_recycle_thunk(T* ptr) { argument 137 ptr->fbl_recycle();
|
H A D | new.h | 21 void* operator new(size_t size, void* ptr) noexcept; 22 void* operator new[](size_t size, void* ptr) noexcept;
|
H A D | intrusive_double_list.h | 169 void push_front(const PtrType& ptr) { push_front(PtrType(ptr)); } argument 170 void push_front(PtrType&& ptr) { internal_insert(PtrTraits::GetRaw(head_), fbl::move(ptr)); } argument 173 void push_back(const PtrType& ptr) { push_back(PtrType(ptr)); } argument 174 void push_back(PtrType&& ptr) { internal_insert(sentinel(), fbl::move(ptr)); } argument 177 void insert(const iterator& iter, const PtrType& ptr) { insert(iter, PtrType(ptr)); } argument 178 insert(const iterator& iter, PtrType&& ptr) argument 182 insert(ValueType& before, const PtrType& ptr) argument 183 insert(ValueType& before, PtrType&& ptr) argument 238 insert_after(const iterator& iter, const PtrType& ptr) argument 241 insert_after(const iterator& iter, PtrType&& ptr) argument 374 replace_if(UnaryFn fn, const PtrType& ptr) argument 388 replace_if(UnaryFn fn, PtrType&& ptr) argument 521 internal_insert(RawPtrType before, PtrType&& ptr) argument 593 internal_swap(typename PtrTraits::RefType node, PtrType&& ptr) argument [all...] |
/fuchsia/zircon/kernel/lib/heap/ |
H A D | heap_wrapper.cpp | 146 void* ptr = cmpct_alloc(size); local 148 printf("caller %p malloc %zu -> %p\n", __GET_CALLER(), size, ptr); 151 if (HEAP_PANIC_ON_ALLOC_FAIL && unlikely(!ptr)) { 155 return ptr; 165 void* ptr = cmpct_alloc(size); local 167 printf("caller %p malloc %zu -> %p\n", caller, size, ptr); 170 if (HEAP_PANIC_ON_ALLOC_FAIL && unlikely(!ptr)) { 174 return ptr; 184 void* ptr = cmpct_memalign(size, boundary); local 186 printf("caller %p memalign %zu, %zu -> %p\n", __GET_CALLER(), boundary, size, ptr); 205 void* ptr = cmpct_alloc(realsize); local 215 realloc(void* ptr, size_t size) argument 234 free(void* ptr) argument 286 uint8_t* ptr = (uint8_t*)_ptr; local [all...] |
/fuchsia/zircon/system/uapp/ihda/ |
H A D | codec_state_fetcher.h | 36 auto& ptr = get_fn_group_ptr(); 37 ZX_DEBUG_ASSERT(ptr != nullptr); 38 ZX_DEBUG_ASSERT(ptr->type_ == FunctionGroupState::Type::AUDIO); 39 return *(static_cast<AudioFunctionGroupState*>(ptr.get())); 50 auto& ptr = get_widget_ptr(); 51 ZX_DEBUG_ASSERT(ptr != nullptr); 52 return *ptr;
|
/fuchsia/zircon/kernel/lib/heap/include/lib/ |
H A D | heap.h | 23 void *realloc(void *ptr, size_t size); 24 void free(void *ptr); 43 void heap_page_free(void *ptr, size_t pages);
|
/fuchsia/zircon/system/ulib/crypto/ |
H A D | digest.cpp | 45 uintptr_t ptr; local 46 if ((rc = GetDigest(digest, &ptr)) != ZX_OK) { 49 *out = EVP_MD_size(reinterpret_cast<const EVP_MD*>(ptr));
|
/fuchsia/zircon/system/ulib/fidl/include/lib/fidl/cpp/ |
H A D | builder.h | 20 void* operator new(size_t size, void* ptr) noexcept; 21 void* operator new[](size_t size, void* ptr) noexcept; 59 if (void* ptr = Allocate(sizeof(T))) 60 return new (ptr) T; 76 if (void* ptr = Allocate(static_cast<uint32_t>(sizeof(T) * count))) 77 return new (ptr) T[count];
|
/fuchsia/zircon/bootloader/src/ |
H A D | cmdline.h | 22 size_t cmdline_to_string(char* ptr, size_t max);
|
/fuchsia/zircon/system/ulib/zxcpp/include/zxcpp/ |
H A D | new.h | 27 void* operator new(size_t, void *ptr) noexcept; 29 void* operator new[](size_t, void *ptr) noexcept;
|
/fuchsia/zircon/third_party/ulib/jemalloc/include/jemalloc/ |
H A D | jemalloc_protos_jet.h | 23 void JEMALLOC_NOTHROW *jet_realloc(void *ptr, size_t size) 25 JEMALLOC_EXPORT void JEMALLOC_NOTHROW jet_free(void *ptr) 32 void JEMALLOC_NOTHROW *jet_rallocx(void *ptr, size_t size, 34 JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW jet_xallocx(void *ptr, size_t size, 36 JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW jet_sallocx(const void *ptr, 38 JEMALLOC_EXPORT void JEMALLOC_NOTHROW jet_dallocx(void *ptr, int flags); 39 JEMALLOC_EXPORT void JEMALLOC_NOTHROW jet_sdallocx(void *ptr, size_t size, 54 JEMALLOC_USABLE_SIZE_CONST void *ptr) JEMALLOC_CXX_THROW;
|
H A D | jemalloc_protos.h | 23 void JEMALLOC_NOTHROW *je_realloc(void *ptr, size_t size) 25 JEMALLOC_EXPORT void JEMALLOC_NOTHROW je_free(void *ptr) 32 void JEMALLOC_NOTHROW *je_rallocx(void *ptr, size_t size, 34 JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW je_xallocx(void *ptr, size_t size, 36 JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW je_sallocx(const void *ptr, 38 JEMALLOC_EXPORT void JEMALLOC_NOTHROW je_dallocx(void *ptr, int flags); 39 JEMALLOC_EXPORT void JEMALLOC_NOTHROW je_sdallocx(void *ptr, size_t size, 54 JEMALLOC_USABLE_SIZE_CONST void *ptr) JEMALLOC_CXX_THROW;
|
/fuchsia/zircon/kernel/syscalls/ |
H A D | debug.cpp | 35 zx_status_t sys_debug_read(zx_handle_t handle, user_out_ptr<char> ptr, user_inout_ptr<size_t> len) { argument 36 LTRACEF("ptr %p\n", ptr.get()); 64 status = ptr.copy_array_to_user(&c, 1, idx); 72 zx_status_t sys_debug_write(user_in_ptr<const char> ptr, size_t len) { argument 73 LTRACEF("ptr %p, len %zu\n", ptr.get(), len); 79 if (ptr.copy_array_from_user(buf, len) != ZX_OK) 90 zx_status_t sys_debug_send_command(zx_handle_t handle, user_in_ptr<const char> ptr, size_t len) { argument 91 LTRACEF("ptr 170 sys_mtrace_control(zx_handle_t handle, uint32_t kind, uint32_t action, uint32_t options, user_inout_ptr<void> ptr, size_t size) argument [all...] |
/fuchsia/zircon/system/uapp/kstress/ |
H A D | vmstress.cpp | 69 uintptr_t ptr = 0; local 113 if (ptr) { 116 status = zx::vmar::root_self()->unmap(ptr, vmo_size); 120 ptr = 0; 125 ZX_VM_PERM_READ | ZX_VM_PERM_WRITE, &ptr); 150 if (ptr) { 153 memcpy(buf.get(), reinterpret_cast<const void *>(ptr + off), len); 158 if (ptr) { 161 memcpy(reinterpret_cast<void *>(ptr + off), buf.get(), len); 169 if (ptr) { [all...] |
/fuchsia/zircon/system/dev/block/zxcrypt/ |
H A D | extra.cpp | 56 uint8_t* ptr = reinterpret_cast<uint8_t*>(block); local 58 return reinterpret_cast<extra_op_t*>(ptr + op_size) - 1; 65 uint8_t* ptr = reinterpret_cast<uint8_t*>(extra + 1); local 67 return reinterpret_cast<block_op_t*>(ptr - op_size);
|
/fuchsia/zircon/system/ulib/fs/include/fs/ |
H A D | queue.h | 22 void push(T&& ptr) { argument 24 queue_.push_front(fbl::forward<T>(ptr)); 27 auto to_be_next = queue_.make_iterator(*ptr); 28 queue_.insert_after(next_, fbl::forward<T>(ptr));
|
/fuchsia/zircon/system/ulib/zircon-internal/include/lib/zircon-internal/ |
H A D | fnv1hash.h | 17 static inline uint32_t fnv1a32(const void* ptr, size_t len) { argument 19 const uint8_t* data = (const uint8_t*) ptr; 29 static inline uint64_t fnv1a64(const void* ptr, size_t len) { argument 31 const uint8_t* data = (const uint8_t*) ptr;
|
/fuchsia/zircon/system/utest/fbl/include/fbl/tests/intrusive_containers/ |
H A D | test_environment_utils.h | 28 static void MoveInto(ContainerType& container, PtrType&& ptr) { argument 29 container.push_front(fbl::move(ptr)); 39 static void MoveInto(ContainerType& container, PtrType&& ptr) { argument 40 container.insert(fbl::move(ptr));
|
/fuchsia/zircon/third_party/lib/jitterentropy/arch/arm64/ |
H A D | internal.h | 26 static inline void jent_zfree(void* ptr, size_t len) { argument
|
/fuchsia/zircon/third_party/ulib/uboringssl/include/openssl/ |
H A D | mem.h | 81 // OPENSSL_free does nothing if |ptr| is NULL. Otherwise it zeros out the 82 // memory allocated at |ptr| and frees it. 83 OPENSSL_EXPORT void OPENSSL_free(void *ptr); 86 // contains the contents of |ptr|. Unlike |realloc|, a new buffer is always 87 // allocated and the data at |ptr| is always wiped and freed. 88 OPENSSL_EXPORT void *OPENSSL_realloc(void *ptr, size_t new_size); 90 // OPENSSL_cleanse zeros out |len| bytes of memory at |ptr|. This is similar to 92 OPENSSL_EXPORT void OPENSSL_cleanse(void *ptr, size_t len); 102 OPENSSL_EXPORT uint32_t OPENSSL_hash32(const void *ptr, size_t len);
|
/fuchsia/zircon/kernel/vm/ |
H A D | vm_unittest.cpp | 93 uint32_t* ptr = (uint32_t*)_ptr; local 95 ASSERT(IS_ALIGNED((uintptr_t)ptr, 4)); 102 ptr[i] = val; 110 uint32_t* ptr = (uint32_t*)_ptr; local 112 ASSERT(IS_ALIGNED((uintptr_t)ptr, 4)); 119 if (ptr[i] != val) { 120 unittest_printf("value at %p (%zu) is incorrect: 0x%x vs 0x%x\n", &ptr[i], i, ptr[i], 131 static bool fill_and_test(void* ptr, size_t len) { argument 135 fill_region((uintptr_t)ptr, pt 150 void* ptr; local 175 void* ptr; local 210 void* ptr; local 260 void* ptr; local 270 void* ptr = (void*)1; local 282 void* ptr; local 292 void* ptr; local 313 void* ptr; local 589 void* ptr; local 614 void* ptr; local 639 void* ptr; local 667 void* ptr; local 705 void* ptr; local 791 uint8_t* ptr; local 841 void* ptr; local [all...] |
/fuchsia/zircon/system/utest/vmo/ |
H A D | bench.cpp | 58 uintptr_t ptr; local 79 zx_vmar_map(zx_vmar_root_self(), ZX_VM_PERM_READ | ZX_VM_PERM_WRITE, 0, vmo, 0, size, &ptr); local 83 __UNUSED char a = ((volatile char *)ptr)[i]; 90 __UNUSED char a = ((volatile char *)ptr)[i]; 97 ((volatile char *)ptr)[i] = 99; 104 ((volatile char *)ptr)[i] = 99; 111 zx_vmar_unmap(zx_vmar_root_self(), ptr, size); 116 zx_vmar_map(zx_vmar_root_self(), ZX_VM_PERM_READ | ZX_VM_PERM_WRITE, 0, vmo, 0, size, &ptr); local 120 __UNUSED char a = ((volatile char *)ptr)[i]; 125 zx_vmar_unmap(zx_vmar_root_self(), ptr, siz local 128 zx_vmar_map(zx_vmar_root_self(), ZX_VM_PERM_READ | ZX_VM_PERM_WRITE, 0, vmo, 0, size, &ptr); local 137 zx_vmar_unmap(zx_vmar_root_self(), ptr, size); local 148 zx_vmar_map(zx_vmar_root_self(), ZX_VM_PERM_READ | ZX_VM_PERM_WRITE, 0, vmo, 0, size, &ptr); local [all...] |
/fuchsia/zircon/system/utest/fbl/ |
H A D | unique_ptr_tests.cpp | 18 static void operator delete(void* ptr) { argument 20 ::operator delete(ptr); 23 static void operator delete[](void* ptr) { argument 25 ::operator delete[](ptr); 50 CountingPtr ptr(new (&ac) DeleteCounter); 65 CountingPtr ptr(new (&ac) DeleteCounter); 68 CountingPtr ptr2 = fbl::move(ptr); 69 EXPECT_NULL(ptr, "expected ptr to be null"); 84 CountingPtr ptr(nullpt 382 handoff_fn(UptrType&& ptr) argument 574 CountingPtr ptr = fbl::make_unique<DeleteCounter>(42); local 583 CountingPtr ptr = fbl::make_unique_checked<DeleteCounter>(&ac, 4242); local [all...] |