Lines Matching full:ram
350 /** index (-> ram[next]) of the next struct */
352 /** index (-> ram[prev]) of the previous struct */
364 * larger values could prevent too small blocks to fragment the RAM too much. */
383 /** pointer to the heap (ram_heap): for alignment, ram is now a pointer instead of an array */
384 static u8_t *ram; variable
453 return (struct mem *)(void *)&ram[ptr]; in ptr_to_mem()
459 return (mem_size_t)((u8_t *)mem - ram); in mem_to_ptr()
479 LWIP_ASSERT("plug_holes: mem >= ram", (u8_t *)mem >= ram); in plug_holes()
488 /* if mem->next is unused and not end of ram, combine mem and mem->next */ in plug_holes()
524 ram = (u8_t *)LWIP_MEM_ALIGN(LWIP_RAM_HEAP_POINTER); in mem_init()
526 mem = (struct mem *)(void *)ram; in mem_init()
538 lfree = (struct mem *)(void *)ram; in mem_init()
574 mem = (struct mem *)ram; in mem_sanity()
583 ((u8_t *)mem > ram) && (mem < ram_end); in mem_sanity()
638 if ((u8_t *)mem < ram || (u8_t *)rmem + MIN_SIZE_ALIGNED > (u8_t *)ram_end) { in mem_free()
677 MEM_STATS_DEC_USED(used, mem->next - (mem_size_t)(((u8_t *)mem - ram))); in mem_free()
721 LWIP_ASSERT("mem_trim: legal memory", (u8_t *)rmem >= (u8_t *)ram && in mem_trim()
724 if ((u8_t *)rmem < (u8_t *)ram || (u8_t *)rmem >= (u8_t *)ram_end) { in mem_trim()