Lines Matching refs:magic_size
14 unsigned int magic_size; member
255 freelist_head.magic_size = 0; in heap_init()
259 freelist_tail->magic_size = 0; in heap_init()
263 free_blk->magic_size = (unsigned int)freelist_tail - (unsigned int) free_blk; in heap_init()
265 heap_free_size = free_blk->magic_size; in heap_init()
266 heap_free_size_min = free_blk->magic_size; in heap_init()
281 if ((char *)blk_before + blk_before->magic_size == (char *)blk_insert) { in heap_freeblk_insert()
282 blk_before->magic_size += blk_insert->magic_size; in heap_freeblk_insert()
291 (char *)blk_insert + blk_insert->magic_size == (char *)blk_after) { in heap_freeblk_insert()
292 blk_insert->magic_size += blk_after->magic_size; in heap_freeblk_insert()
317 while ((blk_alloc->magic_size < alloc_size) && (blk_alloc->next != NULL)) { in ota_heap_malloc()
327 if (blk_alloc->magic_size - alloc_size > XZ_HEAP_BLK_MIN) { in ota_heap_malloc()
330 blk_left->magic_size = blk_alloc->magic_size - alloc_size; in ota_heap_malloc()
331 blk_alloc->magic_size = alloc_size; in ota_heap_malloc()
336 heap_free_size -= blk_alloc->magic_size; in ota_heap_malloc()
341 blk_alloc->magic_size |= XZ_HEAP_MAGIC; in ota_heap_malloc()
355 ||(free_blk->magic_size & XZ_HEAP_MAGIC) != XZ_HEAP_MAGIC) { in ota_heap_free()
360 free_blk->magic_size &= ~XZ_HEAP_MAGIC; in ota_heap_free()
362 heap_free_size += free_blk->magic_size; in ota_heap_free()