Lines Matching full:used

29  * 3. The name of the author may not be used to endorse or promote products
98 /* magic and used flag */
100 rt_uint16_t used; member
163 RT_ASSERT(mem->used == 0); in plug_holes()
168 nmem->used == 0 && in plug_holes()
184 if (pmem != mem && pmem->used == 0) in plug_holes()
238 mem->used = 0; in rt_system_heap_init()
246 heap_end->used = 1; in rt_system_heap_init()
311 if ((!mem->used) && (mem->next - (ptr + SIZEOF_STRUCT_MEM)) >= size) in rt_malloc()
313 /* mem is not used and at least perfect fit is possible: in rt_malloc()
334 mem2->used = 0; in rt_malloc()
343 mem->used = 1; in rt_malloc()
358 … * be used at this point: if not we have 2 unused structs in a row, plug_holes should have in rt_malloc()
362 * will always be used at this point! in rt_malloc()
364 mem->used = 1; in rt_malloc()
383 while (lfree->used && lfree != heap_end) in rt_malloc()
386 RT_ASSERT(((lfree == heap_end) || (!lfree->used))); in rt_malloc()
481 mem2->used = 0; in rt_realloc()
581 /* ... which has to be in a used state ... */ in rt_free()
582 if (!mem->used || mem->magic != HEAP_MAGIC) in rt_free()
585 rt_kprintf("mem: 0x%08x, used flag: %d, magic code: 0x%04x\n", mem, mem->used, mem->magic); in rt_free()
587 RT_ASSERT(mem->used); in rt_free()
590 mem->used = 0; in rt_free()
614 rt_uint32_t *used, in rt_memory_info() argument
619 if (used != RT_NULL) in rt_memory_info()
620 *used = used_mem; in rt_memory_info()
631 rt_kprintf("used memory : %d\n", used_mem); in list_mem()
649 if (mem->used != 0 && mem->used != 1) goto __exit; in FINSH_FUNCTION_EXPORT()
658 rt_kprintf(" used: %d\n", mem->used); in FINSH_FUNCTION_EXPORT()