Home | History | Annotate | Download | only in mem

Lines Matching defs:fp

19 	struct free_arena_header *fp;
37 fp = (struct free_arena_header *)start;
38 fp->a.attrs = ARENA_TYPE_USED | (HEAP_MAIN << ARENA_HEAP_POS);
40 fp->a.magic = ARENA_MAGIC;
42 ARENA_SIZE_SET(fp->a.attrs, len);
44 __inject_free_block(fp);
55 struct free_arena_header *fp;
59 fp = head->next_free;
60 while (fp != head) {
61 size = ARENA_SIZE_GET(fp->a.attrs);
62 type = ARENA_TYPE_GET(fp->a.attrs);
63 start = (addr_t)fp;
67 fp = fp->next_free;
75 struct free_arena_header *fp;
81 fp = &__core_malloc_head[0];
83 fp->a.next = fp->a.prev = fp->next_free = fp->prev_free = fp;
84 fp->a.attrs = ARENA_TYPE_HEAD | (i << ARENA_HEAP_POS);
85 fp->a.tag = MALLOC_HEAD;
86 fp++;
93 fp = (struct free_arena_header *)__lowmem_heap;
94 fp->a.attrs = ARENA_TYPE_USED | (HEAP_LOWMEM << ARENA_HEAP_POS);
95 ARENA_SIZE_SET(fp->a.attrs, (*bios_free_mem << 10) - (uintptr_t)fp);
97 fp->a.magic = ARENA_MAGIC;
99 __inject_free_block(fp);