Lines Matching refs:start
42 static struct mem_block *split_block(struct mem_block *p, int start, int size, in split_block() argument
46 if (start > p->start) { in split_block()
51 newblock->start = start; in split_block()
52 newblock->size = p->size - (start - p->start); in split_block()
68 newblock->start = start + size; in split_block()
91 int start = (p->start + mask) & ~mask; in alloc_block() local
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()
99 static struct mem_block *find_block(struct mem_block *heap, int start) in find_block() argument
104 if (p->start == start) in find_block()
136 static int init_heap(struct mem_block **heap, int start, int size) in init_heap() argument
149 blocks->start = start; in init_heap()
246 if (copy_to_user(alloc->region_offset, &block->start, in radeon_mem_alloc()
301 return init_heap(heap, initheap->start, initheap->size); in radeon_mem_init_heap()