Lines Matching refs:info
56 void multi_heap_get_info(multi_heap_handle_t heap, multi_heap_info_t *info)
346 multi_heap_info_t *info = user; in multi_heap_get_info_tlsf() local
349 info->allocated_blocks++; in multi_heap_get_info_tlsf()
351 info->free_blocks++; in multi_heap_get_info_tlsf()
353 if(size > info->largest_free_block ) { in multi_heap_get_info_tlsf()
354 info->largest_free_block = size; in multi_heap_get_info_tlsf()
358 info->total_blocks++; in multi_heap_get_info_tlsf()
361 void multi_heap_get_info_impl(multi_heap_handle_t heap, multi_heap_info_t *info) in multi_heap_get_info_impl() argument
365 memset(info, 0, sizeof(multi_heap_info_t)); in multi_heap_get_info_impl()
372 tlsf_walk_pool(tlsf_get_pool(heap->heap_data), multi_heap_get_info_tlsf, info); in multi_heap_get_info_impl()
373 info->total_allocated_bytes = (heap->pool_size - tlsf_size()) - heap->free_bytes; in multi_heap_get_info_impl()
374 info->minimum_free_bytes = heap->minimum_free_bytes; in multi_heap_get_info_impl()
375 info->total_free_bytes = heap->free_bytes; in multi_heap_get_info_impl()
376 if (info->largest_free_block) { in multi_heap_get_info_impl()
377 sl_interval = (1 << (31 - __builtin_clz(info->largest_free_block))) / SL_INDEX_COUNT; in multi_heap_get_info_impl()
378 info->largest_free_block = info->largest_free_block & ~(sl_interval - 1); in multi_heap_get_info_impl()