/external/mesa3d/src/intel/tools/ |
D | aub_mem.c | 145 struct phys_mem *new_mem = calloc(1, sizeof(*new_mem)); in ensure_phys_mem() local 146 new_mem->phys_addr = phys_addr; in ensure_phys_mem() 147 new_mem->fd_offset = mem->mem_fd_len; in ensure_phys_mem() 152 new_mem->data = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, in ensure_phys_mem() 153 mem->mem_fd, new_mem->fd_offset); in ensure_phys_mem() 154 assert(new_mem->data != MAP_FAILED); in ensure_phys_mem() 156 rb_tree_insert_at(&mem->mem, node, &new_mem->node, cmp < 0); in ensure_phys_mem() 157 node = &new_mem->node; in ensure_phys_mem()
|
/external/ltp/testcases/kernel/syscalls/memfd_create/ |
D | memfd_create03.c | 130 void *new_mem; in test_max_hugepages() local 142 new_mem = mmap(NULL, hps, 0, MAP_PRIVATE, new_fd, 0); in test_max_hugepages() 143 if (new_mem == MAP_FAILED) { in test_max_hugepages() 156 SAFE_MUNMAP(new_mem, hps); in test_max_hugepages()
|
/external/llvm-project/compiler-rt/lib/memprof/ |
D | memprof_interceptors.cpp | 248 void *new_mem = memprof_malloc(length + 1, &stack); in INTERCEPTOR() local 249 REAL(memcpy)(new_mem, s, length + 1); in INTERCEPTOR() 250 return reinterpret_cast<char *>(new_mem); in INTERCEPTOR() 262 void *new_mem = memprof_malloc(length + 1, &stack); in INTERCEPTOR() local 263 REAL(memcpy)(new_mem, s, length + 1); in INTERCEPTOR() 264 return reinterpret_cast<char *>(new_mem); in INTERCEPTOR()
|
/external/webp/src/enc/ |
D | picture_enc.c | 195 uint8_t* new_mem; in WebPMemoryWrite() local 199 new_mem = (uint8_t*)WebPSafeMalloc(next_max_size, 1); in WebPMemoryWrite() 200 if (new_mem == NULL) { in WebPMemoryWrite() 204 memcpy(new_mem, w->mem, w->size); in WebPMemoryWrite() 207 w->mem = new_mem; in WebPMemoryWrite()
|
/external/llvm-project/compiler-rt/lib/asan/ |
D | asan_interceptors.cpp | 453 void *new_mem = asan_malloc(length + 1, &stack); in INTERCEPTOR() local 454 REAL(memcpy)(new_mem, s, length + 1); in INTERCEPTOR() 455 return reinterpret_cast<char*>(new_mem); in INTERCEPTOR() 469 void *new_mem = asan_malloc(length + 1, &stack); in INTERCEPTOR() local 470 REAL(memcpy)(new_mem, s, length + 1); in INTERCEPTOR() 471 return reinterpret_cast<char*>(new_mem); in INTERCEPTOR()
|
/external/compiler-rt/lib/asan/ |
D | asan_interceptors.cc | 563 void *new_mem = asan_malloc(length + 1, &stack); in INTERCEPTOR() local 564 REAL(memcpy)(new_mem, s, length + 1); in INTERCEPTOR() 565 return reinterpret_cast<char*>(new_mem); in INTERCEPTOR() 579 void *new_mem = asan_malloc(length + 1, &stack); in INTERCEPTOR() local 580 REAL(memcpy)(new_mem, s, length + 1); in INTERCEPTOR() 581 return reinterpret_cast<char*>(new_mem); in INTERCEPTOR()
|
/external/e2fsprogs/e2fsck/ |
D | rehash.c | 285 void *new_mem; in alloc_size_dir() local 288 new_mem = realloc(outdir->buf, blocks * fs->blocksize); in alloc_size_dir() 289 if (!new_mem) in alloc_size_dir() 291 outdir->buf = new_mem; in alloc_size_dir() 292 new_mem = realloc(outdir->hashes, in alloc_size_dir() 294 if (!new_mem) in alloc_size_dir() 296 outdir->hashes = new_mem; in alloc_size_dir()
|
/external/llvm-project/openmp/libomptarget/plugins/amdgpu/impl/ |
D | system.cpp | 264 ATLMemory new_mem(memory_pool, *proc, ATMI_MEMTYPE_FINE_GRAINED); in get_memory_pool_info() local 265 proc->addMemory(new_mem); in get_memory_pool_info() 271 ATLMemory new_mem(memory_pool, *proc, ATMI_MEMTYPE_COARSE_GRAINED); in get_memory_pool_info() local 272 proc->addMemory(new_mem); in get_memory_pool_info()
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_interceptors.inc | 297 char *new_mem = (char *)WRAP(malloc)(copy_length + 1); \ 301 COMMON_INTERCEPTOR_COPY_STRING(ctx, new_mem, s, copy_length); \ 302 internal_memcpy(new_mem, s, copy_length); \ 303 new_mem[copy_length] = '\0'; \ 304 return new_mem;
|