Lines Matching refs:size
42 static struct mem_block *split_block(struct mem_block *p, int start, int size, in split_block() argument
52 newblock->size = p->size - (start - p->start); in split_block()
58 p->size -= newblock->size; in split_block()
63 if (size < p->size) { in split_block()
68 newblock->start = start + size; in split_block()
69 newblock->size = p->size - size; in split_block()
75 p->size = size; in split_block()
84 static struct mem_block *alloc_block(struct mem_block *heap, int size, in alloc_block() argument
92 if (p->file_priv == NULL && start + size <= p->start + p->size) in alloc_block()
93 return split_block(p, start, size, file_priv); in alloc_block()
119 p->size += q->size; in free_block()
127 q->size += p->size; in free_block()
136 static int init_heap(struct mem_block **heap, int start, int size) in init_heap() argument
150 blocks->size = size; in init_heap()
179 p->size += q->size; in radeon_mem_release()
241 block = alloc_block(*heap, alloc->size, alloc->alignment, file_priv); in radeon_mem_alloc()
301 return init_heap(heap, initheap->start, initheap->size); in radeon_mem_init_heap()