Lines Matching refs:info
52 void multi_heap_get_info(multi_heap_handle_t heap, multi_heap_info_t *info)
393 multi_heap_info_t *info = user; in multi_heap_get_info_tlsf() local
396 info->allocated_blocks++; in multi_heap_get_info_tlsf()
398 info->free_blocks++; in multi_heap_get_info_tlsf()
400 if(size > info->largest_free_block ) { in multi_heap_get_info_tlsf()
401 info->largest_free_block = size; in multi_heap_get_info_tlsf()
405 info->total_blocks++; in multi_heap_get_info_tlsf()
408 void multi_heap_get_info_impl(multi_heap_handle_t heap, multi_heap_info_t *info) in multi_heap_get_info_impl() argument
412 memset(info, 0, sizeof(multi_heap_info_t)); in multi_heap_get_info_impl()
419 tlsf_walk_pool(tlsf_get_pool(heap->heap_data), multi_heap_get_info_tlsf, info); in multi_heap_get_info_impl()
422 overhead = info->allocated_blocks * tlsf_alloc_overhead(); in multi_heap_get_info_impl()
423 …info->total_allocated_bytes = (heap->pool_size - tlsf_size(heap->heap_data)) - heap->free_bytes - … in multi_heap_get_info_impl()
424 info->minimum_free_bytes = heap->minimum_free_bytes; in multi_heap_get_info_impl()
425 info->total_free_bytes = heap->free_bytes; in multi_heap_get_info_impl()
426 info->largest_free_block = tlsf_fit_size(heap->heap_data, info->largest_free_block); in multi_heap_get_info_impl()