Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 17 of 17) sorted by relevance

/lib/liblwip/src/core/
Dmem.c156 struct mem { struct
173 #define SIZEOF_STRUCT_MEM LWIP_MEM_ALIGN_SIZE(sizeof(struct mem)) argument
189 static struct mem *ram_end;
191 static struct mem *lfree;
236 plug_holes(struct mem *mem) in plug_holes() argument
238 struct mem *nmem; in plug_holes()
239 struct mem *pmem; in plug_holes()
241 LWIP_ASSERT("plug_holes: mem >= ram", (u8_t *)mem >= ram); in plug_holes()
242 LWIP_ASSERT("plug_holes: mem < ram_end", (u8_t *)mem < (u8_t *)ram_end); in plug_holes()
243 LWIP_ASSERT("plug_holes: mem->used == 0", mem->used == 0); in plug_holes()
[all …]
Dstats.c65 lwip_stats.mem.name = "MEM"; in stats_init()
113 stats_display_mem(struct stats_mem *mem, const char *name) in stats_display_mem() argument
116 LWIP_PLATFORM_DIAG(("avail: %"U32_F"\n\t", (u32_t)mem->avail)); in stats_display_mem()
117 LWIP_PLATFORM_DIAG(("used: %"U32_F"\n\t", (u32_t)mem->used)); in stats_display_mem()
118 LWIP_PLATFORM_DIAG(("max: %"U32_F"\n\t", (u32_t)mem->max)); in stats_display_mem()
119 LWIP_PLATFORM_DIAG(("err: %"U32_F"\n", (u32_t)mem->err)); in stats_display_mem()
124 stats_display_memp(struct stats_mem *mem, int index) in stats_display_memp() argument
131 stats_display_mem(mem, memp_names[index]); in stats_display_memp()
Dmemp.c435 memp_free(memp_t type, void *mem) in memp_free() argument
440 if (mem == NULL) { in memp_free()
444 ((mem_ptr_t)mem % MEM_ALIGNMENT) == 0); in memp_free()
446 memp = (struct memp *)(void *)((u8_t*)mem - MEMP_SIZE); in memp_free()
Dpbuf.c1140 pbuf_memfind(struct pbuf* p, const void* mem, u16_t mem_len, u16_t start_offset) in pbuf_memfind() argument
1146 u16_t plus = pbuf_memcmp(p, i, mem, mem_len); in pbuf_memfind()
/lib/liblwip/test/unit/core/
Dtest_mem.c42 fail_unless(lwip_stats.mem.used == 0); in START_TEST()
46 fail_unless(lwip_stats.mem.used >= SIZE1); in START_TEST()
47 s1 = lwip_stats.mem.used; in START_TEST()
51 fail_unless(lwip_stats.mem.used >= SIZE2 + s1); in START_TEST()
52 s2 = lwip_stats.mem.used; in START_TEST()
57 fail_unless(lwip_stats.mem.used <= s2 - SIZE2); in START_TEST()
60 fail_unless(lwip_stats.mem.used == 0); in START_TEST()
/lib/liblwip/src/include/lwip/
Dmem.h65 #define mem_trim(mem, size) (mem) argument
85 #define mem_trim(mem, size) (mem)
89 void *mem_trim(void *mem, mem_size_t size);
93 void mem_free(void *mem);
Dstats.h139 struct stats_mem mem; member
232 #define MEM_STATS_AVAIL(x, y) lwip_stats.mem.x = y
233 #define MEM_STATS_INC(x) STATS_INC(mem.x)
234 #define MEM_STATS_INC_USED(x, y) STATS_INC_USED(mem, y)
235 #define MEM_STATS_DEC_USED(x, y) lwip_stats.mem.x -= y
236 #define MEM_STATS_DISPLAY() stats_display_mem(&lwip_stats.mem, "HEAP")
276 void stats_display_mem(struct stats_mem *mem, const char *name);
277 void stats_display_memp(struct stats_mem *mem, int index);
283 #define stats_display_mem(mem, name) argument
284 #define stats_display_memp(mem, index) argument
Dmemp.h88 #define memp_free(type, mem) mem_free(mem) argument
108 void memp_free(memp_t type, void *mem);
Dsockets.h331 int lwip_recv(int s, void *mem, size_t len, int flags);
332 int lwip_read(int s, void *mem, size_t len);
333 int lwip_recvfrom(int s, void *mem, size_t len, int flags,
Dpbuf.h171 u16_t pbuf_memfind(struct pbuf* p, const void* mem, u16_t mem_len, u16_t start_offset);
/lib/libc/
Dmalloc.c115 free_small(Header *mem) in free_small() argument
117 int idx = size_to_idx(mem->size); in free_small()
119 mem->next = pool[idx].free; in free_small()
120 pool[idx].free = mem; in free_small()
148 free_large(Header *mem) in free_large() argument
150 munmap(mem, mem->size); in free_large()
169 free(void *mem) in free() argument
171 Header *hdr = (Header *)mem; in free()
174 if (mem == NULL) in free()
/lib/liblwip/
DSConscript30 "src/core/mem.c",
DCHANGELOG167 * mem.c: fixed bug #34429: possible memory corruption with
224 * mem.h: fixed bug #34377 MEM_SIZE_F is not defined if MEM_LIBC_MALLOC==1
303 * mem.c: fixed bug #33545: With MEM_USE_POOLS==1, mem_malloc can return an
307 * mem.c: fixed bug #33544 "warning in mem.c in lwip 1.4.0 with NO_SYS=1"
423 * stats.c/.h: Added const char* name to mem- and memp-stats for easier
516 * mem.c: The heap now may be moved to user-defined memory by defining
781 * opt.h, mem.h, dns.c: task #10140: Remove DNS_USES_STATIC_BUF (keep
790 * mem.c/.h, pbuf.c: Renamed mem_realloc() to mem_trim() to prevent
827 * mem.h: Fixed bug #28866 (mem_realloc function defined in mem.h)
906 * mem.c: Fixed bug #28679: mem_realloc calculates mem_stats wrong
[all …]
DUPGRADING111 * Added const char* name to mem- and memp-stats for easier debugging.
/lib/liblwip/src/api/
Dapi_msg.c684 void *mem; local
693 while (sys_mbox_tryfetch(&conn->recvmbox, &mem) != SYS_MBOX_EMPTY) {
696 if(mem != NULL) {
697 p = (struct pbuf*)mem;
707 netbuf_delete((struct netbuf *)mem);
717 while (sys_mbox_tryfetch(&conn->acceptmbox, &mem) != SYS_MBOX_EMPTY) {
718 struct netconn *newconn = (struct netconn *)mem;
Dsockets.c557 lwip_recvfrom(int s, void *mem, size_t len, int flags, in lwip_recvfrom() argument
570 LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom(%d, %p, %"SZT_F", 0x%x, ..)\n", s, mem, len, flags)); in lwip_recvfrom()
648 pbuf_copy_partial(p, (u8_t*)mem + off, copylen, sock->lastoffset); in lwip_recvfrom()
742 lwip_read(int s, void *mem, size_t len) in lwip_read() argument
744 return lwip_recvfrom(s, mem, len, 0, NULL, NULL); in lwip_read()
748 lwip_recv(int s, void *mem, size_t len, int flags) in lwip_recv() argument
750 return lwip_recvfrom(s, mem, len, flags, NULL, NULL); in lwip_recv()
/lib/liblwip/doc/
Dsys_arch.txt213 mem_malloc() you can run into a circular function call problem. In mem.c