Lines Matching refs:freeing
175 struct memory_block *freeing;
188 freeing = ptr;
189 freeing->size = size;
190 DBG ( "Freeing [%p,%p)\n", freeing, ( ( ( void * ) freeing ) + size ));
194 /* Calculate gaps before and after the "freeing" block */
195 gap_before = ( ( ( void * ) freeing ) -
198 ( ( ( void * ) freeing ) + freeing->size ) );
202 ( ( ( void * ) block ) + block->size ), freeing,
203 ( ( ( void * ) freeing ) + freeing->size ),block,
204 ( ( ( void * ) freeing ) + freeing->size ) );
207 freeing = block;
215 * possible, merge the following block into the "freeing"
218 DBG ( "[%p,%p)\n", freeing, ( ( ( void * ) freeing ) + freeing->size));
219 list_add_tail ( &freeing->list, &block->list );
221 DBG ( "[%p,%p) + [%p,%p) -> [%p,%p)\n", freeing,
222 ( ( ( void * ) freeing ) + freeing->size ), block,
223 ( ( ( void * ) block ) + block->size ), freeing,
225 freeing->size += block->size;