Searched refs:mem_trim (Results 1 - 4 of 4) sorted by relevance
/third_party/lwip/src/include/lwip/ |
H A D | mem.h | 73 void *mem_trim(void *mem, mem_size_t size);
|
/third_party/lwip/test/unit/core/ |
H A D | test_mem.c | 30 /** Call mem_malloc, mem_free and mem_trim and check stats */ 52 mem_trim(p1, SIZE1_2); in START_TEST()
|
/third_party/lwip/src/core/ |
H A D | mem.c | 164 /** mem_trim is not used when using pools instead of a heap or using 166 * support mem_trim() to return a different pointer 169 mem_trim(void *mem, mem_size_t size) in mem_trim() function 468 * @internal this function is only called by mem_free() and mem_trim() 699 mem_trim(void *rmem, mem_size_t new_size) in mem_trim() function 721 LWIP_ASSERT("mem_trim: legal memory", (u8_t *)rmem >= (u8_t *)ram && in mem_trim() 725 LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_trim: illegal memory\n")); in mem_trim() 740 LWIP_ASSERT("mem_trim can only shrink memory", newsize <= size); in mem_trim() 862 /* run as long as a mem_free disturbed mem_malloc or mem_trim */ in mem_malloc() 876 /* allow mem_free or mem_trim t in mem_malloc() [all...] |
H A D | pbuf.c | 444 q = (struct pbuf *)mem_trim(q, (mem_size_t)(((u8_t *)q->payload - (u8_t *)q) + rem_len)); in pbuf_realloc() 445 LWIP_ASSERT("mem_trim returned q == NULL", q != NULL); in pbuf_realloc()
|
Completed in 5 milliseconds