Lines Matching full:memory

14  * 2013-07-11     Grissiom     fix the memory block splitting issue.
35 * The initialized memory pool will be:
37 * | whole freed memory block | Used Memory Block Tailer |
40 * block_list --> whole freed memory block
42 * The length of Used Memory Block Tailer is 0,
72 /* initialize the first big memory block */ in rt_lwp_memheap_init()
88 /* place the big memory block to free list */ in rt_lwp_memheap_init()
94 /* move to the end of memory pool to build a small tailer block, in rt_lwp_memheap_init()
98 /* it's a used memory block */ in rt_lwp_memheap_init()
110 ("memory heap: start addr 0x%08x, size %d, free list header 0x%08x\n", in rt_lwp_memheap_init()
146 /* get the first free memory block */ in rt_lwp_memheap_alloc()
150 /* get current freed memory block size */ in rt_lwp_memheap_alloc()
154 /* move to next free memory block */ in rt_lwp_memheap_alloc()
159 /* determine if the memory is available. */ in rt_lwp_memheap_alloc()
180 /* mark the new block as a memory block and freed. */ in rt_lwp_memheap_alloc()
240 /* Return a memory address to the caller. */ in rt_lwp_memheap_alloc()
242 ("alloc mem: memory[0x%08x], heap[0x%08x], size: %d\n", in rt_lwp_memheap_alloc()
254 RT_DEBUG_LOG(RT_DEBUG_MEMHEAP, ("allocate memory: failed\n")); in rt_lwp_memheap_alloc()
283 /* get memory block header and get the size of memory block */ in rt_lwp_memheap_realloc()
287 /* re-allocate memory */ in rt_lwp_memheap_realloc()
351 /* mark the new block as a memory block and freed. */ in rt_lwp_memheap_realloc()
381 /* re-allocate a memory block */ in rt_lwp_memheap_realloc()
416 /* mark the new block as a memory block and freed. */ in rt_lwp_memheap_realloc()
463 /* return the old memory block */ in rt_lwp_memheap_realloc()
483 RT_DEBUG_LOG(RT_DEBUG_MEMHEAP, ("free memory: memory[0x%08x], block[0x%08x]\n", in rt_lwp_memheap_free()
489 /* check whether this block of memory has been over-written. */ in rt_lwp_memheap_free()
504 /* Mark the memory as available. */ in rt_lwp_memheap_free()