Lines Matching refs:newblock
96 struct mem_block *newblock; in SliceBlock() local
100 newblock = in SliceBlock()
102 if (!newblock) in SliceBlock()
104 newblock->ofs = startofs; in SliceBlock()
105 newblock->size = p->size - (startofs - p->ofs); in SliceBlock()
106 newblock->free = 1; in SliceBlock()
107 newblock->heap = p->heap; in SliceBlock()
109 newblock->next = p->next; in SliceBlock()
110 newblock->prev = p; in SliceBlock()
111 p->next->prev = newblock; in SliceBlock()
112 p->next = newblock; in SliceBlock()
114 newblock->next_free = p->next_free; in SliceBlock()
115 newblock->prev_free = p; in SliceBlock()
116 p->next_free->prev_free = newblock; in SliceBlock()
117 p->next_free = newblock; in SliceBlock()
119 p->size -= newblock->size; in SliceBlock()
120 p = newblock; in SliceBlock()
125 newblock = in SliceBlock()
127 if (!newblock) in SliceBlock()
129 newblock->ofs = startofs + size; in SliceBlock()
130 newblock->size = p->size - size; in SliceBlock()
131 newblock->free = 1; in SliceBlock()
132 newblock->heap = p->heap; in SliceBlock()
134 newblock->next = p->next; in SliceBlock()
135 newblock->prev = p; in SliceBlock()
136 p->next->prev = newblock; in SliceBlock()
137 p->next = newblock; in SliceBlock()
139 newblock->next_free = p->next_free; in SliceBlock()
140 newblock->prev_free = p; in SliceBlock()
141 p->next_free->prev_free = newblock; in SliceBlock()
142 p->next_free = newblock; in SliceBlock()