/external/u-boot/common/ |
D | malloc_simple.c | 17 ulong new_ptr; in malloc_simple() local 20 new_ptr = gd->malloc_ptr + bytes; in malloc_simple() 21 debug("%s: size=%zx, ptr=%lx, limit=%lx: ", __func__, bytes, new_ptr, in malloc_simple() 23 if (new_ptr > gd->malloc_limit) { in malloc_simple() 28 gd->malloc_ptr = ALIGN(new_ptr, sizeof(new_ptr)); in malloc_simple() 36 ulong addr, new_ptr; in memalign_simple() local 40 new_ptr = addr + bytes - gd->malloc_base; in memalign_simple() 41 if (new_ptr > gd->malloc_limit) { in memalign_simple() 47 gd->malloc_ptr = ALIGN(new_ptr, sizeof(new_ptr)); in memalign_simple()
|
/external/capstone/windows/ |
D | winkernel_mm.c | 60 void *new_ptr = cs_winkernel_malloc(total); in cs_winkernel_calloc() local 61 if (!new_ptr) { in cs_winkernel_calloc() 65 return RtlFillMemory(new_ptr, total, 0); in cs_winkernel_calloc() 71 void *new_ptr = NULL; in cs_winkernel_realloc() local 79 new_ptr = cs_winkernel_malloc(size); in cs_winkernel_realloc() 80 if (!new_ptr) { in cs_winkernel_realloc() 86 RtlCopyMemory(new_ptr, ptr, smaller_size); in cs_winkernel_realloc() 89 return new_ptr; in cs_winkernel_realloc()
|
/external/epid-sdk/epid/common/src/ |
D | memory.c | 96 void* new_ptr = EpidAlloc(new_size); in EpidRealloc() local 97 if (!new_ptr) return NULL; in EpidRealloc() 100 if (0 != memcpy_S(new_ptr, ((EpidAllocHeader*)new_ptr)[-1].length, ptr, in EpidRealloc() 102 ((EpidAllocHeader*)new_ptr)[-1].length))) { in EpidRealloc() 103 EpidFree(new_ptr); in EpidRealloc() 108 return new_ptr; in EpidRealloc()
|
/external/sqlite/android/ |
D | PhoneNumberUtils.cpp | 115 const char **new_ptr, size_t *new_len) in tryGetTrunkPrefixOmittedStr() argument 120 if (new_ptr != NULL) { in tryGetTrunkPrefixOmittedStr() 121 *new_ptr = str + i + 1; in tryGetTrunkPrefixOmittedStr() 141 const char **new_ptr, size_t *new_len, in tryGetCountryCallingCode() argument 189 if (new_ptr != NULL) { in tryGetCountryCallingCode() 190 *new_ptr = str + i + 1; in tryGetCountryCallingCode() 213 if (new_ptr != NULL) { in tryGetCountryCallingCode() 214 *new_ptr = str + i + 1; in tryGetCountryCallingCode()
|
/external/openssh/ |
D | xmalloc.c | 71 void *new_ptr; in xreallocarray() local 73 new_ptr = reallocarray(ptr, nmemb, size); in xreallocarray() 74 if (new_ptr == NULL) in xreallocarray() 77 return new_ptr; in xreallocarray()
|
/external/libaom/libaom/stats/ |
D | aomstats.c | 89 char *new_ptr = realloc(stats->buf.buf, new_sz); in stats_write() local 91 if (new_ptr) { in stats_write() 92 stats->buf_ptr = new_ptr + (stats->buf_ptr - (char *)stats->buf.buf); in stats_write() 93 stats->buf.buf = new_ptr; in stats_write()
|
/external/libvpx/libvpx/ |
D | vpxstats.c | 88 char *new_ptr = realloc(stats->buf.buf, new_sz); in stats_write() local 90 if (new_ptr) { in stats_write() 91 stats->buf_ptr = new_ptr + (stats->buf_ptr - (char *)stats->buf.buf); in stats_write() 92 stats->buf.buf = new_ptr; in stats_write()
|
/external/u-boot/arch/x86/lib/ |
D | coreboot_table.c | 35 u32 new_ptr; in high_table_malloc() local 38 new_ptr = gd->arch.high_table_ptr + bytes; in high_table_malloc() 39 if (new_ptr >= gd->arch.high_table_limit) in high_table_malloc() 42 gd->arch.high_table_ptr = new_ptr; in high_table_malloc()
|
/external/freetype/src/gzip/ |
D | zutil.c | 72 voidpf new_ptr; member 103 table[next_ptr++].new_ptr = buf; in zcalloc() 116 if (ptr != table[n].new_ptr) continue; in zcfree()
|
/external/compiler-rt/lib/asan/ |
D | asan_malloc_linux.cc | 81 void *new_ptr = asan_malloc(size, &stack); in INTERCEPTOR() local 82 internal_memcpy(new_ptr, ptr, copy_size); in INTERCEPTOR() 83 return new_ptr; in INTERCEPTOR()
|
D | asan_allocator.cc | 549 void *new_ptr = Allocate(new_size, 8, stack, FROM_MALLOC, true); in Reallocate() local 550 if (new_ptr) { in Reallocate() 558 REAL(memcpy)(new_ptr, old_ptr, memcpy_size); in Reallocate() 561 return new_ptr; in Reallocate()
|
/external/python/cpython2/Modules/zlib/ |
D | zutil.c | 206 voidpf new_ptr; member 239 table[next_ptr++].new_ptr = buf; in zcalloc() 255 if (ptr != table[n].new_ptr) continue; in zcfree()
|
/external/zlib/src/ |
D | zutil.c | 206 voidpf new_ptr; member 239 table[next_ptr++].new_ptr = buf; in zcalloc() 255 if (ptr != table[n].new_ptr) continue; in zcfree()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_debug_memory.c | 227 void *new_ptr; in debug_realloc() local 281 new_ptr = data_from_header(new_hdr); in debug_realloc() 282 memcpy( new_ptr, old_ptr, old_size < new_size ? old_size : new_size ); in debug_realloc() 289 return new_ptr; in debug_realloc()
|
/external/mesa3d/src/util/ |
D | ralloc.c | 753 ralloc_header *new_ptr; in linear_realloc() local 755 new_ptr = linear_alloc_child(parent, new_size); in linear_realloc() 758 return new_ptr; in linear_realloc() 762 if (likely(new_ptr && old_size)) in linear_realloc() 763 memcpy(new_ptr, old, MIN2(old_size, new_size)); in linear_realloc() 765 return new_ptr; in linear_realloc()
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_allocator.c | 203 void *new_ptr = VG_NOACCESS_READ(next_ptr); in anv_ptr_free_list_pop() local 205 void *new = PFL_PACK(new_ptr, new_count); in anv_ptr_free_list_pop()
|