Lines Matching refs:newblock
101 struct mem_block *newblock; in SliceBlock() local
105 newblock = in SliceBlock()
107 if (!newblock) in SliceBlock()
109 newblock->ofs = startofs; in SliceBlock()
110 newblock->size = p->size - (startofs - p->ofs); in SliceBlock()
111 newblock->free = 1; in SliceBlock()
112 newblock->heap = p->heap; in SliceBlock()
114 newblock->next = p->next; in SliceBlock()
115 newblock->prev = p; in SliceBlock()
116 p->next->prev = newblock; in SliceBlock()
117 p->next = newblock; in SliceBlock()
119 newblock->next_free = p->next_free; in SliceBlock()
120 newblock->prev_free = p; in SliceBlock()
121 p->next_free->prev_free = newblock; in SliceBlock()
122 p->next_free = newblock; in SliceBlock()
124 p->size -= newblock->size; in SliceBlock()
125 p = newblock; in SliceBlock()
130 newblock = in SliceBlock()
132 if (!newblock) in SliceBlock()
134 newblock->ofs = startofs + size; in SliceBlock()
135 newblock->size = p->size - size; in SliceBlock()
136 newblock->free = 1; in SliceBlock()
137 newblock->heap = p->heap; in SliceBlock()
139 newblock->next = p->next; in SliceBlock()
140 newblock->prev = p; in SliceBlock()
141 p->next->prev = newblock; in SliceBlock()
142 p->next = newblock; in SliceBlock()
144 newblock->next_free = p->next_free; in SliceBlock()
145 newblock->prev_free = p; in SliceBlock()
146 p->next_free->prev_free = newblock; in SliceBlock()
147 p->next_free = newblock; in SliceBlock()