|
| static void * | APP_MEM_ALIGNPTR (void *val, uint32_t align) |
| | Align ptr value to 'align' bytes. More...
|
| |
| static uint64_t | APP_MEM_ALIGN64 (uint64_t val, uint32_t align) |
| | Align 64b value to 'align' bytes. More...
|
| |
| static uint32_t | APP_MEM_ALIGN32 (uint32_t val, uint32_t align) |
| | Align 32b value to 'align' bytes. More...
|
| |
| static void | appMemEnableL1DandL2CacheWb () |
| | Enable L1D and L2 Cache by performing a WB. More...
|
| |
| void | appMemInitPrmSetDefault (app_mem_init_prm_t *prm) |
| | Set defaults to app_mem_init_prm_t. More...
|
| |
| int32_t | appMemInit (app_mem_init_prm_t *prm) |
| | Init heaps for memory allocation. More...
|
| |
| int32_t | appMemDeInit () |
| | De-Init heaps for memory allocation. More...
|
| |
| void * | appMemAlloc (uint32_t heap_id, uint32_t size, uint32_t align) |
| | Alloc memory from specific heap. More...
|
| |
| int32_t | appMemResetScratchHeap (uint32_t heap_id) |
| | Reset scratch memory. More...
|
| |
| int32_t | appMemFree (uint32_t heap_id, void *ptr, uint32_t size) |
| | Free memory that was previously allocated. More...
|
| |
| uint32_t | appMemGetDmaBufFd (void *virPtr, volatile uint32_t *dmaBufFdOffset) |
| | Return dmaBufFd of a CMEM buffer pointer. More...
|
| |
| int32_t | appMemTranslateDmaBufFd (uint32_t dmaBufFd, uint32_t size, uint64_t *virtPtr, uint64_t *phyPtr) |
| | Translates a given 'dmaBufFd' to virtual and physical addresses. More...
|
| |
| void | appMemCloseDmaBufFd (int32_t dmaBufFd) |
| | Close the dmaBufFd of a CMEM buffer pointer. More...
|
| |
| uint64_t | appMemGetVirt2PhyBufPtr (uint64_t virtPtr, uint32_t heap_id) |
| | Return physical ptr corresponds to a CMEM virtual ptr. More...
|
| |
| int32_t | appMemStats (uint32_t heap_id, app_mem_stats_t *stats) |
| | Return heap statistics and information. More...
|
| |
| void | appMemCacheInv (void *ptr, uint32_t size) |
| | Invalidate a section of memory from cache. More...
|
| |
| void | appMemCacheWb (void *ptr, uint32_t size) |
| | Write back a section of memory from cache. More...
|
| |
| void | appMemCacheWbInv (void *ptr, uint32_t size) |
| | Write back and invalidate a section of memory from cache. More...
|
| |
| void | appMemPrintMemAllocInfo () |
| | Print memory allocation from shared memory region. More...
|
| |
| uint64_t | appMemShared2PhysPtr (uint64_t shared_ptr, uint32_t heap_id) |
| | Return the physical pointer from a shared pointer. More...
|
| |
| uint64_t | appMemShared2TargetPtr (uint64_t shared_ptr) |
| | Return the physical pointer from a shared pointer. More...
|
| |