Lines Matching refs:mem_head
16 void **mem_head) in mem_init() argument
18 *mem_head = mem_pool; in mem_init()
40 void *mem_acquire(void **mem_head) in mem_acquire() argument
42 if (*mem_head) { in mem_acquire()
48 free_count = *((uint16_t *)MROUND((uint8_t *)*mem_head + in mem_acquire()
49 sizeof(mem_head))); in mem_acquire()
52 mem = *mem_head; in mem_acquire()
61 *mem_head = head; in mem_acquire()
68 void mem_release(void *mem, void **mem_head) in mem_release() argument
73 if (*mem_head) { in mem_release()
74 free_count = *((uint16_t *)MROUND((uint8_t *)*mem_head + in mem_release()
75 sizeof(mem_head))); in mem_release()
79 memcpy(mem, mem_head, sizeof(mem)); in mem_release()
84 *mem_head = mem; in mem_release()
87 uint16_t mem_free_count_get(void *mem_head) in mem_free_count_get() argument
92 if (mem_head) { in mem_free_count_get()
93 free_count = *((uint16_t *)MROUND((uint8_t *)mem_head + in mem_free_count_get()
94 sizeof(mem_head))); in mem_free_count_get()