Home
last modified time | relevance | path

Searched refs:new_ptr (Results 1 – 16 of 16) sorted by relevance

/external/u-boot/common/
Dmalloc_simple.c17 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/
Dwinkernel_mm.c60 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/
Dmemory.c96 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/
DPhoneNumberUtils.cpp115 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/
Dxmalloc.c71 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/
Daomstats.c89 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/
Dvpxstats.c88 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/
Dcoreboot_table.c35 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/
Dzutil.c72 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/
Dasan_malloc_linux.cc81 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()
Dasan_allocator.cc549 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/
Dzutil.c206 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/
Dzutil.c206 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/
Du_debug_memory.c227 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/
Dralloc.c753 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/
Danv_allocator.c203 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()