Lines Matching refs:size
51 split_block(struct mem_block *p, int start, int size, drm_file_t *filp)
60 newblock->size = p->size - (start - p->start);
66 p->size -= newblock->size;
71 if (size < p->size) {
76 newblock->start = start + size;
77 newblock->size = p->size - size;
83 p->size = size;
93 alloc_block(struct mem_block *heap, int size, int align2, drm_file_t *filp)
100 if (p->filp == 0 && start + size <= p->start + p->size)
101 return (split_block(p, start, size, filp));
130 p->size += q->size;
138 q->size += p->size;
149 init_heap(struct mem_block **heap, int start, int size)
163 blocks->size = size;
196 p->size += q->size;
262 alloc.size = alloc32.size;
282 block = alloc_block(*heap, alloc.size, alloc.alignment, fpriv);
352 return (init_heap(heap, initheap.start, initheap.size));