Lines Matching refs:virt

171 int sys_mm_drv_map_page(void *virt, uintptr_t phys, uint32_t flags)  in sys_mm_drv_map_page()  argument
188 uintptr_t va = POINTER_TO_UINT(sys_cache_cached_ptr_get(virt)); in sys_mm_drv_map_page()
271 arch_mem_map(virt, va, CONFIG_MM_DRV_PAGE_SIZE, flags); in sys_mm_drv_map_page()
277 sys_cache_data_invd_range(virt, CONFIG_MM_DRV_PAGE_SIZE); in sys_mm_drv_map_page()
285 int sys_mm_drv_map_region(void *virt, uintptr_t phys, in sys_mm_drv_map_region() argument
295 !sys_mm_drv_is_virt_addr_aligned(virt) || in sys_mm_drv_map_region()
301 va = (__sparse_force uint8_t *)sys_cache_cached_ptr_get(virt); in sys_mm_drv_map_region()
326 int sys_mm_drv_map_array(void *virt, uintptr_t *phys, in sys_mm_drv_map_array() argument
329 void *va = (__sparse_force void *)sys_cache_cached_ptr_get(virt); in sys_mm_drv_map_array()
334 static int sys_mm_drv_unmap_page_wflush(void *virt, bool flush_data) in sys_mm_drv_unmap_page_wflush() argument
344 uintptr_t va = POINTER_TO_UINT(sys_cache_cached_ptr_get(virt)); in sys_mm_drv_unmap_page_wflush()
378 sys_cache_data_flush_range(virt, CONFIG_MM_DRV_PAGE_SIZE); in sys_mm_drv_unmap_page_wflush()
380 arch_mem_unmap(virt, CONFIG_MM_DRV_PAGE_SIZE); in sys_mm_drv_unmap_page_wflush()
414 int sys_mm_drv_unmap_page(void *virt) in sys_mm_drv_unmap_page() argument
416 return sys_mm_drv_unmap_page_wflush(virt, true); in sys_mm_drv_unmap_page()
419 int sys_mm_drv_unmap_region(void *virt, size_t size) in sys_mm_drv_unmap_region() argument
421 void *va = (__sparse_force void *)sys_cache_cached_ptr_get(virt); in sys_mm_drv_unmap_region()
426 int sys_mm_drv_update_page_flags(void *virt, uint32_t flags) in sys_mm_drv_update_page_flags() argument
435 uintptr_t va = POINTER_TO_UINT(sys_cache_cached_ptr_get(virt)); in sys_mm_drv_update_page_flags()
465 arch_mem_map(virt, tlb_entry_to_pa(entry), CONFIG_MM_DRV_PAGE_SIZE, flags); in sys_mm_drv_update_page_flags()
476 void *virt = (__sparse_force void *)sys_cache_cached_ptr_get(virt_in); in sys_mm_drv_unmap_region_initial() local
482 CHECKIF(!sys_mm_drv_is_virt_addr_aligned(virt) || in sys_mm_drv_unmap_region_initial()
491 uint8_t *va = (uint8_t *)virt + offset; in sys_mm_drv_unmap_region_initial()
513 int sys_mm_drv_page_phys_get(void *virt, uintptr_t *phys) in sys_mm_drv_page_phys_get() argument
520 uintptr_t va = POINTER_TO_UINT(sys_cache_cached_ptr_get(virt)); in sys_mm_drv_page_phys_get()
551 int sys_mm_drv_page_flag_get(void *virt, uint32_t *flags) in sys_mm_drv_page_flag_get() argument
553 ARG_UNUSED(virt); in sys_mm_drv_page_flag_get()
561 uintptr_t va = POINTER_TO_UINT(sys_cache_cached_ptr_get(virt)); in sys_mm_drv_page_flag_get()