Searched refs:alloc_size (Results 1 – 2 of 2) sorted by relevance
107 size_t alloc_size; in tls_malloc() local114 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()
1002 size_t alloc_size = (size_t)count * (size_t)size; in mem_calloc() local1004 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()