Lines Matching full:pa
80 * @param pa physical address.
83 static uint32_t get_hpsram_bank_idx(uintptr_t pa) in get_hpsram_bank_idx() argument
85 uint32_t phys_offset = pa - L2_SRAM_BASE; in get_hpsram_bank_idx()
187 uintptr_t pa = POINTER_TO_UINT(sys_cache_cached_ptr_get(UINT_TO_POINTER(phys))); in sys_mm_drv_map_page() local
217 pa = POINTER_TO_UINT(sys_cache_cached_ptr_get(phys_block_ptr)); in sys_mm_drv_map_page()
221 CHECKIF((pa < L2_SRAM_BASE) || in sys_mm_drv_map_page()
222 (pa >= (L2_SRAM_BASE + L2_SRAM_SIZE))) { in sys_mm_drv_map_page()
227 /* Make sure PA is page-aligned */ in sys_mm_drv_map_page()
228 CHECKIF(!sys_mm_drv_is_addr_aligned(pa)) { in sys_mm_drv_map_page()
242 bank_idx = get_hpsram_bank_idx(pa); in sys_mm_drv_map_page()
260 entry = pa_to_tlb_entry(pa); in sys_mm_drv_map_page()
291 uintptr_t pa; in sys_mm_drv_map_region() local
302 pa = phys; in sys_mm_drv_map_region()
307 int ret2 = sys_mm_drv_map_page(va, pa, flags); in sys_mm_drv_map_region()
310 __ASSERT(false, "cannot map 0x%lx to %p\n", pa, va); in sys_mm_drv_map_region()
316 pa += CONFIG_MM_DRV_PAGE_SIZE; in sys_mm_drv_map_region()
340 uintptr_t pa; in sys_mm_drv_unmap_page_wflush() local
384 pa = tlb_entry_to_pa(entry); in sys_mm_drv_unmap_page_wflush()
392 if ((pa >= L2_SRAM_BASE) && (pa < (L2_SRAM_BASE + L2_SRAM_SIZE))) { in sys_mm_drv_unmap_page_wflush()
394 UINT_TO_POINTER(pa), 1); in sys_mm_drv_unmap_page_wflush()
396 bank_idx = get_hpsram_bank_idx(pa); in sys_mm_drv_unmap_page_wflush()
650 uintptr_t pa; in sys_mm_drv_move_region() local
662 ret2 = sys_mm_drv_page_phys_get(va_old, &pa); in sys_mm_drv_move_region()
675 ret2 = sys_mm_drv_map_page(va_new, pa, flags); in sys_mm_drv_move_region()
677 __ASSERT(false, "cannot map 0x%lx to %p\n", pa, va_new); in sys_mm_drv_move_region()