Searched refs:ptno (Results 1 – 2 of 2) sorted by relevance
/AliOS-Things-master/components/amp/services/amp_memmgt/ |
A D | amp_memmgt.c | 139 …if((g_mem_config.mem_limit[ptno] != 0) && (g_mem_total[ptno] + once_size > g_mem_config.mem_limit[… in amp_memmgt_malloc() 140 …%d, lr 0x%x, total size 0x%x, limit 0x%x\n", ptno, size, lr, g_mem_total[ptno], g_mem_config.mem_l… in amp_memmgt_malloc() 154 g_mem_total[ptno] += alloc_size; in amp_memmgt_malloc() 163 if(g_mem_total[ptno] > g_mem_max[ptno]) { in amp_memmgt_malloc() 164 g_mem_max[ptno] = g_mem_total[ptno]; in amp_memmgt_malloc() 185 amp_memmgt_free(ptr, lr, ptno); in amp_memmgt_realloc() 215 …if((g_mem_config.mem_limit[ptno] != 0) && (g_mem_total[ptno] + once_size > g_mem_config.mem_limit[… in amp_memmgt_realloc() 217 ptno, size, lr, g_mem_total[ptno], g_mem_config.mem_limit[ptno]); in amp_memmgt_realloc() 233 if(g_mem_total[ptno] > g_mem_max[ptno]) { in amp_memmgt_realloc() 234 g_mem_max[ptno] = g_mem_total[ptno]; in amp_memmgt_realloc() [all …]
|
A D | amp_memmgt.h | 49 extern void *amp_memmgt_malloc(unsigned int size, unsigned int lr, int ptno); 51 #define AMP_MEMMGT_MALLOC(ptr, size, ptno) \ argument 55 ptr = amp_memmgt_malloc(size, tmp_lr, ptno); \ 59 extern void *amp_memmgt_realloc(void *ptr, unsigned int size, unsigned int lr, int ptno); 60 #define AMP_MEMMGT_REALLOC(ptr_new, ptr, size, ptno) \ argument 64 ptr_new = amp_memmgt_realloc(ptr, size, tmp_lr, ptno); \ 69 extern void amp_memmgt_free(void *ptr, unsigned int lr, int ptno); 71 #define AMP_MEMMGT_FREE(ptr, ptno) \ argument 75 amp_memmgt_free(ptr, tmp_lr, ptno); \
|
Completed in 3 milliseconds