Lines Matching full:ram
337 /** index (-> ram[next]) of the next struct */
339 /** index (-> ram[prev]) of the previous struct */
351 * larger values could prevent too small blocks to fragment the RAM too much. */
370 /** pointer to the heap (ram_heap): for alignment, ram is now a pointer instead of an array */
371 static u8_t *ram; variable
440 return (struct mem *)(void *)&ram[ptr]; in ptr_to_mem()
446 return (mem_size_t)((u8_t *)mem - ram); in mem_to_ptr()
466 LWIP_ASSERT("plug_holes: mem >= ram", (u8_t *)mem >= ram); in plug_holes()
475 /* if mem->next is unused and not end of ram, combine mem and mem->next */ in plug_holes()
511 ram = (u8_t *)LWIP_MEM_ALIGN(LWIP_RAM_HEAP_POINTER); in mem_init()
513 mem = (struct mem *)(void *)ram; in mem_init()
525 lfree = (struct mem *)(void *)ram; in mem_init()
561 mem = (struct mem *)ram; in mem_sanity()
570 ((u8_t *)mem > ram) && (mem < ram_end); in mem_sanity()
625 if ((u8_t *)mem < ram || (u8_t *)rmem + MIN_SIZE_ALIGNED > (u8_t *)ram_end) { in mem_free()
664 MEM_STATS_DEC_USED(used, mem->next - (mem_size_t)(((u8_t *)mem - ram))); in mem_free()
708 LWIP_ASSERT("mem_trim: legal memory", (u8_t *)rmem >= (u8_t *)ram && in mem_trim()
711 if ((u8_t *)rmem < (u8_t *)ram || (u8_t *)rmem >= (u8_t *)ram_end) { in mem_trim()