Home
last modified time | relevance | path

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

/components/net/lwip/lwip-2.1.2/src/apps/altcp_tls/
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()
/components/net/lwip/lwip-2.1.2/src/core/
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()
/components/drivers/pic/
A Dpic-gicv3-its.c1115 rt_size_t pages_nr, alloc_size; in its_table_init() local
1169 alloc_size = (1 << tbl->size_bits) / (tbl->page_size / entry_size); in its_table_init()
1170 alloc_size *= GITS_LVL1_ENTRY_SIZE; in its_table_init()
1174 alloc_size = (1 << tbl->size_bits) * entry_size; in its_table_init()
1178 tbl->base = rt_malloc_align(alloc_size, tbl->page_size); in its_table_init()
1179 pages_nr = alloc_size / tbl->page_size; in its_table_init()
1220 rt_memset(tbl->base, 0, alloc_size); in its_table_init()
1221 rt_hw_cpu_dcache_ops(RT_HW_CACHE_FLUSH, tbl->base, alloc_size); in its_table_init()

Completed in 8 milliseconds