Lines Matching full:memory

18  * 2013-07-11     Grissiom     fix the memory block splitting issue.
40 * The initialized memory pool will be:
42 * | whole freed memory block | Used Memory Block Tailer |
45 * block_list --> whole freed memory block
47 * The length of Used Memory Block Tailer is 0,
79 /* initialize the first big memory block */ in rt_memheap_init()
95 /* place the big memory block to free list */ in rt_memheap_init()
101 /* move to the end of memory pool to build a small tailer block, in rt_memheap_init()
105 /* it's a used memory block */ in rt_memheap_init()
117 ("memory heap: start addr 0x%08x, size %d, free list header 0x%08x\n", in rt_memheap_init()
169 /* get the first free memory block */ in rt_memheap_alloc()
173 /* get current freed memory block size */ in rt_memheap_alloc()
177 /* move to next free memory block */ in rt_memheap_alloc()
182 /* determine if the memory is available. */ in rt_memheap_alloc()
203 /* mark the new block as a memory block and freed. */ in rt_memheap_alloc()
263 /* Return a memory address to the caller. */ in rt_memheap_alloc()
265 ("alloc mem: memory[0x%08x], heap[0x%08x], size: %d\n", in rt_memheap_alloc()
277 RT_DEBUG_LOG(RT_DEBUG_MEMHEAP, ("allocate memory: failed\n")); in rt_memheap_alloc()
310 /* get memory block header and get the size of memory block */ in rt_memheap_realloc()
314 /* re-allocate memory */ in rt_memheap_realloc()
378 /* mark the new block as a memory block and freed. */ in rt_memheap_realloc()
408 /* re-allocate a memory block */ in rt_memheap_realloc()
443 /* mark the new block as a memory block and freed. */ in rt_memheap_realloc()
490 /* return the old memory block */ in rt_memheap_realloc()
511 RT_DEBUG_LOG(RT_DEBUG_MEMHEAP, ("free memory: memory[0x%08x], block[0x%08x]\n", in rt_memheap_free()
517 /* check whether this block of memory has been over-written. */ in rt_memheap_free()
535 /* Mark the memory as available. */ in rt_memheap_free()
623 /* try to allocate on other memory heap */ in rt_malloc()
670 /* get old memory item */ in rt_realloc()
677 /* allocate memory block from other memheap */ in rt_realloc()
683 /* get the size of old memory block */ in rt_realloc()
707 /* clean memory */ in rt_calloc()