Home
last modified time | relevance | path

Searched refs:alloc_size (Results 1 – 2 of 2) sorted by relevance

/btstack/3rd-party/lwip/core/src/apps/altcp_tls/
H A Daltcp_tls_mbedtls_mem.c107 size_t alloc_size; in tls_malloc() local
114 alloc_size = sizeof(altcp_mbedtls_malloc_helper_t) + (c * len); in tls_malloc()
116 if (alloc_size > MEM_SIZE) { in tls_malloc()
121 hlpr = (altcp_mbedtls_malloc_helper_t *)mem_malloc((mem_size_t)alloc_size); in tls_malloc()
/btstack/3rd-party/lwip/core/src/core/
H A Dmem.c1002 size_t alloc_size = (size_t)count * (size_t)size; in mem_calloc() local
1004 if ((size_t)(mem_size_t)alloc_size != alloc_size) { in mem_calloc()
1005 …M_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("mem_calloc: could not allocate %"SZT_F" bytes\n", alloc_size)); in mem_calloc()
1010 p = mem_malloc((mem_size_t)alloc_size); in mem_calloc()
1013 memset(p, 0, alloc_size); in mem_calloc()