Lines Matching refs:TMemBlock
144 TMemBlock *p; in via_mmDumpMemInfo()
151 p = (TMemBlock *) heap; in via_mmDumpMemInfo()
170 blocks = (TMemBlock *) kmalloc(sizeof(TMemBlock), GFP_KERNEL); in via_mmInit()
173 memset(blocks, 0, sizeof(TMemBlock)); in via_mmInit()
185 blocks = (TMemBlock *) kmalloc(2 * sizeof(TMemBlock), GFP_KERNEL); in via_mmAddRange()
188 memset(blocks, 0, 2 * sizeof(TMemBlock)); in via_mmAddRange()
206 static TMemBlock *SliceBlock(TMemBlock * p, int startofs, int size, int reserved, int alignment) in SliceBlock()
208 TMemBlock *newblock; in SliceBlock()
212 newblock = (TMemBlock *) kmalloc(sizeof(TMemBlock), GFP_KERNEL); in SliceBlock()
215 memset(newblock, 0, sizeof(TMemBlock)); in SliceBlock()
227 newblock = (TMemBlock *) kmalloc(sizeof(TMemBlock), GFP_KERNEL); in SliceBlock()
230 memset(newblock, 0, sizeof(TMemBlock)); in SliceBlock()
249 TMemBlock *p; in via_mmAllocMem()
256 p = (TMemBlock *) heap; in via_mmAllocMem()
283 static __inline__ int Join2Blocks(TMemBlock * p) in Join2Blocks()
286 TMemBlock *q = p->next; in Join2Blocks()
299 TMemBlock *p, *prev; in via_mmFreeMem()
338 TMemBlock *p; in via_mm_ReserveMem()
343 p = (TMemBlock *) heap; in via_mm_ReserveMem()
357 TMemBlock *p, *prev; in via_mm_FreeReserved()
362 p = (TMemBlock *) heap; in via_mm_FreeReserved()
384 TMemBlock *p, *q; in via_mm_Destroy()
388 p = (TMemBlock *) heap; in via_mm_Destroy()