Lines Matching refs:ram
350 /** index (-> ram[next]) of the next struct */
352 /** index (-> ram[prev]) of the previous struct */
383 /** pointer to the heap (ram_heap): for alignment, ram is now a pointer instead of an array */
384 static u8_t *ram;
453 return (struct mem *)(void *)&ram[ptr];
459 return (mem_size_t)((u8_t *)mem - ram);
479 LWIP_ASSERT("plug_holes: mem >= ram", (u8_t *)mem >= ram);
488 /* if mem->next is unused and not end of ram, combine mem and mem->next */
524 ram = (u8_t *)LWIP_MEM_ALIGN(LWIP_RAM_HEAP_POINTER);
526 mem = (struct mem *)(void *)ram;
538 lfree = (struct mem *)(void *)ram;
574 mem = (struct mem *)ram;
583 ((u8_t *)mem > ram) && (mem < ram_end);
638 if ((u8_t *)mem < ram || (u8_t *)rmem + MIN_SIZE_ALIGNED > (u8_t *)ram_end) {
677 MEM_STATS_DEC_USED(used, mem->next - (mem_size_t)(((u8_t *)mem - ram)));
721 LWIP_ASSERT("mem_trim: legal memory", (u8_t *)rmem >= (u8_t *)ram &&
724 if ((u8_t *)rmem < (u8_t *)ram || (u8_t *)rmem >= (u8_t *)ram_end) {