Home
last modified time | relevance | path

Searched refs:MEM_TO_CHUNK (Results 1 – 12 of 12) sorted by relevance

/third_party/musl/porting/linux/user/src/malloc/
Dmalloc_usable_size.c30 return p ? CHUNK_SIZE(MEM_TO_CHUNK(p)) - OVERHEAD : 0; in internal_malloc_usable_size()
38 c = MEM_TO_CHUNK(p); in internal_malloc_usable_size()
Dmemalign.c38 struct chunk *c = MEM_TO_CHUNK(mem); in __memalign()
39 struct chunk *n = MEM_TO_CHUNK(new); in __memalign()
Dmalloc.c448 w = MEM_TO_CHUNK(p); in expand_heap()
454 w = MEM_TO_CHUNK(end); in expand_heap()
460 w = MEM_TO_CHUNK(p); in expand_heap()
767 if(IS_MMAPPED(MEM_TO_CHUNK(p))) in __libc_calloc()
785 if (IS_MMAPPED(MEM_TO_CHUNK(p))) in internal_calloc()
817 self = MEM_TO_CHUNK(p); in __libc_realloc()
938 self = MEM_TO_CHUNK(p); in internal_realloc()
1263 struct chunk *self = MEM_TO_CHUNK(p); in internal_free()
1300 struct chunk *c = MEM_TO_CHUNK(start), *n = MEM_TO_CHUNK(end); in __malloc_donate()
/third_party/musl/porting/liteos_a/user_debug/src/malloc/
Dmalloc.c155 w = MEM_TO_CHUNK(p); in expand_heap()
162 w = MEM_TO_CHUNK(end); in expand_heap()
168 w = MEM_TO_CHUNK(p); in expand_heap()
170 calculate_checksum(w, MEM_TO_CHUNK(end)); in expand_heap()
394 if (IS_MMAPPED(MEM_TO_CHUNK(p))) in calloc()
412 self = MEM_TO_CHUNK(p); in realloc()
596 struct chunk *self = MEM_TO_CHUNK(p); in free()
640 struct chunk *c = MEM_TO_CHUNK(start), *n = MEM_TO_CHUNK(end); in __malloc_donate()
Dmemalign.c45 struct chunk *c = MEM_TO_CHUNK(mem); in __memalign()
46 struct chunk *n = MEM_TO_CHUNK(new); in __memalign()
/third_party/musl/porting/liteos_a/user/src/malloc/
Dmalloc.c152 w = MEM_TO_CHUNK(p); in expand_heap()
158 w = MEM_TO_CHUNK(end); in expand_heap()
164 w = MEM_TO_CHUNK(p); in expand_heap()
361 if (IS_MMAPPED(MEM_TO_CHUNK(p))) in calloc()
379 self = MEM_TO_CHUNK(p); in realloc()
523 struct chunk *self = MEM_TO_CHUNK(p); in free()
544 struct chunk *c = MEM_TO_CHUNK(start), *n = MEM_TO_CHUNK(end); in __malloc_donate()
/third_party/musl/src/malloc/
Dmalloc.c152 w = MEM_TO_CHUNK(p); in expand_heap()
158 w = MEM_TO_CHUNK(end); in expand_heap()
164 w = MEM_TO_CHUNK(p); in expand_heap()
364 if (IS_MMAPPED(MEM_TO_CHUNK(p))) in calloc()
382 self = MEM_TO_CHUNK(p); in realloc()
526 struct chunk *self = MEM_TO_CHUNK(p); in free()
547 struct chunk *c = MEM_TO_CHUNK(start), *n = MEM_TO_CHUNK(end); in __malloc_donate()
Dmemalign.c29 struct chunk *c = MEM_TO_CHUNK(mem); in __memalign()
30 struct chunk *n = MEM_TO_CHUNK(new); in __memalign()
Dmalloc_usable_size.c8 return p ? CHUNK_SIZE(MEM_TO_CHUNK(p)) - OVERHEAD : 0; in malloc_usable_size()
/third_party/musl/porting/linux/user/src/internal/
Dmalloc_impl.h107 #define MEM_TO_CHUNK(p) (struct chunk *)((char *)(p) - OVERHEAD) macro
109 #define BIN_TO_CHUNK(i) (MEM_TO_CHUNK(&mal.bins[i].head))
112 #define QUARANTINE_TO_CHUNK(i) (MEM_TO_CHUNK(&mal.quarantine[i].head))
/third_party/musl/src/internal/
Dmalloc_impl.h34 #define MEM_TO_CHUNK(p) (struct chunk *)((char *)(p) - OVERHEAD) macro
36 #define BIN_TO_CHUNK(i) (MEM_TO_CHUNK(&mal.bins[i].head))
/third_party/musl/porting/liteos_a/user_debug/src/internal/
Dmalloc_impl.h79 #define MEM_TO_CHUNK(p) (struct chunk *)((char *)(p) - OVERHEAD) macro