Home
last modified time | relevance | path

Searched refs:mem_malloc (Results 1 - 22 of 22) sorted by relevance

/third_party/lwip/test/unit/core/
H A Dtest_mem.c30 /** Call mem_malloc, mem_free and mem_trim and check stats */
42 p1 = mem_malloc(SIZE1); in START_TEST()
47 p2 = mem_malloc(SIZE2); in START_TEST()
69 p[i] = mem_malloc((mem_size_t)size); in malloc_keep_x()
122 ptr = (u8_t *)mem_malloc(1); in START_TEST()
150 ptr1 = (u8_t *)mem_malloc(1); in START_TEST()
154 ptr2 = (u8_t *)mem_malloc(1); in START_TEST()
158 ptr3 = (u8_t *)mem_malloc(1); in START_TEST()
193 ptr1b = (u8_t *)mem_malloc(MIN_SIZE * 2); in START_TEST()
/third_party/lwip/test/sockets/
H A Dsockets_stresstest.c458 data = (struct sockets_stresstest_fullduplex*)mem_malloc(sizeof(struct sockets_stresstest_fullduplex)); in sockets_stresstest_conn_client()
660 struct test_settings *settings = (struct test_settings *)mem_malloc(sizeof(struct test_settings)); in sockets_stresstest_init_loopback()
679 struct test_settings *settings = (struct test_settings *)mem_malloc(sizeof(struct test_settings)); in sockets_stresstest_init_server()
703 struct sockaddr_storage *addr = (struct sockaddr_storage *)mem_malloc(sizeof(struct sockaddr_storage)); in sockets_stresstest_init_client()
/third_party/lwip/src/include/lwip/apps/
H A Dsmtp_opts.h68 #define SMTP_STATE_MALLOC(size) mem_malloc(size)
/third_party/lwip/src/include/lwip/
H A Dmem.h74 void *mem_malloc(mem_size_t size);
/third_party/lwip/src/core/
H A Dmem.c10 * To let mem_malloc() use pools (prevents fragmentation and is much faster than
207 mem_malloc(mem_size_t size) in mem_malloc() function
225 * @param rmem is the pointer as returned by a previous call to mem_malloc()
251 mem_malloc(mem_size_t size) in mem_malloc() function
278 LWIP_ASSERT("mem_malloc(): no pool is that big!", 0); in mem_malloc()
301 * Free memory previously allocated by mem_malloc. Loads the pool number
412 /* mem_malloc is protected using mutex AND LWIP_MEM_ALLOC_PROTECT */
614 * call to mem_malloc()
689 * Shrink memory returned by mem_malloc().
691 * @param rmem pointer to memory allocated by mem_malloc th
831 mem_malloc(mem_size_t size_in) mem_malloc() function
[all...]
H A Dmemp.c254 memp = (struct memp *)mem_malloc(MEMP_SIZE + MEMP_ALIGN_SIZE(desc->size)); in do_memp_malloc_pool()
H A Dpbuf.c284 p = (struct pbuf *)mem_malloc(alloc_len); in pbuf_alloc()
/third_party/lwip/src/apps/altcp_tls/
H A Daltcp_tls_mbedtls_mem.c121 hlpr = (altcp_mbedtls_malloc_helper_t *)mem_malloc((mem_size_t)alloc_size); in tls_malloc()
/third_party/lwip/src/core/distributed_net/
H A Dudp_transmit.c115 struct iovec *iov = mem_malloc(size); in udp_transmit_sendmsg()
H A Ddistributed_net_core.c209 void *new_buf = mem_malloc(new_buf_len); in distributed_net_recvfrom()
/third_party/lwip/src/netif/
H A Dzepif.c226 struct zepif_state *state = (struct zepif_state *)mem_malloc(sizeof(struct zepif_state)); in zepif_init()
H A Dslipif.c373 priv = (struct slipif_priv *)mem_malloc(sizeof(struct slipif_priv)); in slipif_init()
H A Dlowpan6.c732 lrh = (struct lowpan6_reass_helper *) mem_malloc(sizeof(struct lowpan6_reass_helper)); in lowpan6_input()
/third_party/lwip/src/apps/http/
H A Dhttp_client.c537 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()
H A Daltcp_proxyconnect.c137 buffer = (char *)mem_malloc(alloc_len); in altcp_proxyconnect_send_request()
H A Dhttpd.c300 #define HTTP_ALLOC_HTTP_STATE() (struct http_state *)mem_malloc(sizeof(struct http_state))
303 #define HTTP_ALLOC_SSI_STATE() (struct http_ssi_state *)mem_malloc(sizeof(struct http_ssi_state))
1135 hs->buf = (char *)mem_malloc((mem_size_t)count);
/third_party/lwip/src/netif/ppp/
H A Dpppoe.c530 sc->sc_hunique = mem_malloc(hunique_len); in pppoe_disc_input()
568 sc->sc_hunique = mem_malloc(hunique_len); in pppoe_disc_input()
/third_party/lwip/src/apps/lwiperf/
H A Dlwiperf.c78 #define LWIPERF_ALLOC(type) mem_malloc(sizeof(type))
/third_party/lwip/src/core/ipv6/
H A Ddhcp6.c179 * Using this prevents dhcp6_start to allocate it using mem_malloc.
222 dhcp6 = (struct dhcp6 *)mem_malloc(sizeof(struct dhcp6)); in dhcp6_get_struct()
/third_party/lwip/test/unit/api/
H A Dtest_sockets.c345 snd_buf = (u8_t*)mem_malloc(BUF_SZ); in test_sockets_msgapi_tcp()
/third_party/lwip/src/apps/smtp/
H A Dsmtp.c165 #define SMTP_BODYDH_MALLOC(size) mem_malloc(size)
/third_party/lwip/src/core/ipv4/
H A Ddhcp.c757 * Using this prevents dhcp_start to allocate it using mem_malloc.
830 dhcp = (struct dhcp *)mem_malloc(sizeof(struct dhcp));

Completed in 24 milliseconds