Lines Matching +full:- +full:p

145                     (int)(mon.total_size - mon.free_size), mon.used_pct, mon.frag_pct,  in lv_mem_alloc()
160 MEM_TRACE("allocated at %p", alloc); in lv_mem_alloc()
171 MEM_TRACE("freeing %p", data); in lv_mem_free()
180 if(cur_used > size) cur_used -= size; in lv_mem_free()
196 MEM_TRACE("reallocating %p with %lu size", data_p, (unsigned long)new_size); in lv_mem_realloc()
215 MEM_TRACE("allocated at %p", new_p); in lv_mem_realloc()
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()
282 int8_t i_guess = -1; in lv_mem_buf_get()
287 return LV_GC_ROOT(lv_mem_buf[i]).p; in lv_mem_buf_get()
301 MEM_TRACE("returning already allocated buffer (buffer id: %d, address: %p)", i_guess, in lv_mem_buf_get()
302 LV_GC_ROOT(lv_mem_buf[i_guess]).p); in lv_mem_buf_get()
303 return LV_GC_ROOT(lv_mem_buf[i_guess]).p; in lv_mem_buf_get()
310 void * buf = lv_mem_realloc(LV_GC_ROOT(lv_mem_buf[i]).p, size); in lv_mem_buf_get()
316 LV_GC_ROOT(lv_mem_buf[i]).p = buf; in lv_mem_buf_get()
317 MEM_TRACE("allocated (buffer id: %d, address: %p)", i, LV_GC_ROOT(lv_mem_buf[i]).p); in lv_mem_buf_get()
318 return LV_GC_ROOT(lv_mem_buf[i]).p; in lv_mem_buf_get()
329 * @param p buffer to release
331 void lv_mem_buf_release(void * p) in lv_mem_buf_release() argument
333 MEM_TRACE("begin (address: %p)", p); in lv_mem_buf_release()
336 if(LV_GC_ROOT(lv_mem_buf[i]).p == p) { in lv_mem_buf_release()
342 LV_LOG_ERROR("p is not a known buffer"); in lv_mem_buf_release()
351 if(LV_GC_ROOT(lv_mem_buf[i]).p) { in lv_mem_buf_free_all()
352 lv_mem_free(LV_GC_ROOT(lv_mem_buf[i]).p); in lv_mem_buf_free_all()
353 LV_GC_ROOT(lv_mem_buf[i]).p = NULL; in lv_mem_buf_free_all()
382 len -= 32; in lv_memcpy()
386 len--; in lv_memcpy()
393 d_align = ALIGN_MASK + 1 - d_align; in lv_memcpy()
396 d_align--; in lv_memcpy()
397 len--; in lv_memcpy()
405 len -= 32; in lv_memcpy()
410 len -= 4; in lv_memcpy()
417 len--; in lv_memcpy()
438 d_align = ALIGN_MASK + 1 - d_align; in lv_memset()
441 len--; in lv_memset()
442 d_align--; in lv_memset()
452 len -= 32; in lv_memset()
457 len -= 4; in lv_memset()
463 len--; in lv_memset()
479 d_align = ALIGN_MASK + 1 - d_align; in lv_memset_00()
482 len--; in lv_memset_00()
483 d_align--; in lv_memset_00()
490 len -= 32; in lv_memset_00()
495 len -= 4; in lv_memset_00()
501 len--; in lv_memset_00()
517 d_align = ALIGN_MASK + 1 - d_align; in lv_memset_ff()
520 len--; in lv_memset_ff()
521 d_align--; in lv_memset_ff()
528 len -= 32; in lv_memset_ff()
533 len -= 4; in lv_memset_ff()
539 len--; in lv_memset_ff()
556 mon_p->used_cnt++; in lv_mem_walker()
559 mon_p->free_cnt++; in lv_mem_walker()
560 mon_p->free_size += size; in lv_mem_walker()
561 if(size > mon_p->free_biggest_size) in lv_mem_walker()
562 mon_p->free_biggest_size = size; in lv_mem_walker()