Home
last modified time | relevance | path

Searched refs:mem_size_t (Results 1 – 13 of 13) sorted by relevance

/third_party/lwip/src/core/
Dmem.c169 mem_trim(void *mem, mem_size_t size) in mem_trim()
193 #define MEM_LIBC_STATSHELPER_SIZE LWIP_MEM_ALIGN_SIZE(sizeof(mem_size_t))
207 mem_malloc(mem_size_t size) in mem_malloc()
215 *(mem_size_t *)ret = size; in mem_malloc()
234 MEM_STATS_DEC_USED_LOCKED(used, *(mem_size_t *)rmem); in mem_free()
251 mem_malloc(mem_size_t size) in mem_malloc()
256 mem_size_t required_size = size + LWIP_MEM_ALIGN_SIZE(sizeof(struct memp_malloc_helper)); in mem_malloc()
351 mem_size_t next;
353 mem_size_t prev;
358 mem_size_t user_size;
[all …]
Dpbuf.c274mem_size_t payload_len = (mem_size_t)(LWIP_MEM_ALIGN_SIZE(offset) + LWIP_MEM_ALIGN_SIZE(length)); in pbuf_alloc()
275 mem_size_t alloc_len = (mem_size_t)(LWIP_MEM_ALIGN_SIZE(SIZEOF_STRUCT_PBUF) + payload_len); in pbuf_alloc()
444 q = (struct pbuf *)mem_trim(q, (mem_size_t)(((u8_t *)q->payload - (u8_t *)q) + rem_len)); in pbuf_realloc()
/third_party/lwip/src/include/lwip/
Dmem.h50 typedef size_t mem_size_t; typedef
55 typedef u16_t mem_size_t;
64 typedef u32_t mem_size_t;
67 typedef u16_t mem_size_t;
73 void *mem_trim(void *mem, mem_size_t size);
74 void *mem_malloc(mem_size_t size);
75 void *mem_calloc(mem_size_t count, mem_size_t size);
Dstats.h103 mem_size_t avail;
104 mem_size_t used;
105 mem_size_t max;
391 #define MEM_STATS_INC_USED(x, y) STATS_INC_USED(mem, y, mem_size_t)
392 #define MEM_STATS_DEC_USED(x, y) lwip_stats.mem.x = (mem_size_t)((lwip_stats.mem.x) - (y))
/third_party/lwip/src/apps/altcp_tls/
Daltcp_tls_mbedtls_mem.c121 hlpr = (altcp_mbedtls_malloc_helper_t *)mem_malloc((mem_size_t)alloc_size); in tls_malloc()
193 size_t checked_size = (mem_size_t)size; in altcp_mbedtls_alloc_config()
198 ret = (altcp_mbedtls_state_t *)mem_calloc(1, (mem_size_t)size); in altcp_mbedtls_alloc_config()
/third_party/lwip/test/unit/core/
Dtest_mem.c37 mem_size_t s1, s2; in START_TEST()
66 LWIP_ASSERT("invalid size", size >= 0 && size < (mem_size_t)-1); in malloc_keep_x()
69 p[i] = mem_malloc((mem_size_t)size); in malloc_keep_x()
/third_party/lwip/src/netif/
Dbridgeif_fdb.c199 mem_size_t alloc_len = (mem_size_t)alloc_len_sizet; in bridgeif_fdb_init()
Dbridgeif.c418 mem_size_t alloc_len; in bridgeif_init()
438 alloc_len = (mem_size_t)alloc_len_sizet; in bridgeif_init()
/third_party/lwip/src/apps/http/
Dhttp_client.c511 mem_size_t mem_alloc_len; in httpc_init_connection_common()
532 mem_alloc_len = (mem_size_t)alloc_len; in httpc_init_connection_common()
537 req = (httpc_state_t*)mem_malloc((mem_size_t)alloc_len); in httpc_init_connection_common()
733 filestate = (httpc_filestate_t *)mem_malloc((mem_size_t)alloc_len); in httpc_fs_init()
Daltcp_proxyconnect.c113 mem_size_t alloc_len; in altcp_proxyconnect_send_request()
131 alloc_len = (mem_size_t)len; in altcp_proxyconnect_send_request()
Dhttpd.c1135 hs->buf = (char *)mem_malloc((mem_size_t)count);
/third_party/lwip/src/apps/smtp/
Dsmtp.c605 s = (struct smtp_session *)SMTP_STATE_MALLOC((mem_size_t)mem_len); in smtp_send_mail()
/third_party/lwip/
DCHANGELOG3298 and/or warnings on some systems where mem_size_t and size_t differ.
3966 facilitate printing of mem_size_t and u16_t statistics.