Lines Matching refs:bytes

1243 Void_t* mALLOc_impl(size_t bytes)  in mALLOc_impl()  argument
1245 Void_t* mALLOc_impl(bytes) size_t bytes; in mALLOc_impl()
1265 return malloc_simple(bytes);
1279 if (bytes > CONFIG_SYS_MALLOC_LEN || (long)bytes < 0)
1282 nb = request2size(bytes); /* padded request size; */
1307 VALGRIND_MALLOCLIKE_BLOCK(chunk2mem(victim), bytes, SIZE_SZ, false);
1335 VALGRIND_MALLOCLIKE_BLOCK(chunk2mem(victim), bytes, SIZE_SZ, false);
1359 VALGRIND_MALLOCLIKE_BLOCK(chunk2mem(victim), bytes, SIZE_SZ, false);
1369 VALGRIND_MALLOCLIKE_BLOCK(chunk2mem(victim), bytes, SIZE_SZ, false);
1425 VALGRIND_MALLOCLIKE_BLOCK(chunk2mem(victim), bytes, SIZE_SZ, false);
1434 VALGRIND_MALLOCLIKE_BLOCK(chunk2mem(victim), bytes, SIZE_SZ, false);
1482 VALGRIND_MALLOCLIKE_BLOCK(chunk2mem(victim), bytes, SIZE_SZ, false);
1497 VALGRIND_MALLOCLIKE_BLOCK(chunk2mem(victim), bytes, SIZE_SZ, false);
1660 Void_t* rEALLOc_impl(Void_t* oldmem, size_t bytes) in rEALLOc_impl() argument
1662 Void_t* rEALLOc_impl(oldmem, bytes) Void_t* oldmem; size_t bytes; in rEALLOc_impl()
1687 if (!bytes) {
1693 if (bytes > CONFIG_SYS_MALLOC_LEN || (long)bytes < 0)
1697 if (oldmem == NULL) return mALLOc_impl(bytes);
1713 nb = request2size(bytes);
1725 newmem = mALLOc_impl(bytes);
1755 VALGRIND_RESIZEINPLACE_BLOCK(chunk2mem(oldp), 0, bytes, SIZE_SZ);
1756 VALGRIND_MAKE_MEM_DEFINED(chunk2mem(oldp), bytes);
1766 VALGRIND_RESIZEINPLACE_BLOCK(chunk2mem(oldp), 0, bytes, SIZE_SZ);
1767 VALGRIND_MAKE_MEM_DEFINED(chunk2mem(oldp), bytes);
1797 VALGRIND_MALLOCLIKE_BLOCK(newmem, bytes, SIZE_SZ, false);
1815 VALGRIND_MALLOCLIKE_BLOCK(newmem, bytes, SIZE_SZ, false);
1828 VALGRIND_MALLOCLIKE_BLOCK(newmem, bytes, SIZE_SZ, false);
1836 newmem = mALLOc_impl (bytes);
1856 VALGRIND_RESIZEINPLACE_BLOCK(oldmem, 0, bytes, SIZE_SZ);
1857 VALGRIND_MAKE_MEM_DEFINED(oldmem, bytes);
1903 Void_t* mEMALIGn_impl(size_t alignment, size_t bytes) in mEMALIGn_impl() argument
1905 Void_t* mEMALIGn_impl(alignment, bytes) size_t alignment; size_t bytes; in mEMALIGn_impl()
1918 if (bytes > CONFIG_SYS_MALLOC_LEN || (long)bytes < 0)
1923 return memalign_simple(alignment, bytes);
1929 if (alignment <= MALLOC_ALIGNMENT) return mALLOc_impl(bytes);
1937 nb = request2size(bytes);
1954 m = (char*)(mALLOc_impl(bytes));
1965 m = (char*)(mALLOc_impl(bytes + extra));
2026 VALGRIND_MALLOCLIKE_BLOCK(chunk2mem(p), bytes, SIZE_SZ, false);
2057 Void_t* vALLOc(size_t bytes) in vALLOc() argument
2059 Void_t* vALLOc(bytes) size_t bytes; in vALLOc()
2062 return mEMALIGn (malloc_getpagesize, bytes);
2071 Void_t* pvALLOc(size_t bytes) in pvALLOc() argument
2073 Void_t* pvALLOc(bytes) size_t bytes; in pvALLOc()
2077 return mEMALIGn (pagesize, (bytes + pagesize - 1) & ~(pagesize - 1));
2169 Void_t *mALLOc(size_t bytes) in mALLOc() argument
2172 size_t fullsz = mcheck_alloc_prehook(bytes); in mALLOc()
2177 return mcheck_alloc_posthook(p, bytes); in mALLOc()
2182 Void_t *rEALLOc(Void_t *oldmem, size_t bytes) in rEALLOc() argument
2185 if (bytes == 0) { in rEALLOc()
2192 return mALLOc(bytes); in rEALLOc()
2195 size_t newsz = mcheck_alloc_prehook(bytes); in rEALLOc()
2200 return mcheck_alloc_noclean_posthook(p, bytes); in rEALLOc()
2203 Void_t *mEMALIGn(size_t alignment, size_t bytes) in mEMALIGn() argument
2206 size_t fullsz = mcheck_memalign_prehook(alignment, bytes); in mEMALIGn()
2211 return mcheck_memalign_posthook(alignment, p, bytes); in mEMALIGn()