Lines Matching refs:size
48 split_block(struct mem_block *p, int start, int size, drm_file_t *filp)
57 newblock->size = p->size - (start - p->start);
63 p->size -= newblock->size;
68 if (size < p->size) {
73 newblock->start = start + size;
74 newblock->size = p->size - size;
80 p->size = size;
90 alloc_block(struct mem_block *heap, int size, int align2, drm_file_t *filp)
97 if (p->filp == 0 && start + size <= p->start + p->size)
98 return (split_block(p, start, size, filp));
127 p->size += q->size;
135 q->size += p->size;
146 init_heap(struct mem_block **heap, int start, int size)
160 blocks->size = size;
193 p->size += q->size;
259 alloc.size = alloc32.size;
279 block = alloc_block(*heap, alloc.size, alloc.alignment, fpriv);
349 return (init_heap(heap, initheap.start, initheap.size));