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);
3227 sisfb_poh_new_node(struct SIS_HEAP *memheap) in sisfb_poh_new_node() argument
3234 if(memheap->poh_freelist == NULL) { in sisfb_poh_new_node()
3239 poha->poha_next = memheap->poha_chain; in sisfb_poh_new_node()
3240 memheap->poha_chain = poha; in sisfb_poh_new_node()
3251 memheap->poh_freelist = &poha->aoh[0]; in sisfb_poh_new_node()
3254 poh = memheap->poh_freelist; in sisfb_poh_new_node()
3255 memheap->poh_freelist = poh->poh_next; in sisfb_poh_new_node()
3261 sisfb_poh_allocate(struct SIS_HEAP *memheap, u32 size) in sisfb_poh_allocate() argument
3267 if(size > memheap->max_freesize) { in sisfb_poh_allocate()
3273 pohThis = memheap->oh_free.poh_next; in sisfb_poh_allocate()
3275 while(pohThis != &memheap->oh_free) { in sisfb_poh_allocate()
3293 pohRoot = sisfb_poh_new_node(memheap); in sisfb_poh_allocate()
3304 memheap->max_freesize -= size; in sisfb_poh_allocate()
3306 pohThis = &memheap->oh_used; in sisfb_poh_allocate()
3332 sisfb_poh_free(struct SIS_HEAP *memheap, u32 base) in sisfb_poh_free() argument
3342 poh_freed = memheap->oh_used.poh_next; in sisfb_poh_free()
3344 while(poh_freed != &memheap->oh_used) { in sisfb_poh_free()
3356 memheap->max_freesize += poh_freed->size; in sisfb_poh_free()
3362 pohThis = memheap->oh_free.poh_next; in sisfb_poh_free()
3364 while(pohThis != &memheap->oh_free) { in sisfb_poh_free()
3378 sisfb_free_node(memheap, poh_freed); in sisfb_poh_free()
3379 sisfb_free_node(memheap, poh_next); in sisfb_poh_free()
3385 sisfb_free_node(memheap, poh_freed); in sisfb_poh_free()
3392 sisfb_free_node(memheap, poh_freed); in sisfb_poh_free()
3396 sisfb_insert_node(&memheap->oh_free, poh_freed); in sisfb_poh_free()
3402 sisfb_free_node(struct SIS_HEAP *memheap, struct SIS_OH *poh) in sisfb_free_node() argument
3407 poh->poh_next = memheap->poh_freelist; in sisfb_free_node()
3408 memheap->poh_freelist = poh; in sisfb_free_node()