Searched refs:mon_p (Results 1 – 2 of 2) sorted by relevance
246 void lv_mem_monitor(lv_mem_monitor_t * mon_p) in lv_mem_monitor() argument249 lv_memset(mon_p, 0, sizeof(lv_mem_monitor_t)); in lv_mem_monitor()253 lv_tlsf_walk_pool(lv_tlsf_get_pool(tlsf), lv_mem_walker, mon_p); in lv_mem_monitor()255 mon_p->total_size = LV_MEM_SIZE; in lv_mem_monitor()256 mon_p->used_pct = 100 - (100U * mon_p->free_size) / mon_p->total_size; in lv_mem_monitor()257 if(mon_p->free_size > 0) { in lv_mem_monitor()258 mon_p->frag_pct = mon_p->free_biggest_size * 100U / mon_p->free_size; in lv_mem_monitor()259 mon_p->frag_pct = 100 - mon_p->frag_pct; in lv_mem_monitor()262 mon_p->frag_pct = 0; /*no fragmentation if all the RAM is used*/ in lv_mem_monitor()265 mon_p->max_used = max_used; in lv_mem_monitor()[all …]
102 void lv_mem_monitor(lv_mem_monitor_t * mon_p);