Lines Matching refs:size
71 end = (p->start + p->size - 1) >> shift;
101 static struct mem_block *split_block(struct mem_block *p, int start, int size, drm_file_t *fpriv)
110 newblock->size = p->size - (start - p->start);
116 p->size -= newblock->size;
121 if (size < p->size) {
126 newblock->start = start + size;
127 newblock->size = p->size - size;
133 p->size = size;
142 static struct mem_block *alloc_block(struct mem_block *heap, int size,
150 if (p->filp == NULL && start + size <= p->start + p->size)
151 return split_block(p, start, size, fpriv);
188 p->size += q->size;
196 q->size += p->size;
205 static int init_heap(struct mem_block **heap, int start, int size)
219 blocks->size = size;
251 p->size += q->size;
309 alloc.size = alloc32.size;
324 block = alloc_block(*heap, alloc.size, alloc.alignment, fpriv);
394 return init_heap(heap, initheap.start, initheap.size);