Lines Matching refs:memheap
97 static struct SIS_OH * sisfb_poh_new_node(struct SIS_HEAP *memheap);
98 static struct SIS_OH * sisfb_poh_allocate(struct SIS_HEAP *memheap, u32 size);
101 static struct SIS_OH * sisfb_poh_free(struct SIS_HEAP *memheap, u32 base);
102 static void sisfb_free_node(struct SIS_HEAP *memheap, struct SIS_OH *poh);
3210 sisfb_poh_new_node(struct SIS_HEAP *memheap) in sisfb_poh_new_node() argument
3217 if(memheap->poh_freelist == NULL) { in sisfb_poh_new_node()
3222 poha->poha_next = memheap->poha_chain; in sisfb_poh_new_node()
3223 memheap->poha_chain = poha; in sisfb_poh_new_node()
3234 memheap->poh_freelist = &poha->aoh[0]; in sisfb_poh_new_node()
3237 poh = memheap->poh_freelist; in sisfb_poh_new_node()
3238 memheap->poh_freelist = poh->poh_next; in sisfb_poh_new_node()
3244 sisfb_poh_allocate(struct SIS_HEAP *memheap, u32 size) in sisfb_poh_allocate() argument
3250 if(size > memheap->max_freesize) { in sisfb_poh_allocate()
3256 pohThis = memheap->oh_free.poh_next; in sisfb_poh_allocate()
3258 while(pohThis != &memheap->oh_free) { in sisfb_poh_allocate()
3276 pohRoot = sisfb_poh_new_node(memheap); in sisfb_poh_allocate()
3287 memheap->max_freesize -= size; in sisfb_poh_allocate()
3289 pohThis = &memheap->oh_used; in sisfb_poh_allocate()
3315 sisfb_poh_free(struct SIS_HEAP *memheap, u32 base) in sisfb_poh_free() argument
3325 poh_freed = memheap->oh_used.poh_next; in sisfb_poh_free()
3327 while(poh_freed != &memheap->oh_used) { in sisfb_poh_free()
3339 memheap->max_freesize += poh_freed->size; in sisfb_poh_free()
3345 pohThis = memheap->oh_free.poh_next; in sisfb_poh_free()
3347 while(pohThis != &memheap->oh_free) { in sisfb_poh_free()
3361 sisfb_free_node(memheap, poh_freed); in sisfb_poh_free()
3362 sisfb_free_node(memheap, poh_next); in sisfb_poh_free()
3368 sisfb_free_node(memheap, poh_freed); in sisfb_poh_free()
3375 sisfb_free_node(memheap, poh_freed); in sisfb_poh_free()
3379 sisfb_insert_node(&memheap->oh_free, poh_freed); in sisfb_poh_free()
3385 sisfb_free_node(struct SIS_HEAP *memheap, struct SIS_OH *poh) in sisfb_free_node() argument
3390 poh->poh_next = memheap->poh_freelist; in sisfb_free_node()
3391 memheap->poh_freelist = poh; in sisfb_free_node()